[tcljava-dev] Tclblend and solaris
Brought to you by:
mdejong
From: Virden, L. W. <lv...@ca...> - 2007-02-22 16:26:29
|
I am wondering if anyone has gathered tips on the modifications necessary to the current tcljava code so that it will build on SPARC Solaris.=20 The first problem I encountered is that the configure looks for: Looking for /vol/javaNFS/jdk1.5.0/jre/lib/sun4u/libjava.so However, Sun uses the path /vol/javaNFS/jdk1.5.0/jre/lib/sparc/libjava.so So I edited the tcljava.m4 file, as noted by the output from configure. But configure doesn't seem to=20 Recognize that change. So I decided to try and regenerate configure after making this change. However, autoconf indicated that I needed an autoconf newer than ships with Sun . So I get a newer one and use that. I get farther at this point - now I'm told that the gcc in my environment has a bug that breaks Tcl Blend and that I should use another version.=20 So I set CC to point to a non-gcc compiler. That doesn't appear to matter - configure continues to tell me that the gcc is broken. checking for gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables...=20 checking for suffix of object files... o checking whether we are using the GNU C compiler... No And then later: checking for GCC 4.1.0 optimizer bug... yes configure: error: This gcc release contains an optimizer bug that breaks Tcl Blend, please use another version of gcc The real problem, looking into the config.log, is: configure:4564: checking for GCC 4.1.0 optimizer bug configure:4601: cc -o conftest -g -O2 conftest.c >&5 cc: Warning: option -2 passed to ld /usr/ccs/bin/ld: illegal option -- 2 Am I forced to use gcc? I'd prefer to use Sun's compiler. Oh, and note that the version of gcc that was used, as far as I can tell, earlier, was 3.3.1, not 4.1.0. I don't have a newer gcc available... |