Bug 276112 - lang/julia: on src/main: ld: error: version script assignment of 'LLVM_14' to symbol 'LLVMCreateDisasm' failed: symbol not defined
Summary: lang/julia: on src/main: ld: error: version script assignment of 'LLVM_14' to...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-04 14:28 UTC by Trond Endrestøl
Modified: 2024-03-16 12:35 UTC (History)
1 user (show)

See Also:


Attachments
Patch for lang/julia/Makefile (331 bytes, patch)
2024-01-04 14:30 UTC, Trond Endrestøl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2024-01-04 14:28:39 UTC
lang/julia fails to build on src/main. The same correction that was done for net/samba416 is necessary for lang/julia. Without LDFLAGS+=-Wl,--undefined-version in lang/julia/Makefile, we get these errors:

gmake[5]: Entering directory '/construction/xports/lang/julia/work/julia-1.9.4/deps/scratch/llvm-julia-14.0.6-3/build_Release'
ld: error: version script assignment of 'LLVM_14' to symbol 'LLVMCreateDisasm' failed: symbol not defined
ld: error: version script assignment of 'LLVM_14' to symbol 'LLVMCreateDisasmCPU' failed: symbol not defined
ld: error: version script assignment of 'LLVM_14' to symbol 'LLVMDisasmDispose' failed: symbol not defined
ld: error: version script assignment of 'LLVM_14' to symbol 'LLVMDisasmInstruction' failed: symbol not defined
ld: error: version script assignment of 'LLVM_14' to symbol 'LLVMSetDisasmOptions' failed: symbol not defined
ld: error: version script assignment of 'LLVM_14' to symbol 'LLVMCreateDisasmCPUFeatures' failed: symbol not defined
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[5]: Leaving directory '/construction/xports/lang/julia/work/julia-1.9.4/deps/scratch/llvm-julia-14.0.6-3/build_Release'
Comment 1 Trond Endrestøl 2024-01-04 14:30:37 UTC
Created attachment 247443 [details]
Patch for lang/julia/Makefile

Tested on main, stable/14, releng/14.0, stable/13, and releng/13.2. No unwanted side effects noticed on the unaffected branches.