Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tz-lom opened this issue Dec 7, 2023 · 0 comments
Open

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

tz-lom opened this issue Dec 7, 2023 · 0 comments

Comments

@tz-lom
Copy link

tz-lom commented Dec 7, 2023

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:

  • Changing contents of package installed in a system
  • Race condition (two parallel builds will fight for julia_init.o
  • Changing contents outside of expected folders
  • Package creates temp folder but not using it for that purpose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant