Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2013 09:12:00 -0400
From:      Paul Mather <paul@gromit.dlib.vt.edu>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: pkg repository for ARM?
Message-ID:  <7485E663-3881-4E0D-9DE2-A00D24ED030E@gromit.dlib.vt.edu>
In-Reply-To: <34F61A6F-D0D2-4D16-BD70-8206AC19DC37@kientzle.com>
References:  <522A0D57-4DD4-4669-BB5A-AFCD81E9F497@netsense.nl> <DE75F074-D232-4D6F-AB78-C7C606E5F59A@ugh.net.au> <CAJ-Vmo=HffPx1nfRPaO7ZWx15EcY9DRbACqs-F1tDrea_murzw@mail.gmail.com> <41577B23-E4DE-451B-B5F7-912024C05AB7@gromit.dlib.vt.edu> <34F61A6F-D0D2-4D16-BD70-8206AC19DC37@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 15, 2013, at 10:19 PM, Tim Kientzle <tim@kientzle.com> wrote:

>=20
> On Aug 15, 2013, at 4:09 PM, Paul Mather wrote:
>=20
>> AFAIK, a native build under clang on arm is still broken.
>=20
> I have done full native builds on BBB since the Clang
> switch got thrown.

I've not tried on the BBB, just Raspberry Pi.  I should probably give it =
a go on the BBB now I have a cross-built FreeBSD working on there.  I =
can't think of a good reason why it would work on BBB and not Raspberry =
Pi, though.


> I haven't been able to do it very consistently, but I
> don't think that can be entirely blamed on clang.  ;-)

Are you doing full native builds with WITHOUT_CLANG_IS_CC set?  I have =
never managed to do a successful native build using clang; I always have =
to set the compilers to point to the native GCC versions in my =
/etc/src.conf.  (I can, of course, successfully cross-build world and =
kernel using clang via crochet.)

Do you have a SVN revision number that will successfully build natively =
using clang?

I tried a native build on my Raspberry Pi yesterday, and I still get the =
clang Abort Trap internal compiler error bug triggered where it =
complains about unaligned access (Assertion failed: ((PtrVal & ((1 << =
PtrTraits::NumLowBitsAvailable)-1)) =3D=3D 0 && "Pointer is not =
sufficiently aligned")):

=3D=3D=3D=3D=3D
c++  -O -pipe =
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include =
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/incl=
ude =
-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=3D\"armv6-gnueabi-freebsd10.0\" =
-DLLVM_HOST_TRIPLE=3D\"armv6-unknown-freebsd10.0\" =
-DDEFAULT_SYSROOT=3D\"\" -I/usr/obj/usr/src/tmp/legacy/usr/include =
-fno-exceptions -fno-rtti  -c =
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloa=
t.cpp -o APFloat.o
Assertion failed: ((PtrVal & ((1 << PtrTraits::NumLowBitsAvailable)-1)) =
=3D=3D 0 && "Pointer is not sufficiently aligned"), function =
initWithPointer, file =
/usr/src/lib/clang/libclangsema/../../../contrib/llvm/include/llvm/ADT/Poi=
nterIntPair.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-5qvCkz.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=3D"armv6-gnueabi-freebsd10.0" -D =
LLVM_HOST_TRIPLE=3D"armv6-unknown-freebsd10.0" -D DEFAULT_SYSROOT=3D"" =
-I /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include -I =
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/includ=
e -I /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support =
-I . -I =
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/in=
clude -I /usr/obj/usr/src/tmp/legacy/usr/include -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 0 -mstackrealign -fno-rtti -fno-signed-char =
-fobjc-runtime=3Dgnustep -fobjc-default-synthesize-properties =
-fsjlj-exceptions -fdiagnostics-show-option -backend-option =
-vectorize-loops -o /tmp/APFloat-5qvCkz.s -x c++ =
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloa=
t.cpp=20
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=3D/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

bmake[2]: stopped in /usr/src/lib/clang/libllvmsupport
1 error

bmake[2]: stopped in /usr/src/lib/clang/libllvmsupport
*** [bootstrap-tools] Error code 2

bmake[1]: stopped in /usr/src
1 error

bmake[1]: stopped in /usr/src
*** [_bootstrap-tools] Error code 2

bmake: stopped in /usr/src
1 error

bmake: stopped in /usr/src
*** [buildworld] Error code 2
1 error
=3D=3D=3D=3D=3D

That is with this native version of clang:

FreeBSD clang version 3.3 (trunk 178860) 20130405
Target: armv6-unknown-freebsd10.0
Thread model: posix


Do you (or anyone else) know whether this bug has been fixed?  I'm going =
to do a native build using GCC and then see if I can do a native build =
using clang.

Cheers,

Paul.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7485E663-3881-4E0D-9DE2-A00D24ED030E>