Issue 91551
Summary libclc/amdgcn: `prepare-builtins.cpp.o: undefined reference to symbol '_ZN4llvm7parseIRENS_15MemoryBufferRefERNS_12SMDiagnosticERNS_11LLVMContextENS_15ParserCallbacksE'`
Labels new issue
Assignees
Reporter illwieckz
    I'm trying to build libclc from `llvmorg-18.1.5` tag and I get this linkage error:

```
BUILDING amdgcn-mesa-mesa3d
	DEVICE: tahiti ( pitcairn;verde;oland;hainan;bonaire;kabini;kaveri;hawaii;mullins;tonga;tongapro;iceland;carrizo;fiji;stoney;polaris10;polaris11;gfx602;gfx705;gfx805;gfx900;gfx902;gfx904;gfx906;gfx908;gfx909;gfx90a;gfx90c;gfx940;gfx941;gfx942;gfx1010;gfx1011;gfx1012;gfx1013;gfx1030;gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036;gfx1100;gfx1101;gfx1102;gfx1103;gfx1150;gfx1151;gfx1200;gfx1201 )
BUILDING r600--
	DEVICE: cedar ( palm;sumo;sumo2;redwood;juniper )
	DEVICE: cypress ( hemlock )
	DEVICE: barts ( turks;caicos )
	DEVICE: cayman ( aruba )
BUILDING spirv-mesa3d-
	DEVICE: none ( )
BUILDING spirv64-mesa3d-
	DEVICE: none (  )
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: llvm-project/libclc/build
[1/65] Linking CXX executable prepare_builtins
FAILED: prepare_builtins 
: && /usr/bin/c++ -fno-lto -O3 -DNDEBUG -fno-lto     -Wl,--gc-sections CMakeFiles/prepare_builtins.dir/utils/prepare-builtins.cpp.o -o prepare_builtins  -Wl,-rpath,"\$ORIGIN/../lib" install/lib/libLLVMBitWriter.so.18.1  install/lib/libLLVMBitReader.so.18.1 install/lib/libLLVMCore.so.18.1  install/lib/libLLVMSupport.so.18.1 && :
/usr/bin/ld: CMakeFiles/prepare_builtins.dir/utils/prepare-builtins.cpp.o: undefined reference to symbol '_ZN4llvm7parseIRENS_15MemoryBufferRefERNS_12SMDiagnosticERNS_11LLVMContextENS_15ParserCallbacksE'
/usr/bin/ld: install/lib/../lib/../lib/libLLVMIRReader.so.18.1: error adding symbols: DSO missing from command line
```

The error is very similar to #62018:

- https://github.com/llvm/llvm-project/issues/62018

I'm working on a patch.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to