compiling on AIX

Поиск
Список
Период
Сортировка
Искать

compiling on AIX

От:
Nicolas Addington <adding@math.wisc.edu>
Дата:
Hi,

Compiling 8.0.0RC2 on AIX 4.3 on an RS600 with gcc, in src/backend, got 
the following error:

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -fno-strict-aliasing 
-L../../src/port -L/usr/local/lib -L/da23/d56/croquet/readline/lib 
access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o 
commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o 
main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o 
postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o 
tcop/SUBSYS.o utils/SUBSYS.o ../../src/timezone/SUBSYS.o 
-Wl,-bE:../../src/backend/postgres.imp  -lpgport_srv -lz -lreadline 
-ltermcap -lPW -lld -lnsl -ldl -lm  -o postgres
ld: 0711-781 ERROR: TOC overflow. TOC size: 72616       Maximum size: 
65536
collect2: ld returned 12 exit status
make: *** [postgres] Error 1

Adding "-Xlinker -bbigtoc" to this command line (enabling the "bigtoc" 
linker option) allowed the build to continue, but this is the ld man 
page's comment:

bigtoc Generates extra code if the size of the table of contents (TOC) is 
greater than 64KB. Extra code is needed for every reference to a TOC 
symbol that cannot be addressed with a 16-bit offset. Because a program 
containing generated code may have poor performance, you should reduce the 
number of TOC entries needed by the program before using this option. The 
default is the nobigtoc option.

Please advise.


Nick Addington
FAQ