JuliaLang / PackageCompiler.jl

Compile your Julia Package
https://julialang.github.io/PackageCompiler.jl/dev/
MIT License
1.4k stars 186 forks source link

Issue: intermediate .o files are generated in improper place #897

Open tz-lom opened 7 months ago

tz-lom commented 7 months ago

I've noticed that intermediate .o files are placed next to source files (sorry, some path are replaced for security reasons)

Fatal error: can't create /XXX/HelperPackage.jl/src/julia_init.o: Permission denied
ERROR: LoadError: failed process: Process(`gcc -c -O2 -I/tmp/jl_fknea5 '-DJULIAC_PROGRAM_LIBNAME="libMYLIBxJULIA.so"' -DNEW_DEFINE_FAST_TLS_SYNTAX -m64 -std=gnu99 -I/YYY/julia/julia-1.9.0/include/julia -fPIC -march=x86-64 -o /XXX/HelperPackage.jl/src/julia_init.o /XXX/HelperPackage.jl/src/julia_init.c`, ProcessExited(1)) [1]

In my use case I am using HelperPackage.jl which contains julia_init.c, the actual compiled package is NOT HelperPackage.jl, but julia_init.c is originated from HelperPackage.jl

As you can see I have some ACL issue which is correct for my system. I also suspect that this would be the issue for default julia_init.c as well

Why it is an issue: