This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem compiling simple program w 2.95.2 under solaris



I'm trying to compile ddd and getting failures in the configure script.  A 
little hunting revealed the following culprit:

...
checking whether the C compiler (gcc) compiles and links a simple C 
program... yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking whether the C++ compiler (c++) compiles a simple program... no
configure: error: You must set the environment variable CXX to a working 
                  C++ compiler.  Also check the CXXFLAGS settings.
                  See the file 'config.log' for further diagnostics.
/sup/build/ddd-3.1.99 > tail config.log
configure:1543: c++ -o conftest -g -O2   conftest.C  1>&5
/sup/li
~/tmp/cpptest > make cpptest
g++     cpptest.cpp   -o cpptest
/sup/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/libgcc.a: could not read 
symbols: Bad value
collect2: ld returned 1 exit status
make: *** [cpptest] Error 1



copying that code into a separate file didn't help:



~/tmp/cpptest > cat cpptest.cpp 
#include <iostream.h>
int main() {
cout << "hello, world!";
; return 0; }

~/tmp/cpptest > uname -a
SunOS hew 5.7 Generic_106541-02 sun4m sparc SUNW,SPARCstation-20
~/tmp/cpptest > gcc --version
2.95.2
~/tmp/cpptest > g++ --version
2.95.2
~/tmp/cpptest > 


Both gcc builds were 'make bootstrap's.  Thanks for your help...


Regards, Nils.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]