Hi,
Whilst cross compiling evbarm on amd64 I have encountered various problems.
Here are the results:
With HAVE_LLVM MKLIBCXX MKLLVM defined:
== build.sh command:./build.sh -m evbarm -U -u -x -X ../xsrc -O
/home/build/netbsd-a
rm -j 8 release
=== build.sh started:Tue May 27 21:48:08 EST 2014
=== NetBSD version: 6.99.43
=== MACHINE: evbarm
=== MACHINE_ARCH:arm
=== Build platform: NetBSD 6.99.40 amd64
=== HOST_SH: /bin/sh
=== MAKECONF file: /etc/mk.conf
=== TOOLDIR path:/home/build/netbsd-arm/tooldir.NetBSD-6.99.40-
amd64
=== DESTDIR path:/home/build/netbsd-arm/destdir.evbarm
=== RELEASEDIR path: /home/build/netbsd-arm/releasedir
=== Updated makewrapper: /home/build/netbsd-arm/tooldir.NetBSD-6.99.40-
amd64/bin/nbmake-e
vbarm
# build libgcc_s/libgcc_s.so.1.0
rm -f libgcc_s.so.1.0
/home/build/netbsd-arm/tooldir.NetBSD-6.99.40-amd64/bin/arm--netbsdelf-gcc -
nodefaultlibs -Wl,-x -shared -Wl,-soname,libgcc_s.so.1 -Wl,--warn-shared-
textrel -Wl,-Map=libgcc_s.so.1.map --sysroot=/home/build/netbsd-
arm/destdir.evbarm -nodefaultlibs -Wl,--version-script=/home/build/netbsd-
arm/external/gpl3/gcc/lib/libgcc/libgcc_s/libgcc.map -o libgcc_s.so.1.0 -
Wl,-rpath,/lib -L=/lib -Wl,--whole-archive libgcc_s_pic.a -Wl,--no-whole-
archive
/home/build/netbsd-arm/tooldir.NetBSD-6.99.40-amd64/lib/gcc/arm--
netbsdelf/4.8.3/../../../../arm--netbsdelf/bin/ld: error: Source object
libgcc_s_pic.a(_clzdi2.pico) has EABI version 0, but target libgcc_s.so.1.0
has EABI version 5
/home/build/netbsd-arm/tooldir.NetBSD-6.99.40-amd64/lib/gcc/arm--
netbsdelf/4.8.3/../../../../arm--netbsdelf/bin/ld: failed to merge target
specific data of file libgcc_s_pic.a(_clzdi2.pico)
/home/build/netbsd-arm/tooldir.NetBSD-6.99.40-amd64/lib/gcc/arm--
netbsdelf/4.8.3/../../../../arm--netbsdelf/bin/ld: error: Source object
libgcc_s_pic.a(_ashldi3.pico) has EABI version 0, but target libgcc_s.so.1.0
has EABI version 5
/home/build/netbsd-arm/tooldir.NetBSD-6.99.40-amd64/lib/gcc/arm--
netbsdelf/4.8.3/../../../../arm--netbsdelf/bin/ld: failed to merge target
specific data of file libgcc_s_pic.a(_ashldi3.pico)
/home/build/netbsd-arm/tooldir.NetBSD-6.99.40-amd64/lib/gcc/arm--
netbsdelf/4.8.3/../../../../arm--netbsdelf/bin/ld: error: Source object
libgcc_s_pic.a(_ashrdi3.pico) has EABI version 0, but target libgcc_s.so.1.0
has EABI version 5
/home/build/netbsd-arm/tooldir.NetBSD-6.99.40-amd64/lib/gcc/arm--
netbsdelf/4.8.3/../../../../arm--netbsdelf/bin/ld: failed to merge target
specific data of file libgcc_s_pic.a(_ashrdi3.pico)
/home/build/netbsd-arm/tooldir.NetBSD-6.99.40-amd64/lib/gcc/arm--
netbsdelf/4.8.3/../../../../arm--netbsdelf/bin/ld: error: Source object
libgcc_s_pic.a(_lshrdi3.pico) has EABI version 0, but target libgcc_s.so.1.0
has EABI version 5
With ARCH defined. Build with clang:
=== build.sh command:./build.sh -u -U -m evbarm -a earmv6hf -O
/home/build/netbsd-arm/ -j 8 -x -X ../xsrc release
=== build.sh started:Thu May 29 01:40:04 EST 2014
=== NetBSD version: 6.99.43
=== MACHINE: evbarm
=== MACHINE_ARCH:earmv6hf
=== Build platform: NetBSD 6.99.40 amd64
=== HOST_SH: /bin/sh
=== MAKECONF file: /etc/mk.conf
=== TOOLDIR path:/home/build/netbsd-arm/tooldir.NetBSD-6.99.40-
amd64
=== DESTDIR path:/home/build/netbsd-arm/destdir.evbarm
=== RELEASEDIR path: /home/build/netbsd-arm/releasedir
=== Updated makewrapper: /home/build/netbsd-arm/tooldir.NetBSD-6.99.40-
amd64/bin/nbmake-evbarm
dependall === lib/libc
--- dependall ---
--- libc.so.12.190 ---
# build libc/libc.so.12.190
rm -f libc.so.12.190
/home/build/netbsd-arm/tooldir.NetBSD-6.99.40-amd64/bin/armv6--netbsdelf-
eabihf-clang -nod
efaultlibs -Wl,-x -shared -Wl,-soname,libc.so.12 -Wl,--warn-shared-textrel -
Wl,-Map=libc.s
o.12.map -Wl,-z,initfirst -Wl,-z,defs --sysroot=/home/build/netbsd-
arm/destdir.evbarm -W
l,--fatal-warnings -o libc.so.12.190 -Wl,-rpath,/lib -L=/lib -Wl,--whole-
archive libc_
pic.a -Wl,--no-whole-archive
/home/build/netbsd-arm/destdir.evbarm/usr/lib/crtbeginS.o:
(.ARM.exidx.text.startup+0x0): u
ndefined reference to `__aeabi_unwind_cpp_pr0'
/home/build/netbsd-arm/destdir.evbarm/usr/lib/crtbeginS.o:
(.ARM.exidx.text.exit+0x0): unde
fined reference to `__aeabi_unwind_cpp_pr0'
libc_pic.a(yperr_string.pico):(.ARM.exidx+0x0): undefined reference to
`__aeabi_unwind_cpp
_pr1'
libc_pic.a(yp_master.pico):(.ARM.exidx+0x0): undefined reference to
`__aeabi_unwind_cpp_pr
0'
libc_pic.a(yp_maplist.pico):(.ARM.exidx+0x0): undefined reference to
`__aeabi_unwind_cpp_p
r0'
libc_pic.a(yp_all.pico):(.ARM.exidx+0x0): undefined reference to
`__aeabi_unwind_cpp_pr1'
libc_pic.a(uuid_to_string.pico):(.ARM.exidx+0x0): undefined reference to
`__aeabi_unwind_c
pp_pr0'
libc_pic.a(uuid_stream.pico):(.ARM.exidx+0x0): undefined reference to
`__aeabi_unwind_cpp_
pr0'
libc_pic.a(uuid_stream.pico):(.ARM.exidx+0x8):