Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

cross-compiling for earmhf on MacOSX failed in libctf



Hi,

with sources cvs-up'ed half an hour ago or so I run into the following:

===> build.sh command:    ./build.sh -u -N 1 -U -m evbearmhf-el -O /u/NetBSD/arch/evbearmhf-el/obj -D /u/NetBSD/arch/evbearmhf-el/dest -R /u/NetBSD/arch/evbearmhf-el/release -T /u/NetBSD/arch/evbearmhf-el/TOOLS tools
===> build.sh started:    Sat Jun  2 16:03:45 CEST 2018
===> NetBSD version:      8.99.19
===> MACHINE:             evbarm
===> MACHINE_ARCH:        earmhf
===> Build platform:      Darwin 17.7.0 x86_64
===> HOST_SH:             /bin/sh
===> MAKECONF file:       /etc/mk.conf (File not found)
===> TOOLDIR path:        /u/NetBSD/arch/evbearmhf-el/TOOLS
===> DESTDIR path:        /u/NetBSD/arch/evbearmhf-el/dest
===> RELEASEDIR path:     /u/NetBSD/arch/evbearmhf-el/release
===> Updated makewrapper: /u/NetBSD/arch/evbearmhf-el/TOOLS/bin/nbmake-evbearmhf-el

[...]

dependall-libctf ===> .
dependall ===> libctf
    compile  libctf/ctf_create.lo
In file included from /u/NetBSD/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_create.c:23:
In file included from /u/NetBSD/arch/evbearmhf-el/TOOLS/include/compat/nbtool_config.h:882:
In file included from /u/NetBSD/src/tools/libctf/../compat/compat_defs.h:37:
In file included from /u/NetBSD/src/tools/libctf/../../external/cddl/osnet/sys/sys/param.h:32:
In file included from /u/NetBSD/src/tools/libctf/../../external/cddl/osnet/sys/sys/proc.h:64:
In file included from /usr/include/sys/proc.h:79:
/u/NetBSD/src/tools/libctf/../../external/cddl/osnet/sys/sys/time.h:97:5: error: expected function body after function declarator
    __RENAME(__clock_gettime50);
    ^
In file included from /u/NetBSD/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_create.c:23:
In file included from /u/NetBSD/arch/evbearmhf-el/TOOLS/include/compat/nbtool_config.h:882:
In file included from /u/NetBSD/src/tools/libctf/../compat/compat_defs.h:37:
In file included from /u/NetBSD/src/tools/libctf/../../external/cddl/osnet/sys/sys/param.h:32:
In file included from /u/NetBSD/src/tools/libctf/../../external/cddl/osnet/sys/sys/proc.h:64:
In file included from /usr/include/sys/proc.h:80:
In file included from /usr/include/mach/boolean.h:73:
In file included from /usr/include/mach/machine/boolean.h:33:
/usr/include/mach/i386/boolean.h:69:22: error: typedef redefinition with different types ('unsigned int' vs 'int')
typedef unsigned int    boolean_t;
                        ^
/u/NetBSD/src/tools/libctf/../../external/cddl/osnet/sys/sys/opentypes.h:37:14: note: previous definition is here
typedef int             boolean_t;
                        ^
In file included from /u/NetBSD/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_create.c:23:
In file included from /u/NetBSD/arch/evbearmhf-el/TOOLS/include/compat/nbtool_config.h:882:
In file included from /u/NetBSD/src/tools/libctf/../compat/compat_defs.h:37:
In file included from /u/NetBSD/src/tools/libctf/../../external/cddl/osnet/sys/sys/param.h:32:
/u/NetBSD/src/tools/libctf/../../external/cddl/osnet/sys/sys/proc.h:65:10: fatal error: 'sys/stdint.h' file not found
#include <sys/stdint.h>
         ^~~~~~~~~~~~~~
3 errors generated.

*** Failed target:  ctf_create.lo
*** Failed command: cc -O -DCTF_OLD_VERSIONS -I/u/NetBSD/src/tools/libctf/../compat -I/u/NetBSD/src/tools/libctf/../../external/cddl/osnet/sys -I/u/NetBSD/src/tools/libctf/../../external/cddl/osnet/include -I/u/NetBSD/src/tools/libctf/../../external/cddl/osnet/dist/head -I/u/NetBSD/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf -I/u/NetBSD/src/tools/libctf/../../external/cddl/osnet/dist/lib/libctf/common -I/u/NetBSD/src/tools/libctf/../../external/cddl/osnet/dist/uts/common -I/u/NetBSD/src/tools/libctf/../../external/bsd/elftoolchain/dist/libelf -no-cpp-precomp -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -no-cpp-precomp -I/u/NetBSD/arch/evbearmhf-el/TOOLS/include/compat -I/u/NetBSD/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/u/NetBSD/arch/evbearmhf-el/TOOLS/include -I/u/NetBSD/arch/evbearmhf-el/TOOLS/include/nbinclude -c -o ctf_create.lo.o /u/NetBSD/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_create.c
*** Error code 1

Stop.
nbmake[3]: stopped in /u/NetBSD/src/tools/libctf

*** Failed target:  dependall
*** Failed command: cd "/u/NetBSD/src/tools/libctf"; /u/NetBSD/arch/evbearmhf-el/TOOLS/bin/nbmake realall
*** Error code 1

Stop.
nbmake[2]: stopped in /u/NetBSD/src/tools/libctf

*** Failed target:  dependall-libctf
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/u/NetBSD/src/tools" ;; *) this="${dir}/"; real="/u/NetBSD/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /u/NetBSD/arch/evbearmhf-el/TOOLS/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget libctf dependall
*** Error code 1

Stop.
nbmake[1]: stopped in /u/NetBSD/src/tools

*** Failed target:  build_install
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/u/NetBSD/src/tools" ;; *) this="${dir}/"; real="/u/NetBSD/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /u/NetBSD/arch/evbearmhf-el/TOOLS/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall-libctf
*** Error code 1

Stop.
nbmake: stopped in /u/NetBSD/src/tools

ERROR: Failed to make build_install in "tools"
*** BUILD ABORTED ***


Looks like some .h-files are included from MacOSX which shouldn't be?

Kurt



Home | Main Index | Thread Index | Old Index