JuliaPackaging / BinaryBuilder.jl

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

Issue running BB on mac: #1290

Closed matbesancon closed 9 months ago

matbesancon commented 9 months ago

when trying to build an artifact locally.

The OS is MacOs Ventura 13.1 On ARM

  Downloaded artifact: Rootfs.v2022.4.15.x86_64-linux-musl.unpacked
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
tar: Write error
ERROR: LoadError: failed processes:
  Process(`tar -c -C /Users/mohammedghannam/.julia/artifacts/d0c08357d84c092c9d6a8bad715001ad33e3d5d5 .`, ProcessExited(1)) [1]
  Process(`docker import - -c 'ENTRYPOINT ["/docker_entrypoint.sh"]' julia_binarybuilder_rootfs:v2022.4.15-e3d5d5`, ProcessExited(1)) [1]

Stacktrace:
 [1] pipeline_error(procs::Base.ProcessChain)
   @ Base ./process.jl:578
 [2] run(::Base.CmdRedirect; wait::Bool)
   @ Base ./process.jl:480
 [3] run
   @ ./process.jl:477 [inlined]
 [4] import_docker_image(rootfs::BinaryBuilderBase.CompilerShard, workspace_root::String; verbose::Bool)
   @ BinaryBuilderBase ~/.julia/packages/BinaryBuilderBase/2X19x/src/DockerRunner.jl:56
 [5] import_docker_image
   @ ~/.julia/packages/BinaryBuilderBase/2X19x/src/DockerRunner.jl:40 [inlined]
 [6] BinaryBuilderBase.DockerRunner(workspace_root::String; cwd::String, platform::Platform, workspaces::Vector{Pair{String, String}}, extra_env::Dict{String, String}, verbose::Bool, compiler_wrapper_path::String, toolchains_path::String, src_name::String, shards::Vector{BinaryBuilderBase.CompilerShard}, kwargs::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:compiler_wrapper_dir, :preferred_gcc_version), Tuple{String, VersionNumber}}})
   @ BinaryBuilderBase ~/.julia/packages/BinaryBuilderBase/2X19x/src/DockerRunner.jl:89
 [7] autobuild(dir::AbstractString, src_name::AbstractString, src_version::VersionNumber, sources::Vector{<:BinaryBuilderBase.AbstractSource}, script::AbstractString, platforms::Vector, products::Vector{<:Product}, dependencies::Vector{<:BinaryBuilderBase.AbstractDependency}; verbose::Bool, debug::Bool, skip_audit::Bool, ignore_audit_errors::Bool, autofix::Bool, code_dir::Union{Nothing, String}, require_license::Bool, kwargs::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
   @ BinaryBuilder ~/.julia/packages/BinaryBuilder/0CUml/src/AutoBuild.jl:796
 [8] build_tarballs(ARGS::Any, src_name::Any, src_version::Any, sources::Any, script::Any, platforms::Any, products::Any, dependencies::Any; julia_compat::String, kwargs::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
   @ BinaryBuilder ~/.julia/packages/BinaryBuilder/0CUml/src/AutoBuild.jl:347
 [9] top-level scope
matbesancon commented 9 months ago

cc @mmghannam

giordano commented 9 months ago

Do you have docker running?

mmghannam commented 9 months ago

Oh yes, sorry 😄 It's running and now I get this error:

Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.9/Project.toml`
  No Changes to `~/.julia/environments/v1.9/Manifest.toml`
[ Info: Building and deploying version 800.0.400+1 to /Users/mohammedghannam/.julia/dev/SCIP_jll
[ Info: Building for i686-w64-mingw32-cxx03, i686-w64-mingw32-cxx11, x86_64-w64-mingw32-cxx03, x86_64-w64-mingw32-cxx11
[ Info: Cached file found in /Users/mohammedghannam/.julia/packages/BinaryBuilderBase/2X19x/deps/downloads/be4f978be7f8f97371ddcdac7a60af69a4fea5f975090fe35f1ae4308db692d3-scipoptsuite-8.0.4.tgz
Re-run cmake no build system arguments
CMake Error at /usr/share/cmake/Modules/Compiler/._ADSP-DetermineCompiler.cmake:1:
  Parse error.  Expected a command name, got bad character with text "".
Call Stack (most recent call first):
  /usr/share/cmake/Modules/CMakeCompilerIdDetection.cmake:6 (include)
  /usr/share/cmake/Modules/CMakeCompilerIdDetection.cmake:33 (_readFile)
  /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:282 (compiler_id_detection)
  /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:301 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
  /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:6 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:59 (__determine_compiler_id_test)
  /usr/share/cmake/Modules/CMakeDetermineCCompiler.cmake:123 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:4 (project)

-- Configuring incomplete, errors occurred!
See also "/workspace/srcdir/scipoptsuite-8.0.4/build/CMakeFiles/CMakeOutput.log".
Previous command exited with 1
ERROR: LoadError: Build for SCIP on i686-w64-mingw32-cxx03 did not complete successfully

Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] autobuild(dir::AbstractString, src_name::AbstractString, src_version::VersionNumber, sources::Vector{<:BinaryBuilderBase.AbstractSource}, script::AbstractString, platforms::Vector, products::Vector{<:Product}, dependencies::Vector{<:BinaryBuilderBase.AbstractDependency}; verbose::Bool, debug::Bool, skip_audit::Bool, ignore_audit_errors::Bool, autofix::Bool, code_dir::Union{Nothing, String}, require_license::Bool, kwargs::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
   @ BinaryBuilder ~/.julia/packages/BinaryBuilder/0CUml/src/AutoBuild.jl:875
 [3] build_tarballs(ARGS::Any, src_name::Any, src_version::Any, sources::Any, script::Any, platforms::Any, products::Any, dependencies::Any; julia_compat::String, kwargs::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
   @ BinaryBuilder ~/.julia/packages/BinaryBuilder/0CUml/src/AutoBuild.jl:347
 [4] top-level scope
   @ ~/projects/draft/mathieus_test.jl:88

line 88 corresponds to this script.

giordano commented 9 months ago

Ok, that's a different error, and not related to BB proper, only to make a build work. As stated in the error message, you have to run the Docker daemon to be able to use BB on macOS. I'm going to close this ticket.