public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problem compiling GCC 3.2 on i686-pc-linux: "not enough room for program headers"
@ 2002-10-29 14:51 Francis Hwang
  2002-10-29 17:11 ` Ben Elliston
  0 siblings, 1 reply; 11+ messages in thread
From: Francis Hwang @ 2002-10-29 14:51 UTC (permalink / raw)
  To: gcc-help

I'm trying to compile GCC 3.2, and configure seems to work, but then when I
make, I get this error:

checking whether the C compiler (...) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.

So I started looking around in the config.log files, and the first errors I
found were these, in i686-pc-linux-gnu/libstdc++-v3/config.log:

/usr/bin/ld: conftest: Not enough room for program headers (allocated 6,
need 7)
/usr/bin/ld: final link failed: Bad value

I'm getting a lot of these "not enough room for program headers" errors. In
the list archives, I've seen a couple of people saying that running ld -N
works well, but I'm not sure how to set that up when I'm compiling GCC. Is
there some flag that I should use that'll do that for me?

Thanks in advance,

Francis

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Problem compiling GCC 3.2 on i686-pc-linux: "not enough room for program headers"
@ 2002-11-01 10:00 Francis Hwang
  0 siblings, 0 replies; 11+ messages in thread
From: Francis Hwang @ 2002-11-01 10:00 UTC (permalink / raw)
  To: gcc-help

(I sent this yesterday, but it looked like it didn't go through, so I'm
sending again ...)

So updating binutils helped: I'm getting further, but now I'm stuck
somewhere else. It's on this line:

/home/francis/gcc-3.2/gcc/gcj -B/home/francis/gcc-3.2/i686-pc-linux-gnu/libj
ava/ -B/home/francis/gcc-3.2/gcc/ --encoding=UTF-8 -fclasspath= -fbootclassp
ath=/home/francis/gcc-3.2/i686-pc-linux-gnu/libjava -ffloat-store -g -O2 -MD
 -MT java/lang/Class.lo -MF java/lang/Class.d -c
java/lang/Class.java -fPIC -o java/lang/.libs/Class.o
/tmp/ccWKhZuc.s: Assembler messages:
/tmp/ccWKhZuc.s:2: Warning: Missing string
/tmp/ccWKhZuc.s:2: Error: Rest of line ignored. First ignored character is
`1'.
/tmp/ccWKhZuc.s:17: Error: Unknown pseudo-op:  `.loc'
/tmp/ccWKhZuc.s:28: Error: Unknown pseudo-op:  `.loc'
/tmp/ccWKhZuc.s:34: Error: Unknown pseudo-op:  `.loc'
/tmp/ccWKhZuc.s:43: Warning: Missing string
/tmp/ccWKhZuc.s:43: Error: Rest of line ignored. First ignored character is
`2'.
/tmp/ccWKhZuc.s:44: Warning: Missing string
/tmp/ccWKhZuc.s:44: Error: Rest of line ignored. First ignored character is
`3'.
....

I'll spare you the 6 or so screens of output: It's a lot of "Unknown
pseudo-op" and "Bad .section directive: want a,w,x in string" ... Since this
is Java-specific stuff, and I only really care about C & C++ at this point,
I tried using

./configure --enable-languages=c,c++

but that seemed to open a whole different can of worms ... Any ideas where I
should look next?

Thanks,

Francis

----- Original Message -----
From: "Ben Elliston" <bje@redhat.com>
To: <gcc-help@gcc.gnu.org>
Sent: Wednesday, October 30, 2002 8:02 PM
Subject: Re: Problem compiling GCC 3.2 on i686-pc-linux: "not enough room
for program headers"


> >>>>> "Francis" == Francis Hwang <francis@rhizome.org> writes:
>
>   >> What kind of system do you have?  What does `sh config.guess' say?
>
>   Francis> i686-pc-linux-gnu
>
> Of course, as your message subject suggests. Ooops.
>
>   >> /usr/bin/ld -v
>   Francis> GNU ld version 2.9.1 (with BFD 2.9.1.0.24)
>
>   Francis> So, the GNU linker, I suppose. BTW, is the version number
>   Francis> for ld the same as the version number for binutils? Cause
>   Francis> if so, and binutils is at 2.13, maybe that means I ought to
>   Francis> update that?
>
> I think that would be a good starting point.  It sounds like it could
> be a bug in the linker script used by ld.
>
> Ben
>
>



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

end of thread, other threads:[~2002-11-22 18:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-29 14:51 Problem compiling GCC 3.2 on i686-pc-linux: "not enough room for program headers" Francis Hwang
2002-10-29 17:11 ` Ben Elliston
2002-10-30  9:55   ` Francis Hwang
2002-10-30 17:02     ` Ben Elliston
2002-10-31 11:16       ` Francis Hwang
2002-11-22  9:17     ` CPP (preprocessor) quandry Eljay Love-Jensen
2002-11-22  9:43       ` Buddy Lott
2002-11-22 10:06         ` Eljay Love-Jensen
2002-11-22 10:11           ` Buddy Lott
2002-11-22 10:32             ` Eljay Love-Jensen
2002-11-01 10:00 Problem compiling GCC 3.2 on i686-pc-linux: "not enough room for program headers" Francis Hwang

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).