/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: warning: /lib/../lib64/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: warning: /lib/../lib64/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: warning: /lib/../lib64/libz.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: warning: /lib/../lib64/libz.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: warning: /lib64/libm.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: warning: /lib64/libm.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: warning: /lib64/libm.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: /lib64/libm.so.6: unknown type [0x13] section `.relr.dyn'
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: skipping incompatible /lib64/libm.so.6 when searching for /lib64/libm.so.6
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: cannot find /lib64/libm.so.6
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: warning: /lib64/libmvec.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: warning: /lib64/libmvec.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: warning: /lib64/libmvec.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: /lib64/libmvec.so.1: unknown type [0x13] section `.relr.dyn'
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: skipping incompatible /lib64/libmvec.so.1 when searching for /lib64/libmvec.so.1
/data/home/unashi/toolchain/bin/x86_64-pc-linux-gnu-ld: cannot find /lib64/libmvec.so.1
clang++-18: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/shared/CMakeFiles/clucene-shared.dir/build.make:306: bin/libclucene-shared.so.2.3.3.4] Error 1
make[1]: *** [CMakeFiles/Makefile2:212: src/shared/CMakeFiles/clucene-shared.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
我在编译clucene源码的时候出现这个问题。后来发现是我的toolchain的clangd无法编译动态库
用cmake -D 指定另一个clangd版本