NetBSD-Bugs archive

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

toolchain/50961: cross compiling evbarm tools on Darwin 8 PowerPC fails



>Number:         50961
>Category:       toolchain
>Synopsis:       cross compiling evbarm tools on Darwin 8 PowerPC fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 13 02:20:00 +0000 2016
>Originator:     Sevan Janiyan
>Release:        NetBSD-current
>Organization:
>Environment:
Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
>Description:
Attempting to cross compile the evbarm tools on OS X Tiger 10.4.11 for PowerPC Macs fails with the following error:


cc -O  -I/Users/sme/Sandbox/src/tools/libelf/../compat -I/Users/sme/Sandbox/src/tools/libelf/../../external/bsd/elftoolchain/dist/libelf -I/Users/sme/Sandbox/src/tools/libelf/../../external/bsd/elftoolchain/dist/libelf/../common -I/Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/include/nbinclude -DLIBELF_TEST_HOOKS -no-cpp-precomp -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64  -no-cpp-precomp -I/Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/include/compat -I/Users/sme/Sandbox/src/tools/compat  -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/include -I/Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/include/nbinclude -c -o elf_begin.lo.o    /Users/sme/Sandbox/src/tools/libelf/../../external/bsd/elftoolchain/dist/libelf/elf_begin.c
In file included from /Users/sme/Sandbox/src/tools/libelf/../../external/bsd/elftoolchain/dist/libelf/_libelf.h:38,
                 from /Users/sme/Sandbox/src/tools/libelf/../../external/bsd/elftoolchain/dist/libelf/elf_begin.c:31:
/Users/sme/Sandbox/src/tools/libelf/../../external/bsd/elftoolchain/dist/libelf/../common/_elftc.h:382:1: warning: "htobe32" redefined
In file included from /Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/include/compat/nbtool_config.h:720,
                 from /Users/sme/Sandbox/src/tools/libelf/../../external/bsd/elftoolchain/dist/libelf/libelf.h:35,
                 from /Users/sme/Sandbox/src/tools/libelf/../../external/bsd/elftoolchain/dist/libelf/elf_begin.c:29:
/Users/sme/Sandbox/src/tools/libelf/../compat/compat_defs.h:1004:1: warning: this is the location of the previous definition
/var/tmp//ccj4K31V.s:184:Unknown pseudo-op: .ident
/var/tmp//ccj4K31V.s:184:Rest of line ignored. 1st junk character valued 34 (").

*** Failed target:  elf_begin.lo
*** Failed command: cc -O -I/Users/sme/Sandbox/src/tools/libelf/../compat -I/Users/sme/Sandbox/src/tools/libelf/../../external/bsd/elftoolchain/dist/libelf -I/Users/sme/Sandbox/src/tools/libelf/../../external/bsd/elftoolchain/dist/libelf/../common -I/Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/include/nbinclude -DLIBELF_TEST_HOOKS -no-cpp-precomp -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -no-cpp-precomp -I/Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/include/compat -I/Users/sme/Sandbox/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/include -I/Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/include/nbinclude -c -o elf_begin.lo.o /Users/sme/Sandbox/src/tools/libelf/../../external/bsd/elftoolchain/dist/libelf/elf_begin.c
*** Error code 1

Stop.
nbmake[3]: stopped in /Users/sme/Sandbox/src/tools/libelf

*** Failed target:  dependall
*** Failed command: cd "/Users/sme/Sandbox/src/tools/libelf"; /Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/bin/nbmake realall
*** Error code 1

Stop.
nbmake[2]: stopped in /Users/sme/Sandbox/src/tools/libelf

*** Failed target:  dependall-libelf
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/Users/sme/Sandbox/src/tools" ;; *) this="${dir}/"; real="/Users/sme/Sandbox/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget libelf dependall
*** Error code 1

Stop.
nbmake[1]: stopped in /Users/sme/Sandbox/src/tools

*** Failed target:  build_install
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/Users/sme/Sandbox/src/tools" ;; *) this="${dir}/"; real="/Users/sme/Sandbox/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /Users/sme/Sandbox/src/obj/tooldir.Darwin-8.11.0-Power_Macintosh/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall-libelf
*** Error code 1

Stop.
nbmake: stopped in /Users/sme/Sandbox/src/tools

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

I'm using the stock GCC shipped with XCode 2.5
% cc -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)
>How-To-Repeat:
Checkout NetBSD-current src on OS X Tiger
run ./build.sh -Um evbarm tools
>Fix:



Home | Main Index | Thread Index | Old Index