sparse fails to build against llvm16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Debian upgraded llvm to version 16 and sparse fails to build against this with:

g++ -L/usr/lib/llvm-16/lib -Wl,-z,relro -Wl,-z,now -Wl,--as-needed sparse-llvm.o libsparse.a -lLLVM-16 -o sparse-llvm
/usr/bin/ld: sparse-llvm.o: in function `get_sym_value':
././sparse-llvm.c:305:(.text+0x7b2): undefined reference to `LLVMConstGEP'
/usr/bin/ld: sparse-llvm.o: in function `calc_gep':
././sparse-llvm.c:488:(.text+0xe37): undefined reference to `LLVMBuildInBoundsGEP'
/usr/bin/ld: sparse-llvm.o: in function `output_op_load':
././sparse-llvm.c:714:(.text+0x24a9): undefined reference to `LLVMBuildLoad'
/usr/bin/ld: sparse-llvm.o: in function `output_op_call':
././sparse-llvm.c:822:(.text+0x262e): undefined reference to `LLVMBuildCall'
collect2: error: ld returned 1 exit status

(See https://bugs.debian.org/1051864 for the corresponding bug report. A quick workaround could be to disable llvm-support in sparse to prevent sparse from being dropped from Debian unstable.)

After a quick internet search I didn't find the obvious fix for that. Any hints?

Best regards
Uwe

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux