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

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

Open
jamezpolley opened this issue Feb 2, 2022 · 1 comment
Open

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

jamezpolley opened this issue Feb 2, 2022 · 1 comment

Comments

@jamezpolley
Copy link
Contributor

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 added a commit that referenced this issue Feb 20, 2022
@ruda
Copy link
Member

ruda commented Feb 20, 2022

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.

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

No branches or pull requests

2 participants