Article View: gnu.gcc.bug
Article #6041Compile error compiling cross compiler on linux for the pdp11-unknown-bsd
From: Paul Wouters
Date: Mon, 09 Dec 1996 00:00
Date: Mon, 09 Dec 1996 00:00
49 lines
2584 bytes
2584 bytes
Hi, While trying to build the cross compiler for the pdp11 for linux on an intel, i get the following compile error: baldrick: /vol/bigfoot/gcc-pdp11/gcc-2.7.2.1# make LANGUAGES=c cc -c -DCROSS_COMPILE -DIN_GCC -g -I. -I. -I./config ./config/pdp11/pdp11.c ./config/pdp11/pdp11.c: In function `output_function_epilogue': ./config/pdp11/pdp11.c:209: `frame_pointer_needed' undeclared (first use this function) ./config/pdp11/pdp11.c:209: (Each undeclared identifier is reported only once ./config/pdp11/pdp11.c:209: for each function it appears in.) make: *** [pdp11.o] Error 1 I spoke with Michael Gschwind, who's name was mentioned in the pdp11 code. Here is what he told me. > Paul Wouters wrote: > > I saw your name in the pdp include files in the gcc source tree. > > I am attempting to build a cross compiler for the pdp11 on a pentium > > running linux, and it fails compiling the pdp11.c file. I tried to > > fix it but prob only made things worse ;) > > The error was about frame_pointer_needed being undefined. I flipped > > a coin and changed it to 0 (It was just in an if statement ;) > > Hmm, I tried to compile 2.7.2.1 on a Sun cross to PDP, and it built > without a problem. In any case, frame_pointer_needed is a variable, > not a #define, so I figure that would definitely ruin things... > > I don't have a Linux box around so I could try, but please make sure > you have the most recent release... > > If the problems persist, please mail a bug report to the gcc bug > report address so that Linux people can have a look at it (you should > clearly state that the corss compile works for Suns...) > > mike > > PS: I can't understand why that var would be undefined, because: > [michael@kodiak.vlsivie.tuwien.ac.at:157] grep frame_pointer_needed > pdp11.c > extern int frame_pointer_needed; > if (frame_pointer_needed) > && frame_pointer_needed)) > if (frame_pointer_needed) > Paul Wouters
Technical Details
Message-ID:
<Pine.LNX.3.93.961209182154.25644A-100000@bean.xtdnet.nl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,ced70a1d80b69f20,start X-Google-Attributes: gid113d02,public From: paul@xtdnet.nl (Paul Wouters) Subject: Compile error compiling cross compiler on linux for the pdp11-unknown-bsd Date: 1996/12/09 Message-ID: <Pine.LNX.3.93.961209182154.25644A-100000@bean.xtdnet.nl> X-Deja-AN: 203166321 sender: bug-gcc-request@prep.ai.mit.edu x-gateway: relay4.UU.NET from bug-gcc to gnu.gcc.bug; Mon, 9 Dec 1996 12:53:41 EST content-type: TEXT/PLAIN; charset=US-ASCII mime-version: 1.0 newsgroups: gnu.gcc.bug