public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* eprintf hates me
@ 2000-12-08 18:04 Florin Boariu
  2000-12-11  8:17 ` jfaith
  0 siblings, 1 reply; 4+ messages in thread
From: Florin Boariu @ 2000-12-08 18:04 UTC (permalink / raw)
  To: crossgcc

Hi!

On my i586-pc-linux-gnu I set up a cross-compiling environment for a
powerpc-g3-linux-gnu, which seems to work (I can compile a kernel and boot
it w/o any problems). But I'm having big difficulties in compiling a
native compiler (gcc-2.95.2) on my i586 to run on the g3. The following
error gives me headaches (I posted only the tail -- the whole 2> is about
200k, all about __eprintf):

where.o: In function `ffewhere_line_filelinenum':
/usr/src/sources/lppc/compile/gcc-obj/gcc/f/../../../gcc-2.95.2/gcc/f/where.c:219: relocation truncated to fit: R_PPC_REL24 __eprintf
where.o: In function `ffewhere_line_kill':
/usr/src/sources/lppc/compile/gcc-obj/gcc/f/../../../gcc-2.95.2/gcc/f/where.c:235: relocation truncated to fit: R_PPC_REL24 __eprintf
where.o: In function `ffewhere_line_use':
/usr/src/sources/lppc/compile/gcc-obj/gcc/f/../../../gcc-2.95.2/gcc/f/where.c:333: relocation truncated to fit: R_PPC_REL24 __eprintf
collect2: ld returned 1 exit status
make[2]: *** [../f771] Error 1
make[1]: *** [f771] Error 2
make: *** [all-gcc] Error 2

The configuration was done by:

gcc-obj $ ../gcc-2.95.2/configure --host=powerpc-g3-linux-gnu --build=i586-pc-linux-gnu --target=powerpc-g3-linux-gnu --enable-static-link --with-newlib

I also tried to --enable-languagues="c" since the error seems to appear
when compiling the f77 compiler (or am I wrong?), but then gcc doesn't get
built either... very strange.

I need the --enable-static-link option because the target system does not
have a libc yet.

Does anybody have any idea about what I'm doing wrong?

best regards,
florin.


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: eprintf hates me
  2000-12-08 18:04 eprintf hates me Florin Boariu
@ 2000-12-11  8:17 ` jfaith
  2000-12-11  9:29   ` Florin Boariu
  2000-12-11 11:29   ` Andris Pavenis
  0 siblings, 2 replies; 4+ messages in thread
From: jfaith @ 2000-12-11  8:17 UTC (permalink / raw)
  To: Florin Boariu; +Cc: crossgcc

You might try
    make LANGUAGES="c" cross
, which will skip building the Fortran stuff.  Also, it's probably a good idea to clean your build directory and start from the beginning, since I've seen
the make process continue trying to build Fortran even when given the "c" flag.

,
John


Florin Boariu wrote:

> ...
>
> The configuration was done by:
>
> gcc-obj $ ../gcc-2.95.2/configure --host=powerpc-g3-linux-gnu --build=i586-pc-linux-gnu --target=powerpc-g3-linux-gnu --enable-static-link --with-newlib
>
> I also tried to --enable-languagues="c" since the error seems to appear
> when compiling the f77 compiler (or am I wrong?), but then gcc doesn't get
> built either... very strange.
>
> I need the --enable-static-link option because the target system does not
> have a libc yet.
>
> Does anybody have any idea about what I'm doing wrong?






------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: eprintf hates me
  2000-12-11  8:17 ` jfaith
@ 2000-12-11  9:29   ` Florin Boariu
  2000-12-11 11:29   ` Andris Pavenis
  1 sibling, 0 replies; 4+ messages in thread
From: Florin Boariu @ 2000-12-11  9:29 UTC (permalink / raw)
  To: jfaith; +Cc: crossgcc

On Mon, 11 Dec 2000 jfaith@lineo.com wrote:

> 
> You might try
>     make LANGUAGES="c" cross
> , which will skip building the Fortran stuff.  Also, it's probably a good idea to clean your build directory and start from the beginning, since I've seen
> the make process continue trying to build Fortran even when given the "c" flag.

I did start from scratch, IIRC. However, I compiled the gcc-core-2.95.2
and it made no problems. I still don't know if it works, since I didn't
set up my system yet, but I'll find out soon...

Thanks!

florin.


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: eprintf hates me
  2000-12-11  8:17 ` jfaith
  2000-12-11  9:29   ` Florin Boariu
@ 2000-12-11 11:29   ` Andris Pavenis
  1 sibling, 0 replies; 4+ messages in thread
From: Andris Pavenis @ 2000-12-11 11:29 UTC (permalink / raw)
  To: jfaith; +Cc: Florin Boariu, crossgcc

On Mon, 11 Dec 2000 jfaith@lineo.com wrote:

> 
> You might try
>     make LANGUAGES="c" cross
> , which will skip building the Fortran stuff.  Also, it's probably a good idea to clean your build directory and start from the beginning, since I've seen
> the make process continue trying to build Fortran even when given the "c" flag.
> 

I once patched gcc/libgcc2.c to avoid --inhibit-libc without asking me.
At least it allowed to build under Linux gcc-2.95.2 as native compiler
for i586-pc-msdos-djgpp (including FORTRAN etc...)

> 
> 
> Florin Boariu wrote:
> 
> > ...
> >
> > The configuration was done by:
> >
> > gcc-obj $ ../gcc-2.95.2/configure --host=powerpc-g3-linux-gnu --build=i586-pc-linux-gnu --target=powerpc-g3-linux-gnu --enable-static-link --with-newlib
> >
> > I also tried to --enable-languagues="c" since the error seems to appear
> > when compiling the f77 compiler (or am I wrong?), but then gcc doesn't get
> > built either... very strange.
> >
> > I need the --enable-static-link option because the target system does not
> > have a libc yet.
> >
> > Does anybody have any idea about what I'm doing wrong?
> 
> 
> 
> 
> 
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
> 
> 


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-12-11 11:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-08 18:04 eprintf hates me Florin Boariu
2000-12-11  8:17 ` jfaith
2000-12-11  9:29   ` Florin Boariu
2000-12-11 11:29   ` Andris Pavenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).