NetBSD Problem Report #52085

From www@NetBSD.org  Fri Mar 17 12:26:01 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id AD1C37A25E
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 17 Mar 2017 12:26:01 +0000 (UTC)
Message-Id: <20170317122600.36F737A2B7@mollari.NetBSD.org>
Date: Fri, 17 Mar 2017 12:26:00 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: bootimx23 cross compile on Linux fails due to machine/cdefs.h not fount
X-Send-Pr-Version: www-1.0

>Number:         52085
>Category:       port-evbarm
>Synopsis:       bootimx23 cross compile on Linux fails due to machine/cdefs.h not fount
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-evbarm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 17 12:30:00 +0000 2017
>Originator:     Sevan Janiyan
>Release:        7.1-RELEASE
>Organization:
>Environment:
Linux W10VM 3.4.0+ #1 PREEMPT Thu Aug 1 17:06:05 CST 2013 x86_64 x86_64 x86_64 GNU/Linux
>Description:
Attempting to build an evbarm release on Ubuntu for Windows thingy fails when building the bootimx23 component, due to machine/cdefs.h not being found.


dependall ===> sys/arch/evbarm/stand/bootimx23
#    create  bootimx23/args_prep.d
CC=/home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/armv7--netbsdelf-eabihf-gcc /home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/nbmkdep -f args_prep.d.tmp  --   -std=gnu99    --sysroot=/home/netbsder/src/obj/destdir.evbarm -D_STANDALONE -DMEMSIZE=64 -DKERNEL_BOOT_ARGS=\"root=ld0a\" -nostdinc -I. -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23 -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/obj -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../../ -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../..//arch -mabi=apcs-gnu -mfloat-abi=soft  -marm -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../..//lib/libkern/../../../common/lib/libc/quad -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../..//lib/libkern/../../../common/lib/libc/string -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../..//lib/libkern/../../../common/lib/libc/arch/arm/string      /home/netbsder/src/sys/arch/evbarm/stand/bootimx23/args_prep
 .c &&  mv args_prep.d.tmp args_prep.d
In file included from /home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../../sys/stdint.h:35:0,
                 from /home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../../sys/inttypes.h:39,
                 from /home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../../sys/param.h:100,
                 from /home/netbsder/src/sys/arch/evbarm/stand/bootimx23/args_prep.c:69:
/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../../sys/cdefs.h:58:27: fatal error: machine/cdefs.h: No such file or directory
 #include <machine/cdefs.h>
                           ^
compilation terminated.
nbmkdep: compile failed.

*** Failed target:  args_prep.d
*** Failed command: CC=/home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/armv7--netbsdelf-eabihf-gcc /home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/nbmkdep -f args_prep.d.tmp -- -std=gnu99 --sysroot=/home/netbsder/src/obj/destdir.evbarm -D_STANDALONE -DMEMSIZE=64 -DKERNEL_BOOT_ARGS=\"root=ld0a\" -nostdinc -I. -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23 -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/obj -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../../ -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../..//arch -mabi=apcs-gnu -mfloat-abi=soft -marm -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../..//lib/libkern/../../../common/lib/libc/quad -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../..//lib/libkern/../../../common/lib/libc/string -I/home/netbsder/src/sys/arch/evbarm/stand/bootimx23/../../../..//lib/libkern/../../../common/lib/libc/arch/arm/string /home/netbsder/src/sys/arch/evbarm/stand/bootimx23/a
 rgs_prep.c && mv args_prep.d.tmp args_prep.d
*** Error code 1

Stop.
nbmake[9]: stopped in /home/netbsder/src/sys/arch/evbarm/stand/bootimx23

*** Failed target:  dependall-bootimx23
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="sys/arch/evbarm/stand/"; real="/home/netbsder/src/sys/arch/evbarm/stand" ;; *) this="sys/arch/evbarm/stand/${dir}/"; real="/home/netbsder/src/sys/arch/evbarm/stand/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget bootimx23 dependall
*** Error code 1

Stop.
nbmake[8]: stopped in /home/netbsder/src/sys/arch/evbarm/stand

*** Failed target:  dependall-stand
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="sys/arch/evbarm/"; real="/home/netbsder/src/sys/arch/evbarm" ;; *) this="sys/arch/evbarm/${dir}/"; real="/home/netbsder/src/sys/arch/evbarm/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget stand dependall
*** Error code 1

Stop.
nbmake[7]: stopped in /home/netbsder/src/sys/arch/evbarm

*** Failed target:  dependall-evbarm
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="sys/arch/"; real="/home/netbsder/src/sys/arch" ;; *) this="sys/arch/${dir}/"; real="/home/netbsder/src/sys/arch/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget evbarm dependall
*** Error code 1

Stop.
nbmake[6]: stopped in /home/netbsder/src/sys/arch

*** Failed target:  dependall-arch
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="sys/"; real="/home/netbsder/src/sys" ;; *) this="sys/${dir}/"; real="/home/netbsder/src/sys/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget arch dependall
*** Error code 1

Stop.
nbmake[5]: stopped in /home/netbsder/src/sys

*** Failed target:  dependall-sys
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/home/netbsder/src" ;; *) this="${dir}/"; real="/home/netbsder/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget sys dependall
*** Error code 1

Stop.
nbmake[4]: stopped in /home/netbsder/src

*** Failed target:  do-build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/home/netbsder/src" ;; *) this="${dir}/"; real="/home/netbsder/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall BUILD_tools=no BUILD_lib=no
*** Error code 1

Stop.
nbmake[3]: stopped in /home/netbsder/src

*** Failed target:  build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/home/netbsder/src" ;; *) this="${dir}/"; real="/home/netbsder/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-build
*** Error code 1

Stop.
nbmake[2]: stopped in /home/netbsder/src

*** Failed target:  distribution
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/home/netbsder/src" ;; *) this="${dir}/"; real="/home/netbsder/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . build NOPOSTINSTALL=1
*** Error code 1

Stop.
nbmake[1]: stopped in /home/netbsder/src

*** Failed target:  release
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/home/netbsder/src" ;; *) this="${dir}/"; real="/home/netbsder/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/netbsder/src/obj/tooldir.Linux-3.4.0+-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . distribution
*** Error code 1

Stop.
nbmake: stopped in /home/netbsder/src

ERROR: Failed to make release
*** BUILD ABORTED ***
>How-To-Repeat:
./build.sh -U -m evbarm -a earmv7hf release with the 7.1-RELEASE src
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.