LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2012, 11:07 AM   #1
tjayanth
LQ Newbie
 
Registered: Aug 2012
Posts: 9

Rep: Reputation: Disabled
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
 
Old 08-25-2012, 01:58 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 ? ?

.
 
Old 08-25-2012, 11:26 PM   #3
tjayanth
LQ Newbie
 
Registered: Aug 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-26-2012, 03:58 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
./configure --prefix=/vobs/ims_tools/rhlinux/gcc -- .. .. ..
At least one fatal error :
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.

.
 
Old 08-26-2012, 11:27 AM   #5
tjayanth
LQ Newbie
 
Registered: Aug 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hi

I tried above steps but no luck same error
 
Old 09-05-2012, 09:01 AM   #6
tjayanth
LQ Newbie
 
Registered: Aug 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
After excluding "java" , we were able to compile gcc

--enable-languages=c,c++,objc,obj-c++
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] gcc compilation failed in version-check.sh script gibran Linux From Scratch 11 09-26-2015 06:47 AM
gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7) compilation error adhesh_19 Red Hat 0 01-05-2010 05:34 AM
have gcc compilation error during gcc installtion in linuxfromscratch vbshanmugaprakash Linux - General 3 12-13-2006 05:52 AM
gcc/gcj and classpath on knoppix 3.6 (debian) oeri Programming 2 09-16-2004 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration