12-CURRENT: AARCH64 buildworld broken

O. Hartmann ohartmann at walstatt.org
Sat Jan 14 15:46:23 UTC 2017


Am Sat, 14 Jan 2017 11:45:15 +0100
"O. Hartmann" <o.hartmann at walstatt.org> schrieb:

> I try to compile world of 12-CURRENT (r312163) since a couple of days now (the failure
> started before Christmas 2016, so its weeks now). I'm bothered with the very same
> problem since then, as the error shown below indicates. There is a miscompilation quite
> shortly after buildworld starts and I do not know what this error is triggered by.
> 
> I also do not know where to post questions like this, is it list ARM or is it list
> EMBEDDED?
> 
> The target is to try something on Hardkernel's ODROID-C2, which seems to be completely
> unsupported by FreeBSD but is a very promising piece of hardware for several projects
> like ASTERISK PBX (if it is working), survailance/monitoring (not even weather/climate)
> and other interesting stuff.
> 
> Thank you very much in advance for help or hints/tips,
> 
> Oliver 

I found out that this error is due to a miscompilation of CLANG 3.9.1 when optimisation
level -O3 has been selected. With -O2, the error vanishes.

> 
> [...]
> mtree -deU -f /pool/sources/CURRENT/src/etc/mtree/BSD.include.dist
> -p /pool/nanobsd/aarch64/ODROIDC2_aarch64/arm64.aarch64/pool/sources/CURRENT/src/tmp/usr/include
> >/dev/null ln
> >-sf /pool/sources/CURRENT/src/sys /pool/nanobsd/aarch64/ODROIDC2_aarch64/arm64.aarch64/pool/sources/CURRENT/src/tmp
> >--- _legacy ---  
> --------------------------------------------------------------
> >>> stage 1.1: legacy release compatibility shims  
> --------------------------------------------------------------
> cd /pool/sources/CURRENT/src;
> MAKEOBJDIRPREFIX=/pool/nanobsd/aarch64/ODROIDC2_aarch64/arm64.aarch64/pool/sources/CURRENT/src/tmp
> INSTALL="sh /pool/sources/CURRENT/src/tools/install.sh"
> TOOLS_PREFIX=/pool/nanobsd/aarch64/ODROIDC2_aarch64/arm64.aarch64/pool/sources/CURRENT/src/tmp
> PATH=/pool/nanobsd/aarch64/ODROIDC2_aarch64/arm64.aarch64/pool/sources/CURRENT/src/tmp/legacy/usr/sbin:/pool/nanobsd/aarch64/ODROIDC2_aarch64/arm64.aarch64/pool/sources/CURRENT/src/tmp/legacy/usr/bin:/pool/nanobsd/aarch64/ODROIDC2_aarch64/arm64.aarch64/pool/sources/CURRENT/src/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin
> WORLDTMP=/pool/nanobsd/aarch64/ODROIDC2_aarch64/arm64.aarch64/pool/sources/CURRENT/src/tmp
> MAKEFLAGS="-m /pool/sources/CURRENT/src/tools/build/mk  -j 4 -J 15,16
> -m /pool/sources/CURRENT/src/share/mk" make  -f Makefile.inc1  DESTDIR=
> BOOTSTRAPPING=1200020  SSP_CFLAGS=  MK_HTML=no NO_LINT=yes MK_MAN=no  -DNO_PIC
> MK_PROFILE=no -DNO_SHARED  -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no  MK_CLANG_EXTRAS=no
> MK_CLANG_FULL=no  MK_LLDB=no MK_TESTS=no  MK_INCLUDES=yes legacy --- legacy --- ===>
> tools/build (obj,includes,all,install) --- obj
> --- /pool/nanobsd/aarch64/ODROIDC2_aarch64/arm64.aarch64/pool/sources/CURRENT/src/tmp/pool/sources/CURRENT/src/tools/build
> created for /pool/sources/CURRENT/src/tools/build --- dummy.o --- cc  -O3 -pipe
> -DNDEBUG -MD  -MF.depend.dummy.o -MTdummy.o -std=gnu99  -Qunused-arguments
> -I/pool/nanobsd/aarch64/ODROIDC2_aarch64/arm64.aarch64/pool/sources/CURRENT/src/tmp/legacy/usr/include
> -c /pool/sources/CURRENT/src/tools/build/dummy.c -o dummy.o --- libegacy.a
> --- ...skipping... numa_getaffinity.pico: In function `numa_getaffinity': (.text+0x8):
> relocation truncated to fit: R_AARCH64_CONDBR19 against symbol `cerror' defined in .text
> section in cerror.pico procctl.pico: In function `procctl': (.text+0x8): relocation
> truncated to fit: R_AARCH64_CONDBR19 against symbol `cerror' defined in .text section in
> cerror.pico aio_mlock.pico: In function `aio_mlock': (.text+0x8): relocation truncated
> to fit: R_AARCH64_CONDBR19 against symbol `cerror' defined in .text section in
> cerror.pico chflagsat.pico: In function `chflagsat': (.text+0x8): relocation truncated
> to fit: R_AARCH64_CONDBR19 against symbol `cerror' defined in .text section in
> cerror.pico connectat.pico: In function `connectat': (.text+0x8): relocation truncated
> to fit: R_AARCH64_CONDBR19 against symbol `cerror' defined in .text section in
> cerror.pico bindat.pico: In function `bindat': (.text+0x8): relocation truncated to fit:
> R_AARCH64_CONDBR19 against symbol `cerror' defined in .text section in cerror.pico
> cap_fcntls_get.pico: In function `cap_fcntls_get': (.text+0x8): relocation truncated to
> fit: R_AARCH64_CONDBR19 against symbol `cerror' defined in .text section in cerror.pico
> cap_fcntls_limit.pico: In function `cap_fcntls_limit': (.text+0x8): relocation truncated
> to fit: R_AARCH64_CONDBR19 against symbol `cerror' defined in .text section in
> cerror.pico cap_ioctls_get.pico: In function `cap_ioctls_get': (.text+0x8): relocation
> truncated to fit: R_AARCH64_CONDBR19 against symbol `cerror' defined in .text section in
> cerror.pico cap_ioctls_limit.pico: In function `cap_ioctls_limit': (.text+0x8):
> additional relocation overflows omitted from the output cc: error: linker command failed
> with exit code 1 (use -v to see invocation) *** [libc.so.7] Error code 1
> 
> 



-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 313 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20170114/12606dbd/attachment.sig>


More information about the freebsd-arm mailing list