详细错误:
[cc] Starting link
[cc] /usr/bin/ld: libtest1.so: no symbol version section for versioned symbol `memcpy@GLIBC_2.0'
[cc] /usr/bin/ld: 最后的链结失败: nonrepresentable section on output
[cc] collect2: error: ld returned 1 exit status
BUILD FAILED
/home/tsit/jogamp232-loongarch64/gluegen/make/build.xml:1071: The following error occurred while executing this line:
/home/tsit/jogamp232-loongarch64/gluegen/make/build-test.xml:282: The following error occurred while executing this line:
/home/tsit/jogamp232-loongarch64/gluegen/make/build-test.xml:605: The following error occurred while executing this line:
/home/tsit/jogamp232-loongarch64/gluegen/make/build-test.xml:250: gcc failed with return code 1
这个错误也是老朋友了,也有不少博文说明。吾今天提供一个新思路。错误起因是吾编译了ant的bin,又使用了发布的lib,二者不配套。于是吾分两步编译:
- 使用发布的lib进行第一次编译,出错到此。
- 吾再使用编译的lib覆盖发布的lib,接着编译,忽悠过去了。