From owner-freebsd-sparc Fri Mar 31 15:42:10 2000 Delivered-To: freebsd-sparc@freebsd.org Received: from mobile.gerp.org (caffeine.gerp.org [216.80.26.45]) by hub.freebsd.org (Postfix) with SMTP id 0F9D237BDA9 for ; Fri, 31 Mar 2000 15:42:05 -0800 (PST) (envelope-from kdulzo@mobile.gerp.org) Received: (qmail 50551 invoked by uid 100); 31 Mar 2000 23:42:04 -0000 Date: Fri, 31 Mar 2000 17:42:04 -0600 From: "Kevin M. Dulzo" To: Lyndon Griffin Cc: freebsd-sparc@freebsd.org Subject: Re: Cross compilation problems Message-ID: <20000331174204.C50505@mobile.gerp.org> References: <20000330212548.A15132@mobile.gerp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from lyndon@bsd4us.org on Fri, Mar 31, 2000 at 03:30:54PM -0500 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Mar 31, 2000 at 03:30:54PM -0500, 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: > I noted the lack on the CrossGCC FAQ myself -- it seems very newlib/embedded system centric. > 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) > I think I have this figured out -- just not a solution. Im going to post a request for info to the binutils list. But this is not a problem with gcc or its build process, it is ld. Run the sparc-netbsd-ld command: /usr/local/sparc-elf/bin/sparc-elf-ld:built in linker script:1: syntax error in MRI style script Furthur examination of config.log in gcc-build-dir/gcc/libiberty the config.log file for the breakage point shows this error in it. Starting from scratch and rebuilding cross-binutils standalone still shows this error when executing. I also tried using the -c option to use the ldscripts/ directory versions and received the same error for all of them. Fun, fun, fun. -Kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message