Solaris compiler setup ?
David Holmes
david.holmes at oracle.com
Wed Aug 8 21:39:44 PDT 2012
When I run configure on Solaris it can't find the "needed compilers".
checking if this is a cross compile... no
checking for cl... no
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
`tty`: Ambiguous
checking for cl... no
checking for CC... CC
checking whether we are using the GNU C++ compiler... no
checking whether CC accepts -g... yes
`tty`: Ambiguous
configure: error: Could not find the needed compilers!
It finds CC, which is in my path at:
/java/devtools/i386/SUNWspro/SS12u1/bin/CC
What is it looking for? config.log shows:
configure:10084: checking whether we are using the GNU C++ compiler
configure:10103: CC -c conftest.cpp >&5
"conftest.cpp", line 14: Error: choke is not defined.
1 Error(s) detected.
configure:10103: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "openjdk"
| #define PACKAGE_TARNAME "openjdk"
| #define PACKAGE_VERSION "jdk8"
| #define PACKAGE_STRING "openjdk jdk8"
| #define PACKAGE_BUGREPORT "build-dev at openjdk.java.net"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
| #ifndef __GNUC__
| choke me
| #endif
|
| ;
| return 0;
| }
configure:10112: result: no
configure:10121: checking whether CC accepts -g
configure:10141: CC -c -g conftest.cpp >&5
configure:10141: $? = 0
configure:10182: result: yes
configure:10280: error: Could not find the needed compilers!
??
Thanks,
David
More information about the build-infra-dev
mailing list