Skip to content

Instantly share code, notes, and snippets.

@oxinabox
Created April 12, 2018 03:42
Show Gist options
  • Save oxinabox/0fb8ba5ab310d78bec1d0a7c2580f343 to your computer and use it in GitHub Desktop.
Save oxinabox/0fb8ba5ab310d78bec1d0a7c2580f343 to your computer and use it in GitHub Desktop.
BinaryBuilder No GCC
oxinabox@motsugo ~> julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.1 (2017-10-24 22:15 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-pc-linux-gnu
julia> using BinaryBuilder
BinaryBuilder.run
julia> BinaryBuilder.run_wizard()
o `.
o*o \'-_ 00000000: 01111111 .
\\ \;"". ,;.--* 00000001: 01000101 E
\\ ,\''--.--'/ 00000003: 01001100 L
:=\--<' `"" _ | 00000003: 01000110 F
||\\ `" / ''-- 00000004: 00000010 .
`/_\\,-| | 00000005: 00000001 .
\\/ L
\\ ,' \
_/ L' ` \
/ / / / Julia Binzard
/ / | \ JuliaPackaging/BinaryBuilder.jl
"_''--_-''---__=;
Welcome to the BinaryBuilder wizard.
We'll get you set up in no time.
# Step 1: Select your platforms
Make a platform selection
> All supported architectures
Specific operating system
Specific architecture
Custom
# Step 2a: Obtain the source code
Please enter a URL (git repository or gzipped tarball) containing the source code to build:
> https://github.com/ninjin/geniass
The entered URL has been canonicalized to
https://github.com/ninjin/geniass.git
Cloning: 100%|██████████████████████████████████████████| Time: 0:00:03
Cloning: 100%|██████████████████████████████████████████| Time: 0:00:03
Resolving Deltas: 100%|██████████████████████████████████████████| Time: 0:00:03
You have selected a git repository. Please enter a branch, commit or tag to use.
Please note that for reproducability, the exact commit will be recorded,
so updates to the remote resource will not be used automatically;
you will have to manually update the recorded commit.
> HEAD
Recorded as 7cf6f658a7e50ad7a3e98c35fab43a628c78f636
Would you like to download additional sources? [y/N]: N
# Step 2b: Obtain binary dependencies (if any)
Do you require any (binary) dependencies? [y/N]: N
# Step 3: Build for BinaryProvider.Linux(:x86_64, :glibc)
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 $prefix environment variable contains the target directory.
Once you are done, exit by typing `exit` or `^D`
Warning: Unable to run unprivileged containers on this system! This may be because your kernel does not support mounting overlay filesystems within user namespaces. To work around this, we will switch to using privileged containers. This requires the use of sudo. To choose this automatically, set the BINARYBUILDER_RUNNER environment variable to "privileged" before starting Julia.
Info: Running privileged container via `sudo`, may ask for your password:
You have the following contents in your working directory:
- geniass
Info: Running privileged container via `sudo`, may ask for your password:
sandbox:$WORKSPACE/srcdir# gcc
bash: gcc: command not found
sandbox:$WORKSPACE/srcdir# g++
bash: g++: command not found
sandbox:$WORKSPACE/srcdir# clang
bash: clang: command not found
sandbox:$WORKSPACE/srcdir# icc
bash: icc: command not found
sandbox:$WORKSPACE/srcdir# make
make: *** No targets specified and no makefile found. Stop.
sandbox:$WORKSPACE/srcdir# cd geniass/
sandbox:$WORKSPACE/srcdir/geniass# make
g++ -c -O2 -DNDEBUG sample.cpp
make: g++: Command not found
make: *** [Makefile:23: sample.o] Error 127
sandbox:$WORKSPACE/srcdir/geniass# exit
exit
failed process: Process(setenv(`sudo -E /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/deps/root/sandbox --rootfs /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/deps/root/ --workspace /tmp/juliaWsqkAA/iUeKjOK5 --cd /workspace/srcdir --map /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/deps/shards/x86_64-linux-gnu:/opt/x86_64-linux-gnu -- /bin/bash`,String["proc_family=intel", "PATH=/opt/super_binutils/bin:/opt/x86_64-linux-gnu/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin", "CXX=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-g++", "NM=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-nm", "AS=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-as", "STRIP=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-strip", "nproc=16", "CC=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-gcc", "OTOOL=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-otool", "LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib:/lib:/usr/local/lib:/usr/lib:/opt/x86_64-linux-gnu/lib64:/opt/x86_64-linux-gnu/lib:/opt/x86_64-linux-gnu/x86_64-linux-gnu/lib64:/opt/x86_64-linux-gnu/x86_64-linux-gnu/lib", "HISTFILE=/workspace/.bash_history", "RANLIB=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-ranlib", "target=x86_64-linux-gnu", "prefix=/workspace/destdir", "nbits=64", "PS1=sandbox:\${PWD//\$WORKSPACE/\\\\\$WORKSPACE}\\\$ ", "LIPO=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-lipo", "LIBTOOL=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-libtool", "FC=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-gfortran", "WORKSPACE=/workspace", "CC_FOR_BUILD=/opt/x86_64-linux-gnu/bin/gcc", "AR=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-ar", "TERM=screen", "LD=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-ld", "INSTALL_NAME_TOOL=/opt/x86_64-linux-gnu/bin/x86_64-linux-gnu-install_name_tool"]), ProcessExited(2)) [2]
Stacktrace:
[1] pipeline_error(::Base.Process) at ./process.jl:682
[2] run(::Base.CmdRedirect) at ./process.jl:651
[3] (::BinaryBuilder.##64#66{Base.TTY,Base.TTY,BinaryBuilder.UserNSRunner})() at /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/src/UserNSRunner.jl:141
[4] cd(::BinaryBuilder.##64#66{Base.TTY,Base.TTY,BinaryBuilder.UserNSRunner}, ::String) at ./file.jl:70
[5] #run_interactive#63(::Base.TTY, ::Base.TTY, ::Base.TTY, ::Function, ::BinaryBuilder.UserNSRunner, ::Cmd) at /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/src/UserNSRunner.jl:117
[6] (::BinaryBuilder.#kw##run_interactive)(::Array{Any,1}, ::BinaryBuilder.#run_interactive, ::BinaryBuilder.UserNSRunner, ::Cmd) at ./<missing>:0
[7] #runshell#68(::Array{Any,1}, ::Function, ::BinaryBuilder.UserNSRunner) at /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/src/UserNSRunner.jl:147
[8] (::BinaryBuilder.#kw##runshell)(::Array{Any,1}, ::BinaryBuilder.#runshell, ::BinaryBuilder.UserNSRunner) at ./<missing>:0
[9] #interactive_build#154(::Base.#string, ::Function, ::BinaryBuilder.WizardState, ::BinaryProvider.Prefix, ::BinaryBuilder.UserNSRunner, ::String) at /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/src/wizard/interactive_build.jl:117
[10] step3_interactive(::BinaryBuilder.WizardState, ::BinaryProvider.Prefix, ::BinaryProvider.Linux, ::BinaryBuilder.UserNSRunner, ::String) at /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/src/wizard/interactive_build.jl:165
[11] (::BinaryBuilder.##161#162{BinaryBuilder.WizardState,BinaryProvider.Linux,String})() at /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/src/wizard/interactive_build.jl:287
[12] cd(::BinaryBuilder.##161#162{BinaryBuilder.WizardState,BinaryProvider.Linux,String}, ::String) at ./file.jl:70
[13] step34(::BinaryBuilder.WizardState) at /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/src/wizard/interactive_build.jl:270
[14] run_wizard(::BinaryBuilder.WizardState) at /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/src/Wizard.jl:37
[15] run_wizard() at /home/wheel/oxinabox/.julia/v0.6/BinaryBuilder/src/Wizard.jl:22
[16] eval(::Module, ::Any) at ./boot.jl:235
[17] eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:66
[18] macro expansion at /home/wheel/oxinabox/.julia/v0.6/Revise/src/Revise.jl:775 [inlined]
[19] (::Revise.##17#18{Base.REPL.REPLBackend})() at ./event.jl:73
WizardState [step3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment