I'm trying out juliac but every time it fails at the same place. It is apparently trying to bundle the same library twice.
I downloaded the repo to make sure I was doing things the right way:
$ julia --project -e "using JuliaC; JuliaC.main(ARGS)" -- --output-exe plot --bundle build test/AppProject
✓ Compiling...
PackageCompiler: bundled libraries:
├── Base:
│ ├── libLLVM.so.18.1jl - 129.314 MiB
│ ├── libLLVM.so.19.1 - 134.862 MiB
│ ├── libLLVM.so.21.1 - 149.807 MiB
│ ├── libatomic.so.1.2.0 - 33.953 KiB
│ ├── libatomic_ops.so.1.2.0 - 13.812 KiB
│ ├── libatomic_ops_gpl.so.1.2.1 - 13.891 KiB
│ ├── libgcc_s.so.1 - 174.234 KiB
│ ├── libgfortran.so.5.0.0 - 3.460 MiB
│ ├── libgmp.so.10.5.0 - 662.625 KiB
│ ├── libgmpxx.so.4.7.0 - 30.039 KiB
│ ├── libgomp.so.1.0.0 - 334.898 KiB
│ ├── libmpfr.so.6.2.2 - 757.562 KiB
│ ├── libopenlibm.so.4.0 - 188.570 KiB
│ ├── libpcre2-8.so.0.15.0 - 690.289 KiB
│ ├── libquadmath.so.0.0.0 - 290.039 KiB
│ ├── libstdc++.so.6.0.34 - 2.561 MiB
│ ├── libunwind-coredump.so.0.0.0 - 25.750 KiB
│ ├── libunwind-ptrace.so.0.0.0 - 22.062 KiB
│ ├── libunwind-setjmp.so.0.0.0 - 12.938 KiB
│ ├── libunwind-x86_64.so.8.2.0 - 69.734 KiB
│ ├── libunwind.so.8.2.0 - 61.898 KiB
│ ├── libuv.so.1.0.0 - 222.031 KiB
│ ├── libz-ng.so.2.3.3 - 162.156 KiB
│ ├── libz.so.1.3.2 - 102.016 KiB
│ ├── libzbar.so.0.3.0 - 238.141 KiB
│ ├── libzbargtk.so.0.0.2 - 25.945 KiB
│ ├── libzbarqt.so.0.1.2 - 82.133 KiB
│ ├── libzeitgeist-2.0.so.0.0.0 - 421.953 KiB
│ ├── libzen.so.0.0.0 - 294.266 KiB
│ ├── libzimg.so.2.0.0 - 550.289 KiB
│ ├── libzint.so.2.16.0.0 - 841.945 KiB
│ ├── libzip.so.5.5 - 126.938 KiB
│ ├── libzix-0.so.0.8.0 - 54.016 KiB
│ ├── libzmf-0.0.so.0.0.2 - 158.055 KiB
│ ├── libzmq.so.5.2.5 - 898.086 KiB
│ ├── libzstd.so.1.5.7 - 917.945 KiB
│ ├── libzvbi-chains.so.0.0.0 - 65.953 KiB
│ ├── libzvbi.so.0.13.2 - 523.430 KiB
│ ├── libjulia.so.1.12.5 - 99.180 KiB
├── Stdlibs:
│ ├── OpenBLAS_jll
ERROR: IOError: symlink("libopenblas_64.so.0.3", "build/lib/libopenblas64_.so"): file already exists (EEXIST)
Stacktrace:
[1] cp
@ ./file.jl:404 [inlined]
[2] bundle_julia_libraries(dest_dir::String, stdlibs::Vector{String})
@ PackageCompiler ~/.julia/packages/PackageCompiler/2L6xB/src/PackageCompiler.jl:1489
[3] bundle_products(recipe::BundleRecipe)
@ JuliaC ~/src/julia/juliac-test/JuliaC.jl/src/bundling.jl:21
[4] _main_cli(args::Vector{String}; io::Base.TTY)
@ JuliaC ~/src/julia/juliac-test/JuliaC.jl/src/JuliaC.jl:210
[5] _main_cli(args::Vector{String})
@ JuliaC ~/src/julia/juliac-test/JuliaC.jl/src/JuliaC.jl:199
[6] main(ARGS::Vector{String})
@ JuliaC ~/src/julia/juliac-test/JuliaC.jl/src/JuliaC.jl:214
[7] top-level scope
@ none:1
I've got
$ julia --version
julia version 1.12.5
It's a real head-scratcher. Is there something weird with my environment?
I'm trying out juliac but every time it fails at the same place. It is apparently trying to bundle the same library twice.
I downloaded the repo to make sure I was doing things the right way:
I've got
It's a real head-scratcher. Is there something weird with my environment?