From owner-freebsd-arm@FreeBSD.ORG Mon Jul 21 03:39:30 2014 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 ESMTPS id 59A9C91 for ; Mon, 21 Jul 2014 03:39:30 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1AA692D7B for ; Mon, 21 Jul 2014 03:39:29 +0000 (UTC) Received: from c-50-155-136-3.hsd1.co.comcast.net ([50.155.136.3] helo=ilsoft.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1X94Rk-0002eK-4G for freebsd-arm@FreeBSD.org; Mon, 21 Jul 2014 03:39:28 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id s6L3dRXb031604 for ; Sun, 20 Jul 2014 21:39:27 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 50.155.136.3 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18Y1CLV17onWIjOR+DrcWix X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: Compiling clang33 port on Raspberry Pi From: Ian Lepore To: FreeBSD ARM In-Reply-To: <1405907282.85788.64.camel@revolution.hippie.lan> References: <1405907282.85788.64.camel@revolution.hippie.lan> Content-Type: text/plain; charset="us-ascii" Date: Sun, 20 Jul 2014 21:39:26 -0600 Message-ID: <1405913966.85788.66.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2014 03:39:30 -0000 On Sun, 2014-07-20 at 19:48 -0600, Ian Lepore wrote: > On Mon, 2014-07-21 at 12:56 +1200, Stephen Woolerton wrote: > > Hi everyone, > > > > I'm would like to install the clang33 package on a Raspberry Pi running 10.0-STABLE (r268038). I compiled the clang33 port on the Pi and it crashed as outlined below. > > > > I'm hoping someone can give me a hand to get the crash resolved, or maybe there is another way of getting clang33 installed. > > Note: Regarding LibraryDependencies.inc, I googled and found that this issue can occur if python v2 is not available. Python27 is installed on this system but no "python" binary, and so I symlinked python27 to python in /usr/local/bin, but still the same fault. > > > > Thank you > > Stephen > > -------------------- > > ... > > > > llvm-build: error: invalid native target: 'armv6' (not in project) > > llvm[3]: Linking Release Shared Library libLLVM-3.3.so > > gmake[3]: Leaving directory `/usr/ports/devel/llvm33/work/llvm-3.3.src/tools/llvm-shlib' > > gmake[3]: Entering directory `/usr/ports/devel/llvm33/work/llvm-3.3.src/tools/llvm-config' > > llvm[3]: Constructing LLVMBuild project information. > > Usage: llvm-build [options] > > > > llvm-build: error: invalid native target: 'armv6' (not in project) > > llvm[3]: Building llvm-config BuildVariables.inc file. > > llvm[3]: Compiling llvm-config.cpp for Release build > > llvm-config.cpp:45:10: fatal error: 'LibraryDependencies.inc' file not found > > #include "LibraryDependencies.inc" > > ^ > > 1 error generated. > > rm: /usr/ports/devel/llvm33/work/llvm-3.3.src/tools/llvm-config/Release/llvm-config.d.tmp: No such file or directory > > gmake[3]: *** [/usr/ports/devel/llvm33/work/llvm-3.3.src/tools/llvm-config/Release/llvm-config.o] Error 1 > > gmake[3]: Leaving directory `/usr/ports/devel/llvm33/work/llvm-3.3.src/tools/llvm-config' > > gmake[2]: *** [all] Error 1 > > gmake[2]: Leaving directory `/usr/ports/devel/llvm33/work/llvm-3.3.src' > > ===> Compilation failed unexpectedly. > > Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to > > the maintainer. > > *** Error code 1 > > > > Stop. > > make[1]: stopped in /usr/ports/devel/llvm33 > > *** Error code 1 > > > > Stop. > > make: stopped in /usr/ports/devel/llvm33 > > > > ===>>> make build failed for devel/llvm33 > > ===>>> Aborting update > > > > ===>>> Update for devel/llvm33 failed > > ===>>> Aborting update > > > > ===>>> Update for lang/clang33 failed > > ===>>> Aborting update > > > > > > ===>>> You can restart from the point of failure with this command line: > > portmaster lang/clang33 devel/llvm33 > > I had the same problem today trying to build llvm-devel and clang-devel > (clang 3.5) on a wandboard. The actual problem is "llvm-build: error: > invalid native target: 'armv6' (not in project)"; it leads to the > dependencies not being built. > > Try copying the attached file into the files directory of *both* the > llvm and clang ports, replacing the same-named file already there, then > do a make clean and start the build over. > > -- Ian > > _______________________________________________ > 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" Hrm, apparently the attachment got scrubbed from the list, presumably because the filename ended in .py. There are no tabs or anything in it, so I'll just paste it here... --- utils/llvm-build/llvmbuild/main.py.orig 2014-04-23 19:17:42 +0000 +++ utils/llvm-build/llvmbuild/main.py 2014-07-20 14:45:44 +0000 @@ -699,7 +699,16 @@ # We handle a few special cases of target names here for historical # reasons, as these are the names configure currently comes up with. - native_target_name = { 'x86' : 'X86', + native_target_name = { 'amd64' : 'X86', + 'arm' : 'ARM', + 'armeb' : 'ARM', + 'armv6' : 'ARM', + 'armv6hf' : 'ARM', + 'i386' : 'X86', + 'mips' : 'Mips', + 'powerpc' : 'PowerPC', + 'sparc64' : 'Sparc', + 'x86' : 'X86', 'x86_64' : 'X86', 'Unknown' : None }.get(opts.native_target, opts.native_target) -- Ian