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