Bug 178495 - buildworld fail on arm/raspberry pi
Summary: buildworld fail on arm/raspberry pi
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 10.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-10 22:30 UTC by Andreas Schwarz
Modified: 2015-07-07 13:41 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schwarz 2013-05-10 22:30:00 UTC
Building the world fail in the beginning when building llvm. A cross compile at amd64/i386 works without any problems.

c++  -O -pipe -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support -I. -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"armv6-unknown-freebsd10.0\" -DLLVM_HOSTTRIPLE=\"armv6-unknown-freebsd10.0\" -DDEFAULT_SYSROOT=\"\" -I/usr/obj/usr/src/tmp/legacy/usr/include -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp -o APFloat.o
Assertion failed: ((PtrVal & ((1 << PtrTraits::NumLowBitsAvailable)-1)) == 0 && "Pointer is not sufficiently aligned"), function initWithPointer, file /usr/home/asc/donotbackup/hardware/Raspberry_Pi/build/src/FreeBSD/head/lib/clang/libclangsema/../../../contrib/llvm/include/llvm/ADT/PointerIntPair.h, line 100.
Stack dump:
0.      Program arguments: /usr/bin/c++ -cc1 -triple armv6-unknown-freebsd10.0 -S -disable-free -main-file-name APFloat.cpp -mrelocation-model static -mdisable-fp-elim -relaxed-aliasing -mconstructor-aliases -target-abi apcs-gnu -target-cpu arm1136jf-s -msoft-float -mfloat-abi soft -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon -coverage-file /tmp/APFloat-fMJVrL.s -resource-dir /usr/bin/../lib/clang/3.3 -D LLVM_ON_UNIX -D LLVM_ON_FREEBSD -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -D LLVM_DEFAULT_TARGET_TRIPLE="armv6-unknown-freebsd10.0" -D LLVM_HOSTTRIPLE="armv6-unknown-freebsd10.0" -D DEFAULT_SYSROOT="" -I /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include -I /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/include -I /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support -I . -I /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include -I /usr/obj/usr/src/tmp/legacy/usr/inclu
 de -O2 -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmsupport -ferror-limit 19 -fmessage-length 101 -mstackrealign -fno-rtti -fno-signed-char -fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fsjlj-exceptions -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o /tmp/APFloat-fMJVrL.s -x c++ /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp
1.      /usr/include/c++/4.2/bits/basic_string.tcc:978:43: current parser token ';'
2.      /usr/include/c++/4.2/bits/basic_string.tcc:48:1 <Spelling=/usr/include/c++/4.2/bits/c++config.h:76:38>: parsing namespace 'std'
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.3 (trunk 178860) 20130405
Target: armv6-unknown-freebsd10.0
Thread model: posix
c++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg: Error generating preprocessed source(s).
*** [APFloat.o] Error code 254

Stop in /usr/src/lib/clang/libllvmsupport.
*** [bootstrap-tools] Error code 1

Stop in /usr/src.
*** [_bootstrap-tools] Error code 1

Stop in /usr/src.
*** [buildworld] Error code 1

Stop in /usr/src.

How-To-Repeat: cd /usr/src
make buildworld
Comment 1 Justin Unwin 2013-05-12 14:08:18 UTC
I have the same problem

- J

On 10 May 2013, at 9:25 PM, Andreas Schwarz <freebsd.asc@schwarzes.net> wrot=
e:

>=20
>> Number:         178495
>> Category:       arm
>> Synopsis:       buildworld fail on arm/raspberry pi
>> Confidential:   no
>> Severity:       non-critical
>> Priority:       low
>> Responsible:    freebsd-arm
>> State:          open
>> Quarter:       =20
>> Keywords:      =20
>> Date-Required:
>> Class:          sw-bug
>> Submitter-Id:   current-users
>> Arrival-Date:   Fri May 10 21:30:00 UTC 2013
>> Closed-Date:
>> Last-Modified:
>> Originator:     Andreas Schwarz
>> Release:        10.0-CURRENT
>> Organization:
>> Environment:
> FreeBSD pizelot.schwarzes.net 10.0-CURRENT FreeBSD 10.0-CURRENT #2: Fri Ma=
y 10 02:30:14 CEST 2013     root@pizelot.schwarzes.net:/usr/obj/usr/src/sys/=
RPI-B-ASC  arm
>> Description:
> Building the world fail in the beginning when building llvm. A cross compi=
le at amd64/i386 works without any problems.
>=20
> c++  -O -pipe -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/in=
clude -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/=
include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Suppor=
t -I. -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/cl=
ang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_=
CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=3D\"armv6-=
unknown-freebsd10.0\" -DLLVM_HOSTTRIPLE=3D\"armv6-unknown-freebsd10.0\" -DDE=
FAULT_SYSROOT=3D\"\" -I/usr/obj/usr/src/tmp/legacy/usr/include -fno-exceptio=
ns -fno-rtti -c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/=
Support/APFloat.cpp -o APFloat.o
> Assertion failed: ((PtrVal & ((1 << PtrTraits::NumLowBitsAvailable)-1)) =3D=
=3D 0 && "Pointer is not sufficiently aligned"), function initWithPointer, f=
ile /usr/home/asc/donotbackup/hardware/Raspberry_Pi/build/src/FreeBSD/head/l=
ib/clang/libclangsema/../../../contrib/llvm/include/llvm/ADT/PointerIntPair.=
h, line 100.
> Stack dump:
> 0.      Program arguments: /usr/bin/c++ -cc1 -triple armv6-unknown-freebsd=
10.0 -S -disable-free -main-file-name APFloat.cpp -mrelocation-model static -=
mdisable-fp-elim -relaxed-aliasing -mconstructor-aliases -target-abi apcs-gn=
u -target-cpu arm1136jf-s -msoft-float -mfloat-abi soft -target-feature +sof=
t-float -target-feature +soft-float-abi -target-feature -neon -coverage-file=
 /tmp/APFloat-fMJVrL.s -resource-dir /usr/bin/../lib/clang/3.3 -D LLVM_ON_UN=
IX -D LLVM_ON_FREEBSD -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -D LL=
VM_DEFAULT_TARGET_TRIPLE=3D"armv6-unknown-freebsd10.0" -D LLVM_HOSTTRIPLE=3D=
"armv6-unknown-freebsd10.0" -D DEFAULT_SYSROOT=3D"" -I /usr/src/lib/clang/li=
bllvmsupport/../../../contrib/llvm/include -I /usr/src/lib/clang/libllvmsupp=
ort/../../../contrib/llvm/tools/clang/include -I /usr/src/lib/clang/libllvms=
upport/../../../contrib/llvm/lib/Support -I . -I /usr/src/lib/clang/libllvms=
upport/../../../contrib/llvm/../../lib/clang/include -I /usr/obj/usr/src/tmp=
/legacy/u
> sr/inclu
> de -O2 -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir=
 /usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmsupport -ferror-limit 19 -fme=
ssage-length 101 -mstackrealign -fno-rtti -fno-signed-char -fobjc-runtime=3D=
gnustep -fobjc-default-synthesize-properties -fsjlj-exceptions -fdiagnostics=
-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o /tmp/AP=
Float-fMJVrL.s -x c++ /usr/src/lib/clang/libllvmsupport/../../../contrib/llv=
m/lib/Support/APFloat.cpp
> 1.      /usr/include/c++/4.2/bits/basic_string.tcc:978:43: current parser t=
oken ';'
> 2.      /usr/include/c++/4.2/bits/basic_string.tcc:48:1 <Spelling=3D/usr/i=
nclude/c++/4.2/bits/c++config.h:76:38>: parsing namespace 'std'
> c++: error: unable to execute command: Abort trap (core dumped)
> c++: error: clang frontend command failed due to signal (use -v to see inv=
ocation)
> FreeBSD clang version 3.3 (trunk 178860) 20130405
> Target: armv6-unknown-freebsd10.0
> Thread model: posix
> c++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/b=
ugs/ and include the crash backtrace, preprocessed source, and associated ru=
n script.
> c++: note: diagnostic msg: Error generating preprocessed source(s).
> *** [APFloat.o] Error code 254
>=20
> Stop in /usr/src/lib/clang/libllvmsupport.
> *** [bootstrap-tools] Error code 1
>=20
> Stop in /usr/src.
> *** [_bootstrap-tools] Error code 1
>=20
> Stop in /usr/src.
> *** [buildworld] Error code 1
>=20
> Stop in /usr/src.
>=20
>> How-To-Repeat:
> cd /usr/src
> make buildworld
>=20
>> Fix:
>=20
>=20
>> Release-Note:
>> Audit-Trail:
>> Unformatted:
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
Comment 2 Rene Ladan 2013-05-12 14:51:52 UTC
I reported this upstream to the LLVM/clang developers (note the assertion
failure) as http://llvm.org/bugs/show_bug.cgi?id=15696
Comment 3 Andreas Schwarz 2013-08-25 23:53:12 UTC
Hi,
in the meantime this problem was solved, it's possible to build the world using a raspberry with the current/head freebsd base system. You can close the bug.
Comment 4 Glen Barber freebsd_committer freebsd_triage 2015-07-07 13:41:20 UTC
Closed as requested in followup.

Thank you for your report.