LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2004, 09:36 AM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
installed gcc with java language enabled.. but no gcj !


im using gentoo...

i rirst had "-java" in my use flags while compiling gentoo.... but now i need java support in my compiler... (i need to compile java programs to native code)

so i have this commmand to re-compile gcc

USE="java" emerge gcc

gcc was re-compiled... but no gcj program !

i tried adding java to my default USE flags in /etc/make.conf

same result !

this is SOOO ANNOYING !

does anyone know whats gone wrong ?

im going to have to install gcc manually and keep 2 gcc installations on my system !
 
Old 10-12-2004, 03:00 PM   #2
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Theres a gcj use flag:

Code:
[ebuild   R   ] sys-devel/gcc-3.4.2-r2  -bootstrap -boundschecking -build -debug +f77 +gcj +gtk -hardened -multilib -n32 -n64 +nls -objc -static (-uclibc) 0 kB
But for me even enabling this doesn't give me gcj! Did you ever resolve this?
 
Old 10-13-2004, 08:04 AM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
I saw the use Flag too ! but enabling it didnt help.

ive still not found a solution to this problem. maybe its a bug in the ebuilds for GCC ?
and the problem is it takes a whole GCC re-compile (takes ages on my machine) to find out if the latesst emerge --sync fixes it.

seems no-1 uses gcj ?
ive given up and started using sun's JDK javac byte code compiler.
 
Old 10-15-2004, 03:24 PM   #4
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
I have it working, this is what you have to do:

First set the use flag, then do emerge -uDa --newuse world, to remerge gcc (plus anything else that is out of date).

Then do env-update && . /etc/profile. This adds the new gcj executable to the path.

You may also need to play with gcc-config to select the correct version of gcc as active.

Thanks to some guy on irc for helping me get it working!

Mark.
 
  


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
Java (Sun, Eclipse, gcj, ...) rpz Linux - Software 3 08-08-2005 09:02 PM
GCJ:Java is not anymore inerpeted? NCC-1701&NCC-1701-D Programming 4 07-02-2005 01:52 PM
Sun Java not GCJ untwisted Linux - Software 6 06-16-2005 04:18 PM
gcc/gcj and classpath on knoppix 3.6 (debian) oeri Programming 2 09-16-2004 01:38 PM
gcc, gcj, and java problems weppnesp Linux - Software 0 06-15-2003 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:42 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