PackageCompiler.jl icon indicating copy to clipboard operation
PackageCompiler.jl copied to clipboard

Linker warning with `ld` from binutils 2.42-4ubuntu2.6

Open PatrickHaecker opened this issue 1 month ago • 1 comments

PackageCompiler.jl works here on an Ubuntu 24.04 system, but I get a warning at the end

[…]
Precompiling packages finished.
  25 dependencies successfully precompiled in 32 seconds. 72 already precompiled.
⡆ [07m:12s] PackageCompiler: compiling incremental system image
/usr/bin/ld: warning: text#3.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

I am using GNU ld from package binutils 2.42-4ubuntu2.6.

PatrickHaecker avatar Nov 10 '25 17:11 PatrickHaecker

I am using Julia 1.12.1.

The warning is probably printed by Julia itself when the cmd compiling the system image is run.

According to the release announcement from GNU ld from binutils 2.39 a -z noexecstack is needed to avoid this warning. Julia uses this flag, but, because the warning is still printed, most likely not in this situation.

So should I close this issue and open an issue in Julia instead?

PatrickHaecker avatar Nov 11 '25 05:11 PatrickHaecker