Open skade opened 4 years ago
had a similar issue on MacOS 10.15.7 while building with cargo build --release
the lighthouse project:
error: failed to run custom build command for `leveldb-sys v2.0.8`
Caused by:
process didn't exit successfully: `/Users/username/lighthouse/target/release/build/leveldb-sys-67fe3e1390e671ca/build-script-build` (exit code: 101)
--- stdout
[build] Started
[snappy] Building
running: "cmake" "/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Release"
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for byteswap.h
-- Looking for byteswap.h - not found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/uio.h
-- Looking for sys/uio.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for lzo1x_1_15_compress in lzo2
-- Looking for lzo1x_1_15_compress in lzo2 - not found
-- Performing Test HAVE_BUILTIN_EXPECT
-- Performing Test HAVE_BUILTIN_EXPECT - Success
-- Performing Test HAVE_BUILTIN_CTZ
-- Performing Test HAVE_BUILTIN_CTZ - Success
-- Looking for mmap
-- Looking for mmap - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/build
running: "cmake" "--build" "." "--target" "install" "--config" "Release" "--"
Scanning dependencies of target snappy
[ 20%] Building CXX object CMakeFiles/snappy.dir/snappy-c.cc.o
[ 40%] Building CXX object CMakeFiles/snappy.dir/snappy-sinksource.cc.o
[ 60%] Building CXX object CMakeFiles/snappy.dir/snappy-stubs-internal.cc.o
[ 80%] Building CXX object CMakeFiles/snappy.dir/snappy.cc.o
[100%] Linking CXX static library libsnappy.a
[100%] Built target snappy
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib/libsnappy.a
-- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include/snappy-c.h
-- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include/snappy-sinksource.h
-- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include/snappy.h
-- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include/snappy-stubs-public.h
-- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib/cmake/Snappy/SnappyTargets.cmake
-- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib/cmake/Snappy/SnappyTargets-release.cmake
-- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib/cmake/Snappy/SnappyConfig.cmake
-- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib/cmake/Snappy/SnappyConfigVersion.cmake
cargo:root=/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out
cargo:rustc-link-search=native=/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib
cargo:rustc-link-lib=static=snappy
[leveldb] Building
detected home dir change, cleaning out entire build directory
running: "cmake" "/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Release"
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
-- Configuring incomplete, errors occurred!
See also "/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/build/CMakeFiles/CMakeOutput.log".
See also "/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/build/CMakeFiles/CMakeError.log".
--- stderr
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_COMPILER
CMAKE_ASM_FLAGS
CMake Error at /usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_f2297/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_f2297.dir/build.make CMakeFiles/cmTC_f2297.dir/build
Building C object CMakeFiles/cmTC_f2297.dir/testCCompiler.c.o
/usr/bin/cc -I/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/build/CMakeFiles/CMakeTmp/testCCompiler.c"
clang: error: no such file or directory: 'thefolderinsideusernamewhereicompiledlighthouse_itwasnotactuallythehomefolder/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include'
make[2]: *** [CMakeFiles/cmTC_f2297.dir/testCCompiler.c.o] Error 1
make[1]: *** [cmTC_f2297/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:7 (project)
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1
build script failed, must exit now', /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.44/src/lib.rs:885:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `lighthouse v0.3.0 (/Users/username/lighthouse/target`
Caused by:
build failed
make: *** [install] Error 101
➜ lighthouse git:(master) p
had a similar issue on MacOS 10.15.7 while building with
cargo build --release
the lighthouse project:error: failed to run custom build command for `leveldb-sys v2.0.8` Caused by: process didn't exit successfully: `/Users/username/lighthouse/target/release/build/leveldb-sys-67fe3e1390e671ca/build-script-build` (exit code: 101) --- stdout [build] Started [snappy] Building running: "cmake" "/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Release" -- The C compiler identification is AppleClang 11.0.0.11000033 -- The CXX compiler identification is AppleClang 11.0.0.11000033 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Searching 16 bit integer - Using unsigned short -- Check if the system is big endian - little endian -- Looking for byteswap.h -- Looking for byteswap.h - not found -- Looking for sys/endian.h -- Looking for sys/endian.h - not found -- Looking for sys/mman.h -- Looking for sys/mman.h - found -- Looking for sys/resource.h -- Looking for sys/resource.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for sys/uio.h -- Looking for sys/uio.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for windows.h -- Looking for windows.h - not found -- Looking for lzo1x_1_15_compress in lzo2 -- Looking for lzo1x_1_15_compress in lzo2 - not found -- Performing Test HAVE_BUILTIN_EXPECT -- Performing Test HAVE_BUILTIN_EXPECT - Success -- Performing Test HAVE_BUILTIN_CTZ -- Performing Test HAVE_BUILTIN_CTZ - Success -- Looking for mmap -- Looking for mmap - found -- Looking for sysconf -- Looking for sysconf - found -- Configuring done -- Generating done -- Build files have been written to: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/build running: "cmake" "--build" "." "--target" "install" "--config" "Release" "--" Scanning dependencies of target snappy [ 20%] Building CXX object CMakeFiles/snappy.dir/snappy-c.cc.o [ 40%] Building CXX object CMakeFiles/snappy.dir/snappy-sinksource.cc.o [ 60%] Building CXX object CMakeFiles/snappy.dir/snappy-stubs-internal.cc.o [ 80%] Building CXX object CMakeFiles/snappy.dir/snappy.cc.o [100%] Linking CXX static library libsnappy.a [100%] Built target snappy Install the project... -- Install configuration: "Release" -- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib/libsnappy.a -- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include/snappy-c.h -- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include/snappy-sinksource.h -- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include/snappy.h -- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include/snappy-stubs-public.h -- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib/cmake/Snappy/SnappyTargets.cmake -- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib/cmake/Snappy/SnappyTargets-release.cmake -- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib/cmake/Snappy/SnappyConfig.cmake -- Installing: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib/cmake/Snappy/SnappyConfigVersion.cmake cargo:root=/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out cargo:rustc-link-search=native=/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/lib cargo:rustc-link-lib=static=snappy [leveldb] Building detected home dir change, cleaning out entire build directory running: "cmake" "/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Release" -- The C compiler identification is AppleClang 11.0.0.11000033 -- The CXX compiler identification is AppleClang 11.0.0.11000033 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc - broken -- Configuring incomplete, errors occurred! See also "/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/build/CMakeFiles/CMakeOutput.log". See also "/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/build/CMakeFiles/CMakeError.log". --- stderr CMake Warning: Manually-specified variables were not used by the project: CMAKE_ASM_COMPILER CMAKE_ASM_FLAGS CMake Error at /usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/CMakeTestCCompiler.cmake:66 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: /Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_f2297/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_f2297.dir/build.make CMakeFiles/cmTC_f2297.dir/build Building C object CMakeFiles/cmTC_f2297.dir/testCCompiler.c.o /usr/bin/cc -I/Users/username/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/build/CMakeFiles/CMakeTmp/testCCompiler.c" clang: error: no such file or directory: 'thefolderinsideusernamewhereicompiledlighthouse_itwasnotactuallythehomefolder/lighthouse/target/release/build/leveldb-sys-b632c2dfcd505702/out/include' make[2]: *** [CMakeFiles/cmTC_f2297.dir/testCCompiler.c.o] Error 1 make[1]: *** [cmTC_f2297/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:7 (project) thread 'main' panicked at ' command did not execute successfully, got: exit code: 1 build script failed, must exit now', /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.44/src/lib.rs:885:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... error: failed to compile `lighthouse v0.3.0 (/Users/username/lighthouse/target` Caused by: build failed make: *** [install] Error 101 ➜ lighthouse git:(master) p
How did it finally work out?
I found the reason, there was a folder in the working directory with a space character.
https://github.com/skade/leveldb/issues/35