rudix-mac / rudix

Build system target on macOS with precompiled packages
https://rudix.org
BSD 3-Clause "New" or "Revised" License
194 stars 35 forks source link

Unescaped InstalledDir -> can't build on 12.2 #120

Open jamezpolley opened 2 years ago

jamezpolley commented 2 years ago

Freshly installed 12.2. Trying to build my first package, pkg-config.

make build errors with

/bin/sh: Volumes/Macintosh: No such file or directory

I think that this is related to this output in config.log

configure:3070: checking for style of include used by make
configure:3098: result: GNU
configure:3169: checking for gcc
configure:3196: result: gcc
configure:3425: checking for C compiler version
configure:3434: gcc --version >&5
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Volumes/Macintosh HD/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Configured with: --prefix=/Volumes/Macintosh HD/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Volumes/Macintosh HD/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
configure:3445: $? = 0
configure:3434: gcc -v >&5
Configured with: --prefix=/Volumes/Macintosh HD/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Volumes/Macintosh HD/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Volumes/Macintosh HD/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:3445: $? = 0
configure:3434: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3445: $? = 1
configure:3434: gcc -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:3445: $? = 1
configure:3465: checking whether the C compiler works
configure:3487: gcc -arch x86_64 -Os -I/usr/local/include -arch x86_64 conftest.c  >&5
configure:3491: $? = 0
configure:3539: result: yes
configure:3542: checking for C compiler default output file name
configure:3544: result: a.out
configure:3550: checking for suffix of executables

as the other places I can see Macintosh HD reference all seem to be escaped appropriately.

I'm not sure what to do about this.

ruda commented 2 years ago

Yeah, that's a big issue, you are using a mounted volume with spaces in the name. I'm trying to figure out the places to quote paths so it won't break things.

Work in progress, but you can have an idea with commit 18c431e where I'm quoting paths and you can help to identify other places, if you want or bring another solution. Good that you report it.