From owner-freebsd-arm@freebsd.org Tue Mar 15 15:26:21 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DFD5DAD1820 for ; Tue, 15 Mar 2016 15:26:20 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from erouter6.ore.mailhop.org (erouter6.ore.mailhop.org [54.187.213.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C76EF1154 for ; Tue, 15 Mar 2016 15:26:20 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 74a41dec-eabf-11e5-a023-11ad6df26ed1 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.34.117.227 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.34.117.227]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Tue, 15 Mar 2016 15:06:11 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.14.9) with ESMTP id u2FFAAqf023292; Tue, 15 Mar 2016 09:10:10 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1458054610.68920.17.camel@freebsd.org> Subject: Re: libunwind does not compile From: Ian Lepore To: Ronald Klop , freebsd-arm@freebsd.org Date: Tue, 15 Mar 2016 09:10:10 -0600 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2016 15:26:21 -0000 On Mon, 2016-03-14 at 21:05 +0100, Ronald Klop wrote: > 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 > ^ > 1 error generated. > *** [libunwind.o] Error code 1 When I crossbuild -current for dreamplug and I want gcc instead of clang, I use these settings: WITH_GCC=yes WITH_GNUCXX=yes WITH_GCC_BOOTSTRAP=yes WITHOUT_CLANG=yes WITHOUT_CLANG_IS_CC=yes WITHOUT_CLANG_BOOTSTRAP=yes That said, you may also be interested to hear that clang 3.8 runs fine on a *plug on -current. I've been using clang 3.8 (from the project branch before the recent merge to current) and gcc on my dreamplug within the past month. -- Ian