From owner-freebsd-sparc Fri Mar 31 12:35:28 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 E7CC637B652 for ; Fri, 31 Mar 2000 12:35:22 -0800 (PST) (envelope-from lyndon@bsd4us.org) Received: (qmail 49956 invoked by uid 1000); 31 Mar 2000 20:30:54 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 31 Mar 2000 20:30:54 -0000 Date: Fri, 31 Mar 2000 15:30:54 -0500 (EST) From: Lyndon Griffin To: freebsd-sparc@freebsd.org Subject: Re: Cross compilation problems In-Reply-To: <20000330212548.A15132@mobile.gerp.org> 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 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