VCVRack / rack-plugin-toolchain

53 stars 12 forks source link

on Ubuntu: docker-plugin-build failed for "Fundamental" and "Befaco" #10

Closed jpnielsen closed 2 years ago

jpnielsen commented 2 years ago

On ubuntu 21.04 (in virtualbox 6.1.26 on Windows 10)

successfull "docker-build" docker-plugin-build failed on both "Fundamental" and "Befaco"

Perhaps some n00b error by me (?)

sudo apt install docker.io acl
sudo setfacl --modify user:jpn:rw /var/run/docker.sock

cd ~/projects
git clone https://github.com/VCVRack/rack-plugin-toolchain.git
cd rack-plugin-toolchain/
cp ~/Downloads/MacOSX10.13.sdk.tar.xz .
make docker-build

cd ~/projects
git clone https://github.com/VCVRack/Befaco.git
cd Befaco/
git submodule update --init --recursive

cd ~/projects/rack-plugin-toolchain
make -j4 docker-plugin-build PLUGIN_DIR=/home/jpn/projects/Befaco

mkdir -p plugin-build
docker run --rm --interactive --tty --volume=/home/jpn/projects/Befaco:/home/build/plugin-src --volume=/home/jpn/projects/rack-plugin-toolchain/plugin-build:/home/build/rack-plugin-toolchain/plugin-build --env PLUGIN_DIR=/home/build/plugin-src rack-plugin-toolchain:1 /bin/bash -c "make plugin-build -j4 --jobserver-auth=3,4"
make: warning: -j4 forced in submake: resetting jobserver mode.
make plugin-build-mac
make[1]: Entering directory '/home/build/rack-plugin-toolchain'
cd /home/build/plugin-src && make clean
make[2]: Entering directory '/home/build/plugin-src'
rm -rfv build plugin.dylib dist
removed directory 'build/src'
removed directory 'build'
make[2]: Leaving directory '/home/build/plugin-src'
cd /home/build/plugin-src && make cleandep
make[2]: Entering directory '/home/build/plugin-src'
rm -rfv dep
removed directory 'dep'
make[2]: Leaving directory '/home/build/plugin-src'
cd /home/build/plugin-src && make dep
make[2]: Entering directory '/home/build/plugin-src'
make[2]: Nothing to be done for 'dep'.
make[2]: Leaving directory '/home/build/plugin-src'
cd /home/build/plugin-src && make dist
make[2]: Entering directory '/home/build/plugin-src'
x86_64-apple-darwin17-clang++-libc++ -std=c++11 -stdlib=libc++  -fPIC -I/home/build/rack-plugin-toolchain/Rack-SDK/include -I/home/build/rack-plugin-toolchain/Rack-SDK/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7  -c -o build/src/SpringReverb.cpp.o src/SpringReverb.cpp
x86_64-apple-darwin17-clang++-libc++ -std=c++11 -stdlib=libc++  -fPIC -I/home/build/rack-plugin-toolchain/Rack-SDK/include -I/home/build/rack-plugin-toolchain/Rack-SDK/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7  -c -o build/src/HexmixVCA.cpp.o src/HexmixVCA.cpp
x86_64-apple-darwin17-clang++-libc++ -std=c++11 -stdlib=libc++  -fPIC -I/home/build/rack-plugin-toolchain/Rack-SDK/include -I/home/build/rack-plugin-toolchain/Rack-SDK/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7  -c -o build/src/EvenVCO.cpp.o src/EvenVCO.cpp
x86_64-apple-darwin17-clang++-libc++ -std=c++11 -stdlib=libc++  -fPIC -I/home/build/rack-plugin-toolchain/Rack-SDK/include -I/home/build/rack-plugin-toolchain/Rack-SDK/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7  -c -o build/src/SlewLimiter.cpp.o src/SlewLimiter.cpp
osxcross: error: cannot find libc++ headers
osxcross: error: while detecting target
make[2]: *** [/home/build/rack-plugin-toolchain/Rack-SDK/compile.mk:69: build/src/SpringReverb.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
osxcross: error: cannot find libc++ headers
osxcross: error: while detecting target
osxcross: error: cannot find libc++ headers
osxcross: error: while detecting target
make[2]: *** [/home/build/rack-plugin-toolchain/Rack-SDK/compile.mk:69: build/src/HexmixVCA.cpp.o] Error 1
make[2]: *** [/home/build/rack-plugin-toolchain/Rack-SDK/compile.mk:69: build/src/EvenVCO.cpp.o] Error 1
osxcross: error: cannot find libc++ headers
osxcross: error: while detecting target
make[2]: *** [/home/build/rack-plugin-toolchain/Rack-SDK/compile.mk:69: build/src/SlewLimiter.cpp.o] Error 1
make[2]: Leaving directory '/home/build/plugin-src'
make[1]: *** [Makefile:122: plugin-build-mac] Error 2
make[1]: Leaving directory '/home/build/rack-plugin-toolchain'
make: *** [Makefile:129: plugin-build] Error 2
make: *** [Makefile:214: docker-plugin-build] Error 2

// Fundamental

cd ~/projects
git clone https://github.com/VCVRack/Befaco.git
cd Befaco/
git submodule update --init --recursive
cd ~/projects/rack-plugin-toolchain
make -j4 docker-plugin-build PLUGIN_DIR=/home/jpn/projects/Fundamental

mkdir -p plugin-build
docker run --rm --interactive --tty --volume=/home/jpn/projects/Fundamental:/home/build/plugin-src --volume=/home/jpn/projects/rack-plugin-toolchain/plugin-build:/home/build/rack-plugin-toolchain/plugin-build --env PLUGIN_DIR=/home/build/plugin-src rack-plugin-toolchain:1 /bin/bash -c "make plugin-build -j4 --jobserver-auth=3,4"
make: warning: -j4 forced in submake: resetting jobserver mode.
make plugin-build-mac
make[1]: Entering directory '/home/build/rack-plugin-toolchain'
cd /home/build/plugin-src && make clean
make[2]: Entering directory '/home/build/plugin-src'
rm -rfv build plugin.dylib dist
make[2]: Leaving directory '/home/build/plugin-src'
cd /home/build/plugin-src && make cleandep
make[2]: Entering directory '/home/build/plugin-src'
rm -rfv dep
removed 'dep/libsamplerate-0.1.9/config.log'
removed 'dep/libsamplerate-0.1.9/configure'
removed 'dep/libsamplerate-0.1.9/INSTALL'
removed 'dep/libsamplerate-0.1.9/doc/faq.html'
removed 'dep/libsamplerate-0.1.9/doc/api_callback.html'
removed 'dep/libsamplerate-0.1.9/doc/SRC.png'
removed 'dep/libsamplerate-0.1.9/doc/lists.html'
removed 'dep/libsamplerate-0.1.9/doc/api_misc.html'
removed 'dep/libsamplerate-0.1.9/doc/api_full.html'
removed 'dep/libsamplerate-0.1.9/doc/api_simple.html'
removed 'dep/libsamplerate-0.1.9/doc/Makefile.am'
removed 'dep/libsamplerate-0.1.9/doc/api.html'
removed 'dep/libsamplerate-0.1.9/doc/Makefile.in'
removed 'dep/libsamplerate-0.1.9/doc/quality.html'
removed 'dep/libsamplerate-0.1.9/doc/history.html'
removed 'dep/libsamplerate-0.1.9/doc/NEWS'
removed 'dep/libsamplerate-0.1.9/doc/index.html'
removed 'dep/libsamplerate-0.1.9/doc/download.html'
removed 'dep/libsamplerate-0.1.9/doc/ChangeLog'
removed 'dep/libsamplerate-0.1.9/doc/license.html'
removed 'dep/libsamplerate-0.1.9/doc/win32.html'
removed 'dep/libsamplerate-0.1.9/doc/SRC.css'
removed directory 'dep/libsamplerate-0.1.9/doc'
removed 'dep/libsamplerate-0.1.9/libsamplerate.spec.in'
removed 'dep/libsamplerate-0.1.9/Cfg/ltmain.sh'
removed 'dep/libsamplerate-0.1.9/Cfg/config.sub'
removed 'dep/libsamplerate-0.1.9/Cfg/missing'
removed 'dep/libsamplerate-0.1.9/Cfg/install-sh'
removed 'dep/libsamplerate-0.1.9/Cfg/compile'
removed 'dep/libsamplerate-0.1.9/Cfg/depcomp'
removed 'dep/libsamplerate-0.1.9/Cfg/config.guess'
removed directory 'dep/libsamplerate-0.1.9/Cfg'
removed 'dep/libsamplerate-0.1.9/M4/ltversion.m4'
removed 'dep/libsamplerate-0.1.9/M4/check_signal.m4'
removed 'dep/libsamplerate-0.1.9/M4/lt~obsolete.m4'
removed 'dep/libsamplerate-0.1.9/M4/ltoptions.m4'
removed 'dep/libsamplerate-0.1.9/M4/libtool.m4'
removed 'dep/libsamplerate-0.1.9/M4/ltsugar.m4'
removed 'dep/libsamplerate-0.1.9/M4/endian.m4'
removed 'dep/libsamplerate-0.1.9/M4/lrintf.m4'
removed 'dep/libsamplerate-0.1.9/M4/lrint.m4'
removed 'dep/libsamplerate-0.1.9/M4/Makefile.am'
removed 'dep/libsamplerate-0.1.9/M4/Makefile.in'
removed 'dep/libsamplerate-0.1.9/M4/clip_mode.m4'
removed 'dep/libsamplerate-0.1.9/M4/add_cflags.m4'
removed directory 'dep/libsamplerate-0.1.9/M4'
removed 'dep/libsamplerate-0.1.9/src/check_asm.sh'
removed 'dep/libsamplerate-0.1.9/src/high_qual_coeffs.h'
removed 'dep/libsamplerate-0.1.9/src/config.h.in'
removed 'dep/libsamplerate-0.1.9/src/Makefile.am'
removed 'dep/libsamplerate-0.1.9/src/Makefile.in'
removed 'dep/libsamplerate-0.1.9/src/common.h'
removed 'dep/libsamplerate-0.1.9/src/mid_qual_coeffs.h'
removed 'dep/libsamplerate-0.1.9/src/Version_script.in'
removed 'dep/libsamplerate-0.1.9/src/samplerate.h'
removed 'dep/libsamplerate-0.1.9/src/float_cast.h'
removed 'dep/libsamplerate-0.1.9/src/src_sinc.c'
removed 'dep/libsamplerate-0.1.9/src/fastest_coeffs.h'
removed 'dep/libsamplerate-0.1.9/src/src_linear.c'
removed 'dep/libsamplerate-0.1.9/src/src_zoh.c'
removed 'dep/libsamplerate-0.1.9/src/samplerate.c'
removed directory 'dep/libsamplerate-0.1.9/src'
removed 'dep/libsamplerate-0.1.9/Makefile.am'
removed 'dep/libsamplerate-0.1.9/Makefile.in'
removed 'dep/libsamplerate-0.1.9/aclocal.m4'
removed 'dep/libsamplerate-0.1.9/configure.ac'
removed 'dep/libsamplerate-0.1.9/COPYING'
removed 'dep/libsamplerate-0.1.9/README'
removed 'dep/libsamplerate-0.1.9/NEWS'
removed 'dep/libsamplerate-0.1.9/Make.bat'
removed 'dep/libsamplerate-0.1.9/examples/timewarp-file.c'
removed 'dep/libsamplerate-0.1.9/examples/audio_out.c'
removed 'dep/libsamplerate-0.1.9/examples/Makefile.am'
removed 'dep/libsamplerate-0.1.9/examples/Makefile.in'
removed 'dep/libsamplerate-0.1.9/examples/varispeed-play.c'
removed 'dep/libsamplerate-0.1.9/examples/sndfile-resample.c'
removed 'dep/libsamplerate-0.1.9/examples/audio_out.h'
removed directory 'dep/libsamplerate-0.1.9/examples'
removed 'dep/libsamplerate-0.1.9/samplerate.pc.in'
removed 'dep/libsamplerate-0.1.9/Win32/Makefile.mingw.in'
removed 'dep/libsamplerate-0.1.9/Win32/Makefile.am'
removed 'dep/libsamplerate-0.1.9/Win32/Makefile.in'
removed 'dep/libsamplerate-0.1.9/Win32/libsamplerate-0.def'
removed 'dep/libsamplerate-0.1.9/Win32/config.h'
removed 'dep/libsamplerate-0.1.9/Win32/Makefile.msvc'
removed 'dep/libsamplerate-0.1.9/Win32/unistd.h'
removed directory 'dep/libsamplerate-0.1.9/Win32'
removed 'dep/libsamplerate-0.1.9/AUTHORS'
removed 'dep/libsamplerate-0.1.9/ChangeLog'
removed 'dep/libsamplerate-0.1.9/tests/simple_test.c'
removed 'dep/libsamplerate-0.1.9/tests/float_short_test.c'
removed 'dep/libsamplerate-0.1.9/tests/calc_snr.c'
removed 'dep/libsamplerate-0.1.9/tests/callback_hang_test.c'
removed 'dep/libsamplerate-0.1.9/tests/multi_channel_test.c'
removed 'dep/libsamplerate-0.1.9/tests/multichan_throughput_test.c'
removed 'dep/libsamplerate-0.1.9/tests/util.c'
removed 'dep/libsamplerate-0.1.9/tests/varispeed_test.c'
removed 'dep/libsamplerate-0.1.9/tests/reset_test.c'
removed 'dep/libsamplerate-0.1.9/tests/downsample_test.c'
removed 'dep/libsamplerate-0.1.9/tests/Makefile.am'
removed 'dep/libsamplerate-0.1.9/tests/Makefile.in'
removed 'dep/libsamplerate-0.1.9/tests/throughput_test.c'
removed 'dep/libsamplerate-0.1.9/tests/src-evaluate.c'
removed 'dep/libsamplerate-0.1.9/tests/util.h'
removed 'dep/libsamplerate-0.1.9/tests/misc_test.c'
removed 'dep/libsamplerate-0.1.9/tests/snr_bw_test.c'
removed 'dep/libsamplerate-0.1.9/tests/termination_test.c'
removed 'dep/libsamplerate-0.1.9/tests/callback_test.c'
removed directory 'dep/libsamplerate-0.1.9/tests'
removed 'dep/libsamplerate-0.1.9/autogen.sh'
removed directory 'dep/libsamplerate-0.1.9'
removed directory 'dep'
make[2]: Leaving directory '/home/build/plugin-src'
cd /home/build/plugin-src && make dep
make[2]: Entering directory '/home/build/plugin-src'
wget -c http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz
--2021-09-21 19:57:28--  http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz
Resolving www.mega-nerd.com (www.mega-nerd.com)... 97.107.128.207
Connecting to www.mega-nerd.com (www.mega-nerd.com)|97.107.128.207|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

cd dep && tar xf ../libsamplerate-0.1.9.tar.gz
cd dep/libsamplerate-0.1.9 && ./configure --prefix="/home/build/plugin-src/dep" --host=x86_64-apple-darwin17
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-apple-darwin17
checking target system type... x86_64-apple-darwin17
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/build/plugin-src/dep/libsamplerate-0.1.9/Cfg/missing: Unknown `--is-lightweight' option
Try `/home/build/plugin-src/dep/libsamplerate-0.1.9/Cfg/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for x86_64-apple-darwin17-strip... x86_64-apple-darwin17-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for x86_64-apple-darwin17-gcc... x86_64-apple-darwin17-clang
checking whether the C compiler works... no
configure: error: in `/home/build/plugin-src/dep/libsamplerate-0.1.9':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[2]: *** [Makefile:17: dep/lib/libsamplerate.a] Error 77
make[2]: Leaving directory '/home/build/plugin-src'
make[1]: *** [Makefile:121: plugin-build-mac] Error 2
make[1]: Leaving directory '/home/build/rack-plugin-toolchain'
make: *** [Makefile:129: plugin-build] Error 2
make: *** [Makefile:214: docker-plugin-build] Error 2
cschol commented 2 years ago

You are not using the proper macOS SDK. You are likely using an "unoffical" one from somewhere on the internet, which does not have the correct headers included. You need to generate the SDK from the appropriate version of Xcode on macOS.