Article View: gnu.gcc.help
Article #52919NeXT to Linux cross-compiler
From: Randy McCaskill
Date: Mon, 20 Apr 1992 16:04
Date: Mon, 20 Apr 1992 16:04
48 lines
2755 bytes
2755 bytes
I am trying to set up a cross compiler from my next for Linux on a 386. There are some files that I grabbed from a ftp site that give me i386-linux as a configuration option. I ran configure with the parameters "--host=next --target=i386-linix" and all looked happy. The compiler was even compiling fine for a while till I hit: ------ gcc -c -DCROSS_COMPILE -O -g -I. -I. -I./config aux-output.c ./config/m68k.c: In function `output_function_prologue': In file included from aux-output.c:6: ./config/m68k.c:92: `TARGET_68040' undeclared (first use this function) ./config/m68k.c:92: (Each undeclared identifier is reported only once ./config/m68k.c:92: for each function it appears in.) ./config/m68k.c:102: `TARGET_68020' undeclared (first use this function) ./config/m68k.c: In function `valid_dbcc_comparison_p': ./config/m68k.c:537: `CC_IN_68881' undeclared (first use this function) ./config/m68k.c: In function `notice_update_cc': ./config/m68k.c:1167: `CC_IN_68881' undeclared (first use this function) ./config/m68k.c: In function `standard_68881_constant_p': ./config/m68k.c:1253: `TARGET_68040' undeclared (first use this function) ./config/m68k.c: In function `print_operand': ./config/m68k.c:1565: `TARGET_68040_ONLY' undeed (first use this function) ./config/m68k.c:1595: `TARGET_68020' undeclared (first use this function) aux-output.c: In function `handle_pragma': aux-output.c:29: warning: initialization of `p' makes pointer from integer without a cast *** Exit 1 Stop. ------ I tried putting #define statements in config/m68k.c so that all of the things that it though were undeclared were FALSE and this let this program compile. After all, I don't want the target to be 68040 or 68020 based. But when it goes to link the file I get a large number of undefined symbols. Is there any hope for this. Of course there is always hope, but I am refering to my lifetime. :) -Randy ------ _ __ ' ) ) / /--' __. ____ __/ __ , / \_(_/|_/ / <_(_/_/ (_/_ Randy McCaskill / rmccask@seas.gwu.edu '
Technical Details
Message-ID:
<1992Apr20.160410.4594@seas.gwu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!seas.gwu.edu!rmccaskShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,2ee67673309410e0,start X-Google-Attributes: gid11318c,public X-Google-Thread: 147c05,2ee67673309410e0,start X-Google-Attributes: gid147c05,public X-Google-ArrivalTime: 1992-04-20 09:04:10 PST Newsgroups: gnu.gcc.help,comp.os.linix Path: arc1-ca.pugleaf.net!sparky!uunet!seas.gwu.edu!rmccask From: rmccask@seas.gwu.edu (Randy McCaskill) Subject: NeXT to Linux cross-compiler Message-ID: <1992Apr20.160410.4594@seas.gwu.edu> Followup-To: gnu.gcc.help Originator: rmccask@seas.gwu.edu Sender: news@seas.gwu.edu Organization: George Washington University Date: Mon, 20 Apr 1992 16:04:10 GMT Lines: 48