Bug#939472: libclangCodeGen.a: error adding symbols: archive has no index
Sylvestre Ledru
sylvestre at debian.org
Thu Sep 5 12:35:33 BST 2019
Le 05/09/2019 à 13:16, Timo Aaltonen a écrit :
> Package: llvm-9-dev
> Version: 1:9~+rc3-1~exp2
> Severity: normal
>
> Mesa 19.2.0-rc2 fails to build against llvm-9:
>
> c++ -o src/gallium/targets/opencl/libMesaOpenCL.so.1.0.0 -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--
> start-group -Wl,-soname,libMesaOpenCL.so.1 -Wl,--whole-archive src/gallium/state_trackers/clover/libclover.a -Wl,-
> -no-whole-archive -g -O2 '-fdebug-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat -Werror=format-
> security -Wall -Wl,-z,relro src/gallium/auxiliary/pipe-loader/libpipe_loader_dynamic.a src/loader/libloader.a src/
> util/libxmlconfig.a src/util/libmesa_util.a src/gallium/auxiliary/libgallium.a src/compiler/glsl/libglsl.a src/com
> piler/glsl/glcpp/libglcpp.a src/compiler/nir/libnir.a src/compiler/libcompiler.a src/gallium/state_trackers/clover
> /libclllvm.a -Wl,--gc-sections -Wl,--version-script '/<<PKGBUILDDIR>>/src/gallium/targets/opencl/opencl.sym' /usr/
> lib/x86_64-linux-gnu/libz.so -pthread -lm -ldl /usr/lib/x86_64-linux-gnu/libelf.so /usr/lib/llvm-9/lib/libclangCod
> eGen.a /usr/lib/llvm-9/lib/libclangFrontendTool.a /usr/lib/llvm-9/lib/libclangFrontend.a /usr/lib/llvm-9/lib/libcl
> angDriver.a /usr/lib/llvm-9/lib/libclangSerialization.a /usr/lib/llvm-9/lib/libclangParse.a /usr/lib/llvm-9/lib/li
> bclangSema.a /usr/lib/llvm-9/lib/libclangAnalysis.a /usr/lib/llvm-9/lib/libclangAST.a /usr/lib/llvm-9/lib/libclang
> ASTMatchers.a /usr/lib/llvm-9/lib/libclangEdit.a /usr/lib/llvm-9/lib/libclangLex.a /usr/lib/llvm-9/lib/libclangBas
> ic.a /usr/lib/x86_64-linux-gnu/libdrm.so /usr/lib/x86_64-linux-gnu/libexpat.so -L/usr/lib/llvm-9/lib -lLLVM-9 -lse
> nsors -L/usr/lib/llvm-9/lib -lLLVM-9 -Wl,--end-group '-Wl,-rpath,$ORIGIN/../../auxiliary/pipe-loader:$ORIGIN/../..
> /../loader:$ORIGIN/../../../util:$ORIGIN/../../auxiliary:$ORIGIN/../../../compiler/glsl:$ORIGIN/../../../compiler/
> glsl/glcpp:$ORIGIN/../../../compiler/nir:$ORIGIN/../../../compiler' '-Wl,-rpath-link,/<<PKGBUILDDIR>>/build/src/ga
> llium/auxiliary/pipe-loader' '-Wl,-rpath-link,/<<PKGBUILDDIR>>/build/src/loader' '-Wl,-rpath-link,/<<PKGBUILDDIR>>
> /build/src/util' '-Wl,-rpath-link,/<<PKGBUILDDIR>>/build/src/gallium/auxiliary' '-Wl,-rpath-link,/<<PKGBUILDDIR>>/
> build/src/compiler/glsl' '-Wl,-rpath-link,/<<PKGBUILDDIR>>/build/src/compiler/glsl/glcpp' '-Wl,-rpath-link,/<<PKGB
> UILDDIR>>/build/src/compiler/nir' '-Wl,-rpath-link,/<<PKGBUILDDIR>>/build/src/compiler'
> /usr/bin/ld: /usr/lib/llvm-9/lib/libclangCodeGen.a: error adding symbols: archive has no index; run ranlib to add
> one
> collect2: error: ld returned 1 exit statusGianfranco also noticed a huge increase of the package sie.
I guess it is related!
Cheers
Sylvestre
More information about the Pkg-llvm-team
mailing list