Skip to content

Fail more gracefully when precompiling huge data #59835

@GunnarFarneback

Description

@GunnarFarneback

If you do something stupid like loading a several GB file into a global variable at the top level of a package, precompilation will try to save this and it leads to errors like

lld: error: /home/gunnar/.julia/compiled/v1.10/xxxxxx/jl_MV2j1q(text#0.o):(function julia_get_mem_compatible_jl_type_8119: .text+0x587): relocation R_X86_64_PC32 out of range: 3445946693 is not in [-2147483648, 2147483647]; references jl_small_typeof

It really is fine that this causes an error but it would be great if it produced an up-front error about what is going on, rather than something looking like your Julia installation has broken down.

Related: #52350, #57366

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions