Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- julia> using Revise; include("./build_tarballs.jl")
- <-------------
- echo "WORKSPACE=$WORKSPACE"
- echo "target$target"
- echo "prefix=$prefix"
- cd $WORKSPACE/srcdir
- sed -i 's|add_subdirectory(tools)||' CMakeLists.txt
- sed -i 's|add_subdirectory(benchmark)||' CMakeLists.txt
- sed -i 's|add_subdirectory(test)||' CMakeLists.txt
- sed -i 's|add_subdirectory(sqlsmith)||' third_party/CMakeLists.txt
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- if [ $target = "x86_64-apple-darwin14" ]; then
- sed -i 's|-soname,libduckdb.so -o libduckdb.so|-install_name,libduckdb.dylib -o libduckdb.dylib|' ./src/CMakeFiles/duckdb.dir/link.txt
- fi
- make -j$(nproc)
- mkdir $prefix/lib
- cp -R src/libduckdb.* $prefix/lib/
- cp -R $WORKSPACE/srcdir/src/include $prefix/include
- ------------->
- name = "duckdb"
- version = v"0.0.2"
- sources = ["/Users/dashti/Dropbox/workspaces/RelationalAI/duckdb-builder.jl/duckdb""/workspace/srcdir"
- [22:26:08] Parsed --workspace as "9p/workspace0" -> "/workspace"
- [22:26:08] Parsed --workspace as "9p/workspace1" -> "/meta"
- [22:26:08] Parsed --map as "/dev/vdb" -> "/opt/x86_64-apple-darwin14/BaseCompilerShard-2018.11.11"
- [22:26:08] Parsed --map as "/dev/vdc" -> "/opt/x86_64-apple-darwin14/GCC-4.8.5"
- [22:26:08] Parsed --map as "/dev/vdd" -> "/opt/x86_64-linux-gnu/LLVM-6.0.1-0"
- [22:26:08] Parsed --map as "/dev/vde" -> "/opt/x86_64-linux-gnu/BaseCompilerShard-2018.11.11"
- [22:26:08] Parsed --map as "/dev/vdf" -> "/opt/x86_64-linux-gnu/GCC-4.8.5"
- [22:26:08] Reading 81 environment mappings
- [22:26:08] --> Creating overlay workdir at /proc
- [22:26:08] --> Mounting overlay of / at /tmp (modifications in /proc/upper/rootfs, workspace in /proc/work/rootfs)
- [22:26:08] --> mapping /dev/vdf to /tmp/opt/x86_64-linux-gnu/GCC-4.8.5
- [22:26:08] --> mapping /dev/vde to /tmp/opt/x86_64-linux-gnu/BaseCompilerShard-2018.11.11
- [22:26:08] --> mapping /dev/vdd to /tmp/opt/x86_64-linux-gnu/LLVM-6.0.1-0
- [22:26:08] --> mapping /dev/vdc to /tmp/opt/x86_64-apple-darwin14/GCC-4.8.5
- [22:26:08] --> mapping /dev/vdb to /tmp/opt/x86_64-apple-darwin14/BaseCompilerShard-2018.11.11
- [22:26:08] --> Mounting overlay of /tmp/opt/x86_64-apple-darwin14/BaseCompilerShard-2018.11.11:/tmp/opt/x86_64-apple-darwin14/GCC-4.8.5 at /tmp/opt/x86_64-apple-darwin14 (modifications in /proc/upper/x86_64-apple-darwin14, workspace in /p[22:26:08] 6_64-apple-darwin14)
- [22:26:08] --> Mounting overlay of /tmp/opt/x86_64-linux-gnu/LLVM-6.0.1-0:/tmp/opt/x86_64-linux-gnu/BaseCompilerShard-2018.11.11:/tmp/opt/x86_64-linux-gnu/GCC-4.8.5 at /tmp/opt/x86_64-linux-gnu (modifications in /proc/upper/x86_64-linux-g[22:26:08] ce in /proc/work/x86_64-linux-gnu)
- [22:26:08] --> Mounting procfs at /tmp/proc
- [22:26:08] --> Mounting /dev at /tmp/dev
- [22:26:08] --> workspacing 9p/workspace1 to /tmp/meta
- [22:26:08] --> workspacing 9p/workspace0 to /tmp/workspace
- [22:26:08] --> Mounting procfs at /proc
- [22:26:08] About to run `/bin/bash` `-c` `alias ll='ls -la'
- [22:26:08]
- [22:26:08] vecho() {
- [22:26:08] if [[ "true" == "true" ]]; then
- [22:26:08] echo "$@"
- [22:26:08] fi
- [22:26:08] }
- [22:26:08] vecho_red() {
- [22:26:08] (vecho "$@" >&2)
- [22:26:08] }
- [22:26:08]
- [22:26:08] # Save bash history (and optionally echo it out as it happens)
- [22:26:08] save_history() {
- [22:26:08] vecho_red " ---> $BASH_COMMAND"
- [22:26:08] history -s "$BASH_COMMAND"
- [22:26:08] history -a
- [22:26:08] }
- [22:26:08]
- [22:26:08] # Save our environment into `/meta/.env`, eliminating read-only variables
- [22:26:08] # so that this file can be sourced upon entering a debug shell.
- [22:26:08] save_env() {
- [22:26:08] set +x
- [22:26:08] set > /meta/.env
- [22:26:08] # Ignore read-only variables
- [22:26:08] for l in BASHOPTS BASH_VERSINFO UID EUID PPID SHELLOPTS; do
- [22:26:08] grep -v "^$l=" /meta/.env > /meta/.env2
- [22:26:08] mv /meta/.env2 /meta/.env
- [22:26:08] done
- [22:26:08] echo "cd $(pwd)" >> /meta/.env
- [22:26:08] }
- [22:26:08]
- [22:26:08] # We do a little sleight-of-hand here; we want to build inside of a tmpfs
- [22:26:08] # because `srcdir` might be mapped in through a networked filesystem, which
- [22:26:08] # totally wrecks our I/O performance. So what we do instead is bind-mount
- [22:26:08] # `srcdir` to another location so that we can always get at it, copy its
- [22:26:08] # contents to a new tmpfs we mount at the location of `srcdir`, then when
- [22:26:08] # we exit on an error, we copy everything back over again
- [22:26:08] tmpify_srcdir() {
- [22:26:08] vecho "Copying srcdir to tmpfs..."
- [22:26:08] mkdir -p $WORKSPACE/.true_srcdir
- [22:26:08] mount --bind $WORKSPACE/srcdir $WORKSPACE/.true_srcdir
- [22:26:08] mount -t tmpfs tmpfs $WORKSPACE/srcdir
- [22:26:08] echo "rsync -rlptD $WORKSPACE/.true_srcdir/ $WORKSPACE/srcdir"
- [22:26:08] ls -al $WORKSPACE
- [22:26:08] rsync -rlptD $WORKSPACE/.true_srcdir/ $WORKSPACE/srcdir
- [22:26:08]
- [22:26:08] # We may have changed what pwd() means out from underneath ourselves
- [22:26:08] cd $(pwd)
- [22:26:08] }
- [22:26:08]
- [22:26:08] # Copy our tmpfs version of `srcdir` back onto disk.
- [22:26:08] save_srcdir() {
- [22:26:08] vecho_red "Saving srcdir due to previous error..."
- [22:26:08] rsync -rlptD $WORKSPACE/srcdir/ $WORKSPACE/.true_srcdir --delete
- [22:26:08] }
- [22:26:08]
- [22:26:08] # If /meta is mounted, then we want to save history and environment
- [22:26:08] if [[ -d /meta ]]; then
- [22:26:08] trap save_history DEBUG
- [22:26:08] trap "save_env" EXIT
- [22:26:08] trap "save_env; save_srcdir" INT TERM ERR
- [22:26:08] fi
- [22:26:08]
- [22:26:08] # Stop if we hit any errors.
- [22:26:08] set -e
- [22:26:08]
- [22:26:08] # Swap out srcdir from underneath our feet
- [22:26:08] tmpify_srcdir
- [22:26:08]
- [22:26:08] echo "WORKSPACE=$WORKSPACE"
- [22:26:08] echo "target$target"
- [22:26:08] echo "prefix=$prefix"
- [22:26:08]
- [22:26:08] cd $WORKSPACE/srcdir
- [22:26:08]
- [22:26:08] sed -i 's|add_subdirectory(tools)||' CMakeLists.txt
- [22:26:08] sed -i 's|add_subdirectory(benchmark)||' CMakeLists.txt
- [22:26:08] sed -i 's|add_subdirectory(test)||' CMakeLists.txt
- [22:26:08] sed -i 's|add_subdirectory(sqlsmith)||' third_party/CMakeLists.txt
- [22:26:08]
- [22:26:08] mkdir build
- [22:26:08] cd build
- [22:26:08] cmake -DCMAKE_BUILD_TYPE=Release ..
- [22:26:08] if [ $target = "x86_64-apple-darwin14" ]; then
- [22:26:08] sed -i 's|-soname,libduckdb.so -o libduckdb.so|-install_name,libduckdb.dylib -o libduckdb.dylib|' ./src/CM[22:26:08] ckdb.dir/link.txt
- [22:26:08] fi
- [22:26:08] make -j$(nproc)
- [22:26:08] mkdir $prefix/lib
- [22:26:08] cp -R src/libduckdb.* $prefix/lib/
- [22:26:08] cp -R $WORKSPACE/srcdir/src/include $prefix/include
- [22:26:08]
- [22:26:08] `
- [22:26:09] ---> trap "save_env" EXIT
- [22:26:09] ---> trap "save_env; save_srcdir" INT TERM ERR
- [22:26:09] ---> set -e
- [22:26:09] ---> tmpify_srcdir
- [22:26:09] Copying srcdir to tmpfs...
- [22:26:09] rsync -rlptD /workspace/.true_srcdir/ /workspace/srcdir
- [22:26:09] total 0
- [22:26:09] drwxr-xr-x 6 root root 160 Jun 5 05:26 .
- [22:26:09] drwxr-xr-x 1 root root 0 Jun 5 05:26 ..
- [22:26:09] drwxr-xr-x 23 root root 736 Jun 5 05:26 .true_srcdir
- [22:26:09] drwxr-xr-x 2 root root 64 Jun 5 05:26 destdir
- [22:26:09] drwxr-xr-x 3 root root 96 Jun 5 05:26 metadir
- [22:26:09] drwxr-xr-x 2 root root 0 Jun 5 05:26 srcdir
- [22:26:09] rsync: pipe: Address family not supported by protocol (97)
- [22:26:09] rsync error: error in IPC code (code 14) at pipe.c(122) [sender=3.1.3]
- [22:26:09] reboot: Power down
- ERROR: LoadError: Build for duckdb on x86_64-apple-darwin14 did not complete successfully
- Stacktrace:
- [1] error(::String) at ./error.jl:33
- [2] #build#184(::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Array{String,1}, ::Bool, ::Function, ::BinaryBuilder.QemuRunner, ::String, ::Array{LibraryProduct,1}, ::String, ::MacOS, ::Prefix) at /Users/dashti/.julia/packages/BinaryBuilder/vkHhH/src/AutoBuild.jl:567
- [3] (::getfield(BinaryBuilder, Symbol("#kw##build")))(::NamedTuple{(:verbose, :ignore_manifests, :debug),Tuple{Bool,Array{String,1},Bool}}, ::typeof(build), ::BinaryBuilder.QemuRunner, ::String, ::Array{LibraryProduct,1}, ::String, ::MacOS, ::Prefix) at ./none:0
- [4] (::getfield(BinaryBuilder, Symbol("##173#179")){Bool,Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:debug,),Tuple{Bool}}},String,String,VersionNumber,String,Array{MacOS,1},typeof(products),Array{Any,1}})(::String) at /Users/dashti/.julia/packages/BinaryBuilder/vkHhH/src/AutoBuild.jl:391
- [5] mktempdir(::getfield(BinaryBuilder, Symbol("##173#179")){Bool,Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:debug,),Tuple{Bool}}},String,String,VersionNumber,String,Array{MacOS,1},typeof(products),Array{Any,1}}, ::String) at ./file.jl:581
- [6] mktempdir at ./file.jl:579 [inlined]
- [7] #autobuild#171(::Bool, ::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:debug,),Tuple{Bool}}}, ::Function, ::String, ::String, ::VersionNumber, ::Array{String,1}, ::String, ::Array{MacOS,1}, ::typeof(products), ::Array{Any,1}) at /Users/dashti/.julia/packages/BinaryBuilder/vkHhH/src/AutoBuild.jl:279
- [8] (::getfield(BinaryBuilder, Symbol("#kw##autobuild")))(::NamedTuple{(:verbose, :debug),Tuple{Bool,Bool}}, ::typeof(autobuild), ::String, ::String, ::VersionNumber, ::Array{String,1}, ::String, ::Array{MacOS,1}, ::typeof(products), ::Array{Any,1}) at ./none:0
- [9] #build_tarballs#160(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Array{String,1}, ::String, ::VersionNumber, ::Array{String,1}, ::String, ::Array{MacOS,1}, ::typeof(products), ::Array{Any,1}) at /Users/dashti/.julia/packages/BinaryBuilder/vkHhH/src/AutoBuild.jl:117
- [10] build_tarballs(::Array{String,1}, ::String, ::VersionNumber, ::Array{String,1}, ::String, ::Array{MacOS,1}, ::Function, ::Array{Any,1}) at /Users/dashti/.julia/packages/BinaryBuilder/vkHhH/src/AutoBuild.jl:21
- [11] top-level scope at none:0
- [12] include at ./boot.jl:326 [inlined]
- [13] include_relative(::Module, ::String) at ./loading.jl:1038
- [14] include(::Module, ::String) at ./sysimg.jl:29
- [15] include(::String) at ./client.jl:403
- [16] top-level scope at none:0
- in expression starting at /Users/dashti/Dropbox/workspaces/RelationalAI/duckdb-builder.jl/build_tarballs.jl:67
- julia>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement