From owner-freebsd-sparc Fri Mar 31 12:40:53 2000 Delivered-To: freebsd-sparc@freebsd.org Received: from mail.bsd4us.org (cn386092-a.newcas1.de.home.com [24.40.46.90]) by hub.freebsd.org (Postfix) with SMTP id 8645537BA60 for ; Fri, 31 Mar 2000 12:40:49 -0800 (PST) (envelope-from swilson@bsd4us.org) Received: (qmail 49974 invoked by uid 1001); 31 Mar 2000 20:36:22 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 31 Mar 2000 20:36:22 -0000 Date: Fri, 31 Mar 2000 15:36:22 -0500 (EST) From: Sam Wilson To: freebsd-sparc@FreeBSD.ORG Subject: Re: Cross compilation problems In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I went to a book store today and was looking at the Oh!, Really? book on "Programming with GNU Tools". There was a table in it about all the different "supported" (ie. supported by Cygnus Solutions--DO NOT BUY THIS BOOK, it's a big dumb ad for Cygnus and didn't seem to contian anything resembling useful information--unless, of course, you consider Cygnus phone number useful...) cross-compiler settings. Oddly enough, i386 was not listed as one of the supported "host" machines; it was only listed as a target. Something tells me we may need to try and contact some of the alpha-port people and enlist their help... sw On Fri, 31 Mar 2000, Lyndon Griffin wrote: > This is where I seem to bomb out, as well. Funny - it sounds like this > is a very frequent problem, but the Cross-GCC faq says nothing about > it. I did try to "skip" the part of the configure script that does this, > but I started running into many other issues, so I kinda dropped the ball. > I'm kinda thinking that this is always going to fail at this point, and > here's my logic: > > 1) we built a cross compiler to compile netbsd-sparc bins on freebsd-i86 > 2) the configure script tries to build (and execute?) a binary on i86 > using the f-i86 to n-sparc compiler > 3) the sparc bin fails, as it can't run on an i86 (or something like that) > > On Thu, 30 Mar 2000, Kevin M. Dulzo wrote: > > > After my windy intro, my cross compilation still bombs out in the libio > > portion. It really seems to have built the compiler but is dying > > someplace later on (not a gcc internals guru). One of the things > > that bugs me is the C preprocessor line using /lib/cpp -- that seems > > odd. Any suggestions? Anyone successfully build these tools yet? > > > > -Kevin > > > > Here is the failure output: > > > > make all-recursive > > Making all in intl > > Making all in lib > > Making all in makeinfo > > (cd intl && make all) > > Configuring in sparc-netbsd/libiberty > > loading cache ./config.cache > > checking host system type... sparc-unknown-netbsd > > checking build system type... i386-unknown-freebsdelf > > checking for sparc-netbsd-ar... sparc-netbsd-ar > > checking for sparc-netbsd-ranlib... sparc-netbsd-ranlib > > checking for gcc... /usr/local/sparc-netbsd/src/contrib/gcc/gcc/xgcc -B/usr/local/sparc-netbsd/src/contrib/gcc/gcc/ -B/usr/local/sparc-netbsd/sparc-netbsd/bin/ > > checking whether we are using GNU C... yes > > checking whether /usr/local/sparc-netbsd/src/contrib/gcc/gcc/xgcc -B/usr/local/sparc-netbsd/src/contrib/gcc/gcc/ -B/usr/local/sparc-netbsd/sparc-netbsd/bin/ accepts -g... yes > > checking for POSIXized ISC... no > > checking for a BSD compatible install... /usr/bin/install -c > > xhost-mkfrag is unchanged > > checking how to run the C preprocessor... /lib/cpp > > checking for sys/file.h... no > > checking for sys/param.h... no > > checking for stdlib.h... no > > checking for string.h... no > > checking for unistd.h... no > > checking for strings.h... no > > checking for sys/time.h... no > > checking for sys/resource.h... no > > checking for sys/wait.h that is POSIX.1 compatible... no > > checking whether the C compiler (/usr/local/sparc-netbsd/src/contrib/gcc/gcc/xgcc -B/usr/local/sparc-netbsd/src/contrib/gcc/gcc/ -B/usr/local/sparc-netbsd/sparc-netbsd/bin/ -g -O2 ) works... no > > configure: error: installation or configuration problem: C compiler cannot create executables. > > *** Error code 1 > > > > Stop in /usr/local/sparc-netbsd/src/contrib/gcc. > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-sparc" in the body of the message > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-sparc" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message