optimization/7171: Not enough room for program headers (allocated 7, need 8)

Peter Schmid schmid@snake.iap.physik.tu-darmstadt.de
Wed Jul 31 07:36:00 GMT 2002


Attached to this email is a bzip2 compressed tar archive containing
the preprocessed source file and the .s file.

As an aside, when -pedantic is removed from the command line the
compilation finishes without a problem.

Thank you for your help.

Peter Schmid

g++ -v -O3 ex7_11.cpp -save-temps -o ex7_11  -pedantic
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-languages=c,c++,f77,objc,treelang
Thread model: posix
gcc version 3.2 20020728 (experimental)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/cc1plus -E -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D_GNU_SOURCE ex7_11.cpp -pedantic -O3 ex7_11.ii
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include/c++/3.2
 /usr/local/include/c++/3.2/i686-pc-linux-gnu
 /usr/local/include/c++/3.2/backward
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/cc1plus -fpreprocessed ex7_11.ii -quiet -dumpbase ex7_11.cpp -O3 -pedantic -version -o ex7_11.s
GNU C++ version 3.2 20020728 (experimental) (i686-pc-linux-gnu)
	compiled by GNU C version 3.2 20020728 (experimental).
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/bin/as -V -Qy -o ex7_11.o ex7_11.s
GNU assembler version 2.12.90.0.15 (i686-pc-linux-gnu) using BFD version 2.12.90.0.15 20020717
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o ex7_11 /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtbegin.o -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2 -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/lib -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../.. ex7_11.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/crtend.o /usr/lib/crtn.o
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/bin/ld: ex7_11: Not enough room for program headers (allocated 7, need 8)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

Compilation exited abnormally with code 1 at Wed Jul 31 09:53:40

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex7_11.tar.bz2
Type: application/octet-stream
Size: 77582 bytes
Desc: ex7_11.tar.bz2
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020731/0dd20b51/attachment.obj>


More information about the Gcc-bugs mailing list