From owner-freebsd-arm@FreeBSD.ORG Thu Aug 22 13:12:33 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9E347878 for ; Thu, 22 Aug 2013 13:12:33 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5C59F2C25 for ; Thu, 22 Aug 2013 13:12:33 +0000 (UTC) Received: from mr1.cc.vt.edu (mr1.cc.vt.edu [198.82.141.12]) by lennier.cc.vt.edu (8.13.8/8.13.8) with ESMTP id r7MDC2FQ027660; Thu, 22 Aug 2013 09:12:02 -0400 Received: from auth3.smtp.vt.edu (auth3.smtp.vt.edu [198.82.161.152]) by mr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id r7MDC1sx005693; Thu, 22 Aug 2013 09:12:01 -0400 Received: from pmather.tower.lib.vt.edu (pmather.tower.lib.vt.edu [128.173.51.28]) (authenticated bits=0) by auth3.smtp.vt.edu (8.13.8/8.13.8) with ESMTP id r7MDC1Wf026150 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 22 Aug 2013 09:12:01 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: pkg repository for ARM? From: Paul Mather In-Reply-To: <34F61A6F-D0D2-4D16-BD70-8206AC19DC37@kientzle.com> Date: Thu, 22 Aug 2013 09:12:00 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <7485E663-3881-4E0D-9DE2-A00D24ED030E@gromit.dlib.vt.edu> References: <522A0D57-4DD4-4669-BB5A-AFCD81E9F497@netsense.nl> <41577B23-E4DE-451B-B5F7-912024C05AB7@gromit.dlib.vt.edu> <34F61A6F-D0D2-4D16-BD70-8206AC19DC37@kientzle.com> To: Tim Kientzle X-Mailer: Apple Mail (2.1508) Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 13:12:33 -0000 On Aug 15, 2013, at 10:19 PM, Tim Kientzle 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 = : 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.