invalid warnings from ghc 9.6.1-alpha3 on macOS
Summary
invalid warnings from ghc 9.6.1-alpha3 on macOS
when I do ./configure I get the following message:
checking Xcode version... xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance not found (too old?)
I also get a related warning when I do a compile:
ghc hello.hs
[1 of 2] Compiling Main ( hello.hs, hello.o ) [Missing object file]
[2 of 2] Linking hello [Objects changed
ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib'
hello.hs contains
main = putStrLn "hello"
Expected behavior
I don't expect to see any warnings.
Environment
macOS 13.2.1
- GHC version used: ghc 9.6.1-alpha3
Suspected root cause
the configure file contains the following:
bash-3.2$ fgrep Xcode.app configure
FFIIncludeDir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/ffi
FFILibDir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib
If I understand correctly there shouldn't be any references to Xcode.app nor to a specific version of the sdk (i.e. MacOSX12.1.sdk) I believe having Command Line Tools installed should be sufficient for the install, i.e having Xcode installed is not a requirement.
My guess is that this issue would cause errors, not just invalid warnings, for some programs.