Closed mgiugliano closed 1 day ago
Looks like https://github.com/JuliaLang/PackageCompiler.jl/issues/738 - @gbaraldi it would be great if we can land your fix in the coming weeks
@topolarity Thank you!!
For the records:
I just tried, without success,
export JULIA_CC="gcc-14"
(sys image is now 2.6 MB, instead of 16 KB).
However it finally worked, when I adopted the modified create_sysimg_from_object_file
function in the /src/PackageCompiler.jl source code, as mentioned in #738 !
This looks like a duplicate of #738, which should be fixed in the recently-released PackageCompiler v2.1.19.
@mgiugliano Can you try out PackageCompiler v2.1.19 and let me know if it fixes the bug for you?
If your issue still occurs on PackageCompiler v2.1.19, let me know, and I will re-open this issue.
Duplicate of #738
Minimal Working Example
with myfile.jl being:
PackageCompiler returns the following output, with ld returning a warning:
(note1: adding or removing the
include_transitive_dependencies=false
makes no difference) (note2: ifinclude_transitive_dependencies=true
, then an error is produced:Then, in any case, the sys_myimage.so generated is only 16KB in size (you find it here for download), and it does not work with
that returns an error:
Finally, the exact same MWE works as expected and it generates a larger image, on a different architecture (i.e., Google Colab - see this minimal notebook)
Output of
versioninfo()
Julia installed with Juliaup 1.14.8
Installed packages