Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiler Problem

Status
Not open for further replies.

kingjx

MIS
Jul 27, 2001
16
US
I have a user compling jikes using gcc c++ with the following error

This time the /usr/bin/ld program has hit a limit while compiling a C++ program.
Looks like some sort of Table Of Contents can only be 64K in size.

The output from the compile follows:

Making all in doc
Target "all" is up to date.
Making all in src
make all-am
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o body.o body.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o decl.o decl.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o definite.o definite.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o dump.o dump.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o expr.o expr.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o incrmnt.o incrmnt.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o init.o init.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o javaact.o javaact.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o jikes.o jikes.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o jikesapi.o jikesapi.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o modifier.o modifier.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o system.o system.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o platform.o platform.cpp
g++ -g -O2 -o jikes ast.o body.o bytecode.o case.o code.o control.o decl.o definite.o depend.o diagnose.o double.o dump.o error.o expr.o getclass.o incrmnt.o init.o javaact.o jikes.o jikesapi.o long.o lookup.o lpginput.o modifier.o op.o option.o parser.o scanner.o segment.o set.o stream.o symbol.o system.o tab.o unparse.o unzip.o zip.o platform.o
ld: 0711-781 ERROR: TOC overflow. TOC size: 96456 Maximum size: 65536
collect2: ld returned 12 exit status
make: 1254-004 The error code from the last command is 1.


Any one know what limit has been reached ?

Is it a problem with gcc c++ compiler or O/S limitations

 
Not sure about the answer ... but you can try the folowing options with "ld" !

-Wl,-bbigtoc

This option was added with AIX 4.1.5 ... and there is a fix for AIX 4.3.2

TOC overflow applies to the number of exported and/or global symbols and/or TOC data symbols used by the application.
:eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top