GCC 4.4.6-4 compilation failed for classpath
Hi All,
We are trying to compile GCC 4.4.6-4 , we found below error while compiling GCC. please help in resolving this issue . thanks in advance . ====== ERROR: ====== checking if /imsprod/GCC_4_6/gcc-4.4.6-20120305/host-x86_64-redhat-linux/gcc/gcj -B/imsprod/GCC_4_6/gcc-4.4.6-20120305/x86_64-redhat-linux/32/libjava/ -B/imsprod/GCC_4_6/gcc-4.4.6-20120305/x86_64-redhat-linux/32/libjava/ -B/imsprod/GCC_4_6/gcc-4.4.6-20120305/host-x86_64-redhat-linux/gcc/ -B/vobs/ims_tools/rhlinux/gcc/x86_64-redhat-linux/bin/ -B/vobs/ims_tools/rhlinux/gcc/x86_64-redhat-linux/lib/ -isystem /vobs/ims_tools/rhlinux/gcc/x86_64-redhat-linux/include -isystem /vobs/ims_tools/rhlinux/gcc/x86_64-redhat-linux/sys-include -m32 -C -g works... configure: error: The Java compiler /imsprod/GCC_4_6/gcc-4.4.6-20120305/host-x86_64-redhat-linux/gcc/gcj -B/imsprod/GCC_4_6/gcc-4.4.6-20120305/x86_64-redhat-linux/32/libjava/ -B/imsprod/GCC_4_6/gcc-4.4.6-20120305/x86_64-redhat-linux/32/libjava/ -B/imsprod/GCC_4_6/gcc-4.4.6-20120305/host-x86_64-redhat-linux/gcc/ -B/vobs/ims_tools/rhlinux/gcc/x86_64-redhat-linux/bin/ -B/vobs/ims_tools/rhlinux/gcc/x86_64-redhat-linux/lib/ -isystem /vobs/ims_tools/rhlinux/gcc/x86_64-redhat-linux/include -isystem /vobs/ims_tools/rhlinux/gcc/x86_64-redhat-linux/sys-include -m32 -C -g failed (see config.log, check the CLASSPATH?) configure: error: ../../../.././libjava/classpath/configure failed for classpath make[1]: *** [configure-target-libjava] Error 1 make[1]: Leaving directory `/imsprod/GCC_4_6/gcc-4.4.6-20120305' make: *** [all] Error 2 ====== Prefix: ====== /configure --prefix=/vobs/ims_tools/rhlinux/gcc --mandir=/vobs/ims_tools/rhlinux/gcc/share/man --infodir=/vobs/ims_tools/rhlinux/gcc/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/vobs/ims_tools/rhlinux/j2sdk --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/vobs/ims_tools/rhlinux/gcc/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux |
Welcome to LQ.
Why build gcc-4.4.6 ? Is already the system compiler in EL6. And available as a package for EL5 : # yum install gcc44* And why do a gcc build with java ? You'd probably get a better java with openjdk or jdk-1.6.0_33-fcs.x86_64.rpm http://ftp.scientificlinux.org/linux...fcs.x86_64.rpm Which OS is it, you are using ? ? . |
Hi,
for our build environment we are using GCC & all other OS binaries,tools from custom PATH(clearcase VOB), Hence we need to compile the GCC source. OS: RHEL6.3 In the prefix we have provide $JAVAHOME PATH. ====== Prefix: ====== /configure --prefix=/vobs/ims_tools/rhlinux/gcc --mandir=/vobs/ims_tools/rhlinux/gcc/share/man --infodir=/vobs/ims_tools/rhlinux/gcc/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/vobs/ims_tools/rhlinux/j2sdk --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/vobs/ims_tools/rhlinux/gcc/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux |
Quote:
GCC requires a build folder outside the gcc-4.4.6/ source folder. I.e. mkdir build-gcc446 && cd build-gcc446/ && ../gcc-4.4.6/configure --prefix=/vobs/ims_tools/rhlinux/gcc -- ! The current gcc-4.4.6/ source folder cannot be reused. Please delete. And start from scratch. . |
Hi
I tried above steps but no luck same error :( |
After excluding "java" , we were able to compile gcc
--enable-languages=c,c++,objc,obj-c++ |
All times are GMT -5. The time now is 01:39 AM. |