Skip to content

Compilation fails on Mac/Homebrew #1848

@trg818

Description

@trg818

Hi,
I tried to install GMT.jl on a Mac (Tahoe 26.0.1) under Julia 1.12.1 as provided by Homebrew, but the precompilation of three modules fails due to segfaults as shown below. Is this a known problem, and is there anything I can do about it?

PkgPrecompileError: The following 3 direct dependencies failed to precompile:

GMTDataFramesExt 

Failed to precompile GMTDataFramesExt [b0121151-b40e-578b-8798-214dacfa5da6] to "/Users/ruedas/.julia/compiled/v1.12/GMTDataFramesExt/jl_DyjSvy".
[30986] signal 11 (2): Segmentation fault: 11
in expression starting at /Users/ruedas/.julia/packages/GMT/Td19G/src/GMT.jl:385
Allocations: 182962822 (Pool: 182959814; Big: 3008); GC: 41
Allocations: 182962822 (Pool: 182959814; Big: 3ERROR: LoadError: Failed to precompile GMT [5752ebe1-31b9-557e-87aa-f909b540aa54] to "/Users/ruedas/.julia/compiled/v1.12/GMT/jl_HvQtwj".
Stacktrace:
 [1] mkpidlock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId, String, Dict{String, Int64}}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
   @ FileWatching.Pidfile /opt/homebrew/Cellar/julia/1.12.1/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:93
 [2] top-level scope
   @ ~/.julia/packages/GMT/Td19G/ext/GMTDataFramesExt/GMTDataFramesExt.jl:2
 [3] top-level scope
   @ stdin:5
in expression starting at /Users/ruedas/.julia/packages/GMT/Td19G/ext/GMTDataFramesExt/GMTDataFramesExt.jl:1
in expression starting at stdin:5
GMTParkerFFTExt 

Failed to precompile GMTParkerFFTExt [35a23bc9-6f20-5cbc-8971-9cdf66427582] to "/Users/ruedas/.julia/compiled/v1.12/GMTParkerFFTExt/jl_2Zkaqs".
[30993] signal 11 (2): Segmentation fault: 11
in expression starting at /Users/ruedas/.julia/packages/GMT/Td19G/src/GMT.jl:385
Allocations: 182474338 (Pool: 182471335; Big: 3003); GC: 40
Allocations: 182474338 (Pool: 182471335; Big: 3ERROR: LoadError: Failed to precompile GMT [5752ebe1-31b9-557e-87aa-f909b540aa54] to "/Users/ruedas/.julia/compiled/v1.12/GMT/jl_Hvegv4".
Stacktrace:
 [1] mkpidlock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId, String, Dict{String, Int64}}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
   @ FileWatching.Pidfile /opt/homebrew/Cellar/julia/1.12.1/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:93
 [2] top-level scope
   @ ~/.julia/packages/GMT/Td19G/ext/GMTParkerFFTExt/GMTParkerFFTExt.jl:2
 [3] top-level scope
   @ stdin:5
in expression starting at /Users/ruedas/.julia/packages/GMT/Td19G/ext/GMTParkerFFTExt/GMTParkerFFTExt.jl:1
in expression starting at stdin:5

GMT 

Failed to precompile GMT [5752ebe1-31b9-557e-87aa-f909b540aa54] to "/Users/ruedas/.julia/compiled/v1.12/GMT/jl_O8LKSd".
[30980] signal 11 (2): Segmentation fault: 11
in expression starting at /Users/ruedas/.julia/packages/GMT/Td19G/src/GMT.jl:385
Allocations: 182272918 (Pool: 182269920; Big: 2998); GC: 41
Allocations: 182272918 (Pool: 182269920; Big: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions