JuliaPackaging / BinaryBuilder.jl

Binary Dependency Builder for Julia
https://binarybuilder.org
Other
391 stars 99 forks source link

Kernel version too old? #1306

Closed biona001 closed 10 months ago

biona001 commented 10 months ago

Hi,

I'm trying to build a C++ library on a cluster environment, and I'm failing at step 3 with the error

julia> using BinaryBuilder
julia> state = BinaryBuilder.run_wizard()
> All Supported Platforms
> https://github.com/biona001/ghostbasil
> master
Would you like to download additional sources?  [y/N]: n
Do you require any (binary) dependencies?  [y/N]: n
> ghostbasil
> 0.0.1

Do you want to customize the set of compilers? [y/N]: n
            # Step 3: Build for Linux x86_64 {libc=glibc}

You will now be dropped into the cross-compilation environment.
Please compile the package. Your initial compilation target is x86_64-linux-gnu
The $prefix environment variable contains the target directory.
Once you are done, exit by typing `exit` or `^D`

You have the following contents in your working directory:
  - ghostbasil
Hints:
  - ghostbasil/julia/CMakeLists.txt

    This file is likely input to CMake. The recommended options for CMake are

      cmake -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} -DCMAKE_BUILD_TYPE=Release

    followed by `make` and `make install`. Since the prefix environment
    variable is set already, this will automatically perform the installation
    into the correct directory.

Kernel version too old: detected 3.10.0-1160.95.1.el7.x86, need at least 3.18!
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] kernel_version_check(; verbose::Bool)
    @ BinaryBuilderBase ~/.julia/packages/BinaryBuilderBase/utaC1/src/UserNSRunner.jl:294
  [3] kernel_version_check
    @ ~/.julia/packages/BinaryBuilderBase/utaC1/src/UserNSRunner.jl:251 [inlined]
  [4] BinaryBuilderBase.UserNSRunner(workspace_root::String; cwd::String, workspaces::Vector{Pair{String, String}}, mappings::Vector{Pair}, platform::Platform, extra_env::Dict{String, String}, verbose::Bool, compiler_wrapper_path::String, toolchains_path::String, src_name::String, shards::Nothing, kwargs::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:compilers, :preferred_gcc_version, :preferred_llvm_version), Tuple{Vector{Symbol}, VersionNumber, VersionNumber}}})
    @ BinaryBuilderBase ~/.julia/packages/BinaryBuilderBase/utaC1/src/UserNSRunner.jl:36
  [5] step34(state::BinaryBuilder.Wizard.WizardState)
    @ BinaryBuilder.Wizard ~/.julia/packages/BinaryBuilder/0CUml/src/wizard/interactive_build.jl:533
  [6] run_wizard(state::Nothing)
    @ BinaryBuilder.Wizard ~/.julia/packages/BinaryBuilder/0CUml/src/Wizard.jl:104
  [7] run_wizard()
    @ BinaryBuilder.Wizard ~/.julia/packages/BinaryBuilder/0CUml/src/Wizard.jl:87
  [8] top-level scope
    @ REPL[3]:1
  [9] eval
    @ ./boot.jl:368 [inlined]
 [10] eval_user_input(ast::Any, backend::REPL.REPLBackend)
    @ REPL /u/local/apps/julia/1.8.5/share/julia/stdlib/v1.8/REPL/src/REPL.jl:151
 [11] repl_backend_loop(backend::REPL.REPLBackend)
    @ REPL /u/local/apps/julia/1.8.5/share/julia/stdlib/v1.8/REPL/src/REPL.jl:247
 [12] start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
    @ REPL /u/local/apps/julia/1.8.5/share/julia/stdlib/v1.8/REPL/src/REPL.jl:232
 [13] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
    @ REPL /u/local/apps/julia/1.8.5/share/julia/stdlib/v1.8/REPL/src/REPL.jl:369
 [14] run_repl(repl::REPL.AbstractREPL, consumer::Any)
    @ REPL /u/local/apps/julia/1.8.5/share/julia/stdlib/v1.8/REPL/src/REPL.jl:355
 [15] (::Base.var"#967#969"{Bool, Bool, Bool})(REPL::Module)
    @ Base ./client.jl:419
 [16] #invokelatest#2
    @ ./essentials.jl:729 [inlined]
 [17] invokelatest
    @ ./essentials.jl:726 [inlined]
 [18] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
    @ Base ./client.jl:404
 [19] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:318
 [20] _start()
    @ Base ./client.jl:522

WizardState [step3]

Is there anyway to bypass this version checking?

giordano commented 10 months ago

No, but consider using other machines for building, for example you can use github codespaces: https://docs.binarybuilder.org/stable/#GitHub-Codespaces