From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-embedded+bounces-2136-garchives=archives.gentoo.org@gentoo.org>) id 1IpVTp-0003Pv-Tt for garchives@archives.gentoo.org; Tue, 06 Nov 2007 20:57:02 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lA6KtDMJ015551; Tue, 6 Nov 2007 20:55:13 GMT Received: from mho-01-bos.mailhop.org (mho-01-bos.mailhop.org [63.208.196.178]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id lA6KtC6M015546 for <gentoo-embedded@lists.gentoo.org>; Tue, 6 Nov 2007 20:55:12 GMT Received: from pool-72-84-98-242.nrflva.fios.verizon.net ([72.84.98.242] helo=phobos) by mho-01-bos.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from <gentoo@lakedaemon.net>) id 1IpVS3-000Ca1-Ir for gentoo-embedded@lists.gentoo.org; Tue, 06 Nov 2007 20:55:12 +0000 Received: from [10.16.5.17] (unknown [10.16.5.17]) by phobos (Postfix) with ESMTP id 2E6B6187001E for <gentoo-embedded@lists.gentoo.org>; Tue, 6 Nov 2007 15:55:10 -0500 (EST) X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 72.84.98.242 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18vrdpdKQBAdZXSRRUMUqTIUaal8ewxbiE= Message-ID: <4730D4AD.9060303@lakedaemon.net> Date: Tue, 06 Nov 2007 15:55:09 -0500 From: Jason <gentoo@lakedaemon.net> User-Agent: Thunderbird 2.0.0.6 (X11/20070917) Precedence: bulk List-Post: <mailto:gentoo-embedded@lists.gentoo.org> List-Help: <mailto:gentoo-embedded+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-embedded+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org> X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] C compiler cannot create executables References: <1194288937.8164.10.camel@mercury.sprymusic> <20071105224141.14530.qmail@stuge.se> <1194306650.13461.5.camel@hangover.linbsd.net> <1194370017.22183.8.camel@mercury.sprymusic> <4730A893.4080302@lakedaemon.net> <1194371724.22183.13.camel@mercury.sprymusic> <4730AE5C.8060006@lakedaemon.net> <1194378900.22183.41.camel@mercury.sprymusic> <4730CC57.2030105@lakedaemon.net> <1194381099.22183.44.camel@mercury.sprymusic> <4730D0D3.70604@lakedaemon.net> <1194382093.22183.48.camel@mercury.sprymusic> In-Reply-To: <1194382093.22183.48.camel@mercury.sprymusic> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 07248857-6c3d-418d-8a9e-d8d2c4064163 X-Archives-Hash: 8ad51d990553573c28ced13d3304ea2b Jean-Claude Gervais wrote: > On Tue, 2007-11-06 at 15:38 -0500, Jason wrote: >> Jean-Claude Gervais wrote: >>> On Tue, 2007-11-06 at 15:19 -0500, Jason wrote: >>>> Jean-Claude Gervais wrote: >>>>> On Tue, 2007-11-06 at 13:11 -0500, Jason wrote: >>>>>> Jean-Claude Gervais wrote: >>>>>>> On Tue, 2007-11-06 at 12:46 -0500, Jason wrote: >>>>>>>> Jean-Claude Gervais wrote: >>>>>>>>> Same problem, different environment: >>>>>>>>> >>>>>>>>> I produced a cross-development toolkit by using the following command: >>>>>>>>> >>>>>>>>> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- >>>>>>>>> SYSROOT="/usr/arm-softfloat-linux-uclibc" >>>>>>>>> >>>>>>>>> UCLIBC_CPU="ARM920T" USE="-*" crossdev -v -S --binutils 2.17 --gcc >>>>>>>>> 3.4.6-r2 --kernel 2.6.19-r2 --libc 0.9.28.3 --ex-gdb --target >>>>>>>>> arm-softfloat-linux-uclibc >>>>>>>>> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- >>>>>>>>> >>>>>>>>> This went well; all the required tools were built. >>>>>>>>> >>>>>>>>> But now when I try to use the (modified) xmerge script, I get the >>>>>>>>> "C compiler cannot create executables" error >>>>>>>> [snip] >>>>>>>>> configure:1225: checking build system type >>>>>>>>> configure:1243: result: i686-pc-linux-gnu >>>>>>>>> configure:1250: checking host system type >>>>>>>>> configure:1264: result: i686-softfloat-linux-uclibc >>>>>>>>> configure:1272: checking target system type >>>>>>>>> configure:1286: result: i686-softfloat-linux-uclibc >>>>>>>> This doesn't look right. Did you setup ${SYSROOT}/etc/make.conf and >>>>>>>> ${SYSROOT}/etc/make.profile ? >>>>>>> I think I did; here is the contents of >>>>>>> /usr/arm-softfloat-linux-uclibc/etc/make.conf >>>>>>> >>>>>>> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- >>>>>>> ACCEPT_KEYWORDS="arm" >>>>>>> ARCH="arm" >>>>>>> >>>>>>> CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp" >>>>>>> CHOST="i686-softfloat-linux-uclibc" >>>>>> This line should be: >>>>>> CHOST="arm-softfloat-linux-uclibc" >>>>> OK, I changed that line, performed a >>>>> crossdev -C arm-softfloat-linux-uclibc >>>>> >>>>> And then re-ran the toolchain build procedure I am using; >>>> judging by your initial ncurses build error, you haven't successfully >>>> xmerge'd anything into SYSROOT, so all you had to do was change CHOST in >>>> ${SYSROOT}/etc/make.conf, then try xmerge ncurses again. >>>> >>>>> SYSROOT="/usr/arm-softfloat-linux-uclibc" >>>>> >>>>> UCLIBC_CPU="ARM920T" USE="-*" crossdev -v -S --binutils 2.17 --gcc >>>>> 3.4.6-r2 --kernel 2.6.19-r2 --libc 0.9.28.3 --ex-gdb --target >>>>> arm-softfloat-linux-uclibc >>>> crossdev doesn't use SYSROOT, it creates it. So there is no need to set it. >>>> >>>>> Which concluded with no errors. >>>>> >>>>> However, when I run any xmerge, I still get the same error >>>>> "C compiler cannot create executables" >>>> Did you repeat Section 3 of the cross-development guide after blowing >>>> away SYSROOT with crossdev -C <target>? >>> Yes, absolutely. >>> >>>> And set CHOST correctly? >>> You mean in /usr/arm-softfloat-linux-uclibc/etc/make.conf ? >>> Yes. >>> >>> The make.conf at that location is >>> >>> ACCEPT_KEYWORDS="arm" >>> ARCH="arm" >>> >>> CFLAGS="-Os -pipe -mfloat-abi=softfp -mfpu=vfp" >>> CHOST="arm-softfloat-linux-uclibc" >>> CXXFLAGS="${CFLAGS}" >>> GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo >>> http://prometheus.cs.wmich.edu/gentoo http://mirror.datapipe.net/gentoo >>> http://ftp.ucsb.edu/pub/m$ >>> INPUT_DEVICES="keyboard" >>> MAKEOPTS="-j2" >>> USE="minimal symlink" >>> UCLIBC_CPU="ARM920T" >>> >> Okay, I suspect you fixed the error you were getting before >> (configure:1286: result: i686-softfloat-linux-uclibc), so let's take a >> look at the config.log again and see what's tripping it up this time. > > Eureka! Or maybe I should say D'OH! > > I had some invalid compiler options: -mfloat-abi=softfp -mfpu=vfp > in my CFLAGS! Damn, I though those looked funny. I personally don't use them, but I thought you had a good reason... :-) > I scanned the config.log too quickly last time. Sorry! > > and > Thanks Jason! No problem. Glad I could help. Jason. -- gentoo-embedded@gentoo.org mailing list