【发布时间】:2015-10-28 10:55:21
【问题描述】:
尝试在 AIX 6.1 上以 64 位编译 git 时出现以下链接错误:
$ ./configure "CFLAGS=-maix64" "CXXFLAGS=-maix64" "LDFLAGS=-maix64" && /usr/opt/freeware/bin/make
<compilation/linking output>
ld: 0711-781 ERROR: TOC overflow. TOC size: 90720 Maximum size: 65536
collect2: error: ld returned 12 exit status
make: *** [git] Error 1
【问题讨论】:
-
注意:这不是任何人的错,这是 CPU 指令集的限制。让我们提到一个事实,虽然 -bbigtoc 解决了它,但链接器必须修改某些对象模块中的代码:在那些假设 toc 将是“小”的情况下编译的那些。在编译选项 -qpic=large (xlC) 或 -fPIC/-fPIE (gcc) 可用于强制假设大目录。 ibm.com/developerworks/rational/library/overview-toc-aix
标签: git makefile 64-bit aix configure