From owner-freebsd-arm@freebsd.org Wed Mar 16 09:54:49 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 A44B5AD28EC for ; Wed, 16 Mar 2016 09:54:49 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7032477F for ; Wed, 16 Mar 2016 09:54:48 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1ag8A9-0008QA-5c for freebsd-arm@freebsd.org; Wed, 16 Mar 2016 10:54:45 +0100 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-arm@freebsd.org Subject: Re: libunwind does not compile References: <1458054610.68920.17.camel@freebsd.org> Date: Wed, 16 Mar 2016 10:54:39 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: d9b0ae15ee993d77aea4f0208a5c5b8c 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: Wed, 16 Mar 2016 09:54:49 -0000 On Wed, 16 Mar 2016 00:07:50 +0100, Ronald Klop wrote: > On Tue, 15 Mar 2016 16:10:10 +0100, Ian Lepore wrote: > >> 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 >> > > Ah, ok. > I don't want to cross-build everything with gcc. I only had gcc > installed as cc, because clang did not work on the arm machine. Does > WITHOUT_CLANG_IS_CC does something more than 'man src.conf' mentions? > I just removed WITHOUT_CLANG_IS_CC=yes and now the build continues. > > See what happens after a night sleep while clang compiles. :-) > > Ronald. Things build correctly again. Thanks for the pointer. Ronald.