Fails to compile with space in path
Opened this issue · 0 comments
Ellertvankoperen commented
On Darwin, but not sure this is specific to macos, pgcat fails to compile when there is a space in the path.
during compilation is see:
prefix='/Users/Ellert/Documents/Documents Database.one/PostgreSQL/pgcat/target/debug/build/jemalloc-sys-b6102b2591c4c3aa/out
and:
--- stderr
configure: error: Prefix should not contain spaces
thread 'main' panicked at /Users/Ellert/.cargo/registry/src/index.crates.io-6f17d22bba15001f/jemalloc-sys-0.5.3+5.3.0-patched/build.rs:346:9:
command did not execute successfully: cd "/Users/Ellert/Documents/Documents Database.one/PostgreSQL/pgcat/target/debug/build/jemalloc-sys-b6102b2591c4c3aa/out/build" && CC="cc" CFLAGS="-O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-2 -fno-omit-frame-pointer -m64 -arch x86_64 -Wall" CPPFLAGS="-O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-2 -fno-omit-frame-pointer -m64 -arch x86_64 -Wall" LDFLAGS="-O0 -ffunction-sections -fdata-sections -fPIC -gdwarf-2 -fno-omit-frame-pointer -m64 -arch x86_64 -Wall" "sh" "/Users/Ellert/Documents/Documents Database.one/PostgreSQL/pgcat/target/debug/build/jemalloc-sys-b6102b2591c4c3aa/out/build/configure" "--disable-cxx" "--enable-doc=no" "--enable-shared=no" "--with-jemalloc-prefix=_rjem_" "--with-private-namespace=_rjem_" "--host=x86_64-apple-darwin" "--build=x86_64-apple-darwin" "--prefix=/Users/Ellert/Documents/Documents Database.one/PostgreSQL/pgcat/target/debug/build/jemalloc-sys-b6102b2591c4c3aa/out"
expected success, got: exit status: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
The remedy is simple: move to a path without spaces, though on macos there can be spaces even in the username.
TARGET=x86_64-apple-darwin
HOST=x86_64-apple-darwin