OS X configure ignores --with-tools-dir

Dan Smith daniel.smith at oracle.com
Fri Apr 25 17:41:57 UTC 2014


I'm using --with-tools-dir on OS X Mavericks to point to an old copy of Xcode 4.  I configure jdk9 as follows:

> make dist-clean
> hg update -d "<2014-03-17"
> sh configure --with-boot-jdk=$JAVA8_HOME --with-tools-dir=/Applications/Xcode4.app/Contents/Developer/usr/bin
Running generated-configure.sh
...
Tools summary:
* Boot JDK:       java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)  (at /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home)
* Toolchain:      gcc (GNU Compiler Collection)
* C Compiler:     Version 4.2.1 (at /Applications/Xcode4.app/Contents/Developer/usr/bin/gcc)
* C++ Compiler:   Version 4.2.1 (at /Applications/Xcode4.app/Contents/Developer/usr/bin/g++)
...

As of March 18, this no longer works.

> make dist-clean
> hg update -d "<2014-03-18"
> sh configure --with-boot-jdk=$JAVA8_HOME --with-tools-dir=/Applications/Xcode4.app/Contents/Developer/usr/bin
Running generated-configure.sh
...
Tools summary:
* Boot JDK:       java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)  (at /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home)
* Toolchain:      clang (clang/LLVM)
* C Compiler:     Version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix (at /usr/bin/clang)
* C++ Compiler:   Version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix (at /usr/bin/clang++)
...

I appreciate the effort to get clang to work, but I should still be able to pick my compiler using --with-tools-dir.

Should I report a bug?

(Note on my motivation: I'm getting build errors due to -Wformat-nonliteral.  I've heard this is a known issue, but I'd like to be able to work around it in the mean time.)

—Dan


More information about the build-dev mailing list