JuliaPackaging / BinaryBuilder.jl

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

macOS: qemu: could not load kernel '/Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/qemu/bzImage': No such file or directory #123

Closed iamed2 closed 6 years ago

iamed2 commented 6 years ago

I checked and I found that that file is indeed not present in any folder under BinaryBuilder. Here's the log:

You will now be dropped into the cross-compilation environment.
Please compile the library. Your initial compilation target is BinaryProvider.Linux(:x86_64, :glibc).
The $DESTDIR environment variable contains the target directory.
Many build systems will respect this variable automatically.
Once you are done, exit by typing `exit` or `^D`

INFO: Destination file /Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/downloads/rootfs-base.squashfs already exists, verifying...
INFO: Hash cache is consistent, returning true
INFO: Destination file /Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/downloads/rootfs-x86_64-linux-gnu.squashfs already exists, verifying...
INFO: Hash cache is consistent, returning true
INFO: Destination file /Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/downloads/qemu.x86_64-apple-darwin14.tar.gz already exists, verifying...
INFO: Hash cache is consistent, returning true
INFO: Destination directory /Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/qemu already exists, returning
INFO: Destination file /Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/downloads/linux.x86_64-linux-gnu.tar.gz already exists, verifying...
INFO: Hash cache is consistent, returning true
INFO: Destination directory /Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/qemu already exists, returning
ERROR (unhandled task failure): connect: connection refused (ECONNREFUSED)
Stacktrace:
 [1] try_yieldto(::Base.##296#297{Task}, ::Task) at ./event.jl:189
 [2] wait() at ./event.jl:234
 [3] wait(::Condition) at ./event.jl:27
 [4] stream_wait(::Base.PipeEndpoint, ::Condition, ::Vararg{Condition,N} where N) at ./stream.jl:42
 [5] wait_connected(::Base.PipeEndpoint) at ./stream.jl:258
 [6] connect at ./stream.jl:983 [inlined]
 [7] connect at ./stream.jl:995 [inlined]
 [8] macro expansion at /Users/ericdavies/.julia/v0.6/BinaryBuilder/src/QemuRunner.jl:161 [inlined]
 [9] (::BinaryBuilder.##57#59{BinaryBuilder.QemuRunner,Cmd,String})() at ./task.jl:335
[16:53:36] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.hypervisor [bit 31]
[16:53:36] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
[16:53:36] qemu: could not load kernel '/Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/qemu/bzImage': No such file or directory
You have the following contents in your working directory:
  - lz4
Hints:
  - lz4/contrib/cmake_unofficial/CMakeLists.txt

    This file is likely input to CMake. The recommended options for CMake are
    `cmake -DCMAKE_INSTALL_PREFIX=/ -DCMAKE_TOOLCHAIN_FILE=/opt/$target/$target.toolchain`
    followed by `make` and `make install`. Since the DESTDIR environment
    variable is set already, this will automatically perform the installation
    into the correct directory.

qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.hypervisor [bit 31]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu: could not load kernel '/Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/qemu/bzImage': No such file or directory
failed process: Process(`/Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/qemu/usr/local/bin/qemu-system-x86_64 -kernel /Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/qemu/bzImage -M accel=hvf -nographic -drive if=virtio,file=/Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/downloads/rootfs-base.squashfs,format=raw -nodefaults -rtc base=utc,driftfix=slew -device virtio-serial -chardev stdio,id=charconsole0 -device virtconsole,chardev=charconsole0,id=console0 -device virtserialport,chardev=charcomm0,id=comm0 -fsdev local,security_model=none,id=fsdev0,path=/var/folders/z0/r1h4kvk15xdb38hfjd8vq53r0000gn/T/julia4hqyHJ -device virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=workspace -drive if=virtio,file=/Users/ericdavies/.julia/v0.6/BinaryBuilder/deps/downloads/rootfs-x86_64-linux-gnu.squashfs,format=raw -device virtio-serial -chardev socket,path=/tmp/tmp36onYf/qemu_comm.socket,server,nowait,id=charcomm0 -append 'quiet console=hvc0 root=/dev/vda rootflags=ro rootfstype=squashfs noinitrd init=/sandbox'`, ProcessExited(1)) [1]
Stacktrace:
 [1] pipeline_error(::Base.Process) at ./process.jl:682
 [2] run(::Base.CmdRedirect) at ./process.jl:651
 [3] (::BinaryBuilder.##66#67{BinaryBuilder.QemuRunner,Base.TTY,Base.TTY,Base.TTY})(::BinaryProvider.Prefix) at /Users/ericdavies/.julia/v0.6/BinaryBuilder/src/QemuRunner.jl:235
 [4] mktempdir(::BinaryProvider.##93#95{BinaryBuilder.##66#67{BinaryBuilder.QemuRunner,Base.TTY,Base.TTY,Base.TTY}}, ::String) at ./file.jl:392
 [5] run_interactive(::BinaryBuilder.QemuRunner, ::Cmd, ::Base.TTY, ::Base.TTY, ::Base.TTY) at /Users/ericdavies/.julia/v0.6/BinaryBuilder/src/QemuRunner.jl:223
 [6] #interactive_build#121(::Base.#string, ::Function, ::BinaryBuilder.WizardState, ::BinaryProvider.Prefix, ::BinaryBuilder.QemuRunner, ::String) at /Users/ericdavies/.julia/v0.6/BinaryBuilder/src/wizard/interactive_build.jl:109
 [7] step3_interactive(::BinaryBuilder.WizardState, ::BinaryProvider.Prefix, ::BinaryProvider.Linux, ::BinaryBuilder.QemuRunner, ::String) at /Users/ericdavies/.julia/v0.6/BinaryBuilder/src/wizard/interactive_build.jl:157
 [8] (::BinaryBuilder.##128#129{BinaryBuilder.WizardState,BinaryProvider.Linux,String})() at /Users/ericdavies/.julia/v0.6/BinaryBuilder/src/wizard/interactive_build.jl:281
 [9] cd(::BinaryBuilder.##128#129{BinaryBuilder.WizardState,BinaryProvider.Linux,String}, ::String) at ./file.jl:70
 [10] step34(::BinaryBuilder.WizardState) at /Users/ericdavies/.julia/v0.6/BinaryBuilder/src/wizard/interactive_build.jl:263
 [11] run_wizard(::BinaryBuilder.WizardState) at /Users/ericdavies/.julia/v0.6/BinaryBuilder/src/Wizard.jl:35
 [12] run_wizard() at /Users/ericdavies/.julia/v0.6/BinaryBuilder/src/Wizard.jl:20
 [13] eval(::Module, ::Any) at ./boot.jl:235
 [14] eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:66
 [15] macro expansion at ./REPL.jl:97 [inlined]
 [16] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73

WizardState [step3]

julia> INFO: Unable to establish communication with QEMU, does /tmp/tmp36onYf/qemu_comm.socket exist?
INFO: Unable to establish communication with QEMU, does /tmp/tmp36onYf/qemu_comm.socket exist?
INFO: Unable to establish communication with QEMU, does /tmp/tmp36onYf/qemu_comm.socket exist?
INFO: Unable to establish communication with QEMU, does /tmp/tmp36onYf/qemu_comm.socket exist?
INFO: Unable to establish communication with QEMU, does /tmp/tmp36onYf/qemu_comm.socket exist?
INFO: Unable to establish communication with QEMU, does /tmp/tmp36onYf/qemu_comm.socket exist?
INFO: Unable to establish communication with QEMU, does /tmp/tmp36onYf/qemu_comm.socket exist?

Those INFOs repeat a few times per second until ^D.

staticfloat commented 6 years ago

Hmmmm, interesting. I have a PR open that is overhauling a critical piece of this infrastructure, once I merge it, let's see if this is any better. :)

staticfloat commented 6 years ago

Please let me know if this happens again, I haven't been able to reproduce this on my side.