Date: Mon, 14 Mar 2016 21:05:29 +0100 From: "Ronald Klop" <ronald-lists@klop.ws> To: freebsd-arm@freebsd.org Subject: libunwind does not compile Message-ID: <op.yebzffztkndu52@53555a16.cm-6-6b.dynamic.ziggo.nl>
next in thread | raw e-mail | index | archive | help
Hello, I'm cross compiling for Sheevaplug on a recent amd64/11-CURRENT with clang 3.8.0. uname: FreeBSD sjakie.klop.ws 11.0-CURRENT FreeBSD 11.0-CURRENT #8 r296724M: Sun Mar 13 16:03:31 CET 2016 root@sjakie.klop.ws:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 Using these settings: export TARGET_ARCH=arm export MAKEOBJDIRPREFIX=/usr/obj-arm export KERNCONF=SHEEVAPLUG export WITH_NAND=yes export WITH_ARM_EABI=yes export WITH_GCC=yes export WITH_GNUCXX=yes export WITHOUT_CLANG_IS_CC=yes export NO_CLEAN=yes export DESTDIR=/mnt/usbdisk I get the error below. Is this known/expected? What can I do to fix it? I build gcc because clang 3.7 did not work on arm (although it could cross-compile to arm). ===> gnu/lib/libgcc (obj,depend,all,install) (cd /usr/src-arm/gnu/lib/libgcc; make -f /usr/src-arm/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src-arm/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc gthr-default.h) `gthr-default.h' is up to date. (cd /usr/src-arm/gnu/lib/libgcc; make -f /usr/src-arm/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src-arm/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc unwind.h) `unwind.h' is up to date. cc -O -pipe -DTARGET_ARM_EABI -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DHAVE_GTHR_DEFAULT -I/usr/src-arm/gnu/lib/libgcc/../../../contrib/gcclibs/include -I/usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc/config -I/usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc -I. -I/usr/src-arm/gnu/lib/libgcc/../../usr.bin/cc/cc_tools -Dinhibit_libc -fno-inline -std=gnu99 -fheinous-gnu-extensions -Qunused-arguments -c /usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc/config/arm/libunwind.S -o libunwind.o /usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc/config/arm/libunwind.S:29:10: fatal error: 'machine/acle-compat.h' file not found #include <machine/acle-compat.h> ^ 1 error generated. *** [libunwind.o] Error code 1 make[4]: stopped in /usr/src-arm/gnu/lib/libgcc 1 error make[4]: stopped in /usr/src-arm/gnu/lib/libgcc *** [gnu/lib/libgcc__PL] Error code 2 make[3]: stopped in /usr/src-arm 1 error make[3]: stopped in /usr/src-arm *** [libraries] Error code 2 make[2]: stopped in /usr/src-arm 1 error make[2]: stopped in /usr/src-arm *** [_libraries] Error code 2 make[1]: stopped in /usr/src-arm 1 error make[1]: stopped in /usr/src-arm *** [buildworld] Error code 2 make: stopped in /usr/src-arm 1 error make: stopped in /usr/src-arm If I hardcode libunwind.S to use /usr/src-arm/sys/arm/include/acle-compat.h I get this error: ===> gnu/lib/libgcc (obj,depend,all,install) (cd /usr/src-arm/gnu/lib/libgcc; make -f /usr/src-arm/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src-arm/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc gthr-default.h) `gthr-default.h' is up to date. (cd /usr/src-arm/gnu/lib/libgcc; make -f /usr/src-arm/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src-arm/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc unwind.h) `unwind.h' is up to date. cc -O -pipe -DTARGET_ARM_EABI -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DHAVE_GTHR_DEFAULT -I/usr/src-arm/gnu/lib/libgcc/../../../contrib/gcclibs/include -I/usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc/config -I/usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc -I. -I/usr/src-arm/gnu/lib/libgcc/../../usr.bin/cc/cc_tools -Dinhibit_libc -fno-inline -std=gnu99 -fheinous-gnu-extensions -Qunused-arguments -c /usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc/config/arm/libunwind.S -o libunwind.o In file included from /usr/src-arm/gnu/lib/libgcc/../../../contrib/gcc/config/arm/libunwind.S:29: /usr/src-arm/sys/arm/include/acle-compat.h:182:4: error: Unable to determine architecture version. # error Unable to determine architecture version. ^ 1 error generated. *** [libunwind.o] Error code 1 make[4]: stopped in /usr/src-arm/gnu/lib/libgcc 1 error make[4]: stopped in /usr/src-arm/gnu/lib/libgcc *** [gnu/lib/libgcc__PL] Error code 2 make[3]: stopped in /usr/src-arm 1 error make[3]: stopped in /usr/src-arm *** [libraries] Error code 2 make[2]: stopped in /usr/src-arm 1 error make[2]: stopped in /usr/src-arm *** [_libraries] Error code 2 make[1]: stopped in /usr/src-arm 1 error make[1]: stopped in /usr/src-arm *** [buildworld] Error code 2 make: stopped in /usr/src-arm 1 error make: stopped in /usr/src-arm Regards, Ronald.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.yebzffztkndu52>