Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile with space in path #718

Open
Ellertvankoperen opened this issue Apr 8, 2024 · 0 comments
Open

Fails to compile with space in path #718

Ellertvankoperen opened this issue Apr 8, 2024 · 0 comments

Comments

@Ellertvankoperen
Copy link

Ellertvankoperen commented Apr 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant