Article View: gnu.gcc.help
Article #41650Help with SunOS/Solaris cross-compiler (repost)
From: Christopher W. Curtis
Date: Sat, 02 Mar 1996 00:00
Date: Sat, 02 Mar 1996 00:00
31 lines
1977 bytes
1977 bytes
I'm trying to create a compiler for our Solaris machines using gcc 2.7.2 and I can't seem to do it. I've followed all the instructions (I think) and everything proceeds fine until it tries to link, when I get this error: ./xgcc -B./ -DCROSS_COMPILE -DIN_GCC -g -I./include libgcc1-test.o -o libgcc1-test \ -nostartfiles -nostdlib `./xgcc -B./ --print-libgcc-file-name` libgcc1-test.o: In function `main_without__main': libgcc1-test.o(.text+0x94): undefined reference to `umul' libgcc1-test.o(.text+0xb4): undefined reference to `div' libgcc1-test.o(.text+0xd8): undefined reference to `rem' libgcc1-test.o(.text+0xf8): undefined reference to `udiv' libgcc1-test.o(.text+0x11c): undefined reference to `urem' *** Error code 1 make: Fatal error: Command failed for target `libgcc1-test' The documentation describes a few workarounds, but I don't know anything about gcc macros, &c, and we don't have a compiler for the Solaris machine. I was wondering if anyone would be able to tell me how to proceed from here, or if anyone could send me a valid libgcc1.a to link against. I'm trying to get a native compiler for Solaris 2.4 by first creating a cross-compiler from SunOS 4.1.1. If any more info is needed, I'll be more than willing to give it. Thanks in advance, -- Christopher Curtis, Sun SysAdmin - http://www.ee.fit.edu/users/ccurtis Florida Institute of Technology - telnet bofh.engr.wisc.edu 666 Melbourne, Florida USA - Member, Team OS/2
Technical Details
Message-ID:
<ccurtis.825746314@ee.fit.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<ccurtis.825292652@ee.fit.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,5dcea02a76b88f6a,start X-Google-Attributes: gid11318c,public From: ccurtis@ee.fit.edu (Christopher W. Curtis) Subject: Help with SunOS/Solaris cross-compiler (repost) Date: 1996/03/02 Message-ID: <ccurtis.825746314@ee.fit.edu> X-Deja-AN: 141770964 sender: news@zeno.fit.edu (USENET NEWS SYSTEM) references: <ccurtis.825292652@ee.fit.edu> organization: Florida Tech, CP/EE Dept. newsgroups: gnu.gcc.help