JuliaLang/julia

Compilation with `USE_PERF_JITEVENTS=1` fails

Open

#33,417 opened on 2019年9月29日

GitHub で見る
 (4 comments) (0 reactions) (0 assignees)Julia (5,773 forks)batch import
Hacktoberfesthelp wanted

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (平均マージ 20d 6h) (30d で 157 merged PRs)

説明

Platform: Ubuntu 18.04.3 LTS Tested Julia versions: v1.2.0, v1.3.0-rc2 as well as latest master (as of writing, d0365753fb57f57bcea097c05de8c07aef706561)

Adding USE_PERF_JITEVENTS=1 to Make.user results in a build error while linking against some LLVM symbol:

parallels@ubuntu /media/psf/Home/Development/julia (git)-[master] % make         
    LINK usr/lib/libjulia.so.1.4
./codegen.o: In function `jl_init_llvm':
/media/psf/Home/Development/julia/src/codegen.cpp:7761: undefined reference to `llvm::JITEventListener::createPerfJITEventListener()'
collect2: error: ld returned 1 exit status
Makefile:311: recipe for target '/media/psf/Home/Development/julia/usr/lib/libjulia.so.1.4' failed
make[1]: *** [/media/psf/Home/Development/julia/usr/lib/libjulia.so.1.4] Error 1
Makefile:75: recipe for target 'julia-src-release' failed
make: *** [julia-src-release] Error 2

Without this option, the build works fine.

コントリビューターガイド