Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80860 - gcj missing from path
Summary: gcj missing from path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-05 06:25 UTC by Paul Slinski
Modified: 2008-08-18 10:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Slinski 2005-02-05 06:25:48 UTC
I was attempting to merge "pdftk" which uses gcc's gcj compiler, however, it cannot find gcj even though the gcj flag was on when I compiled gcc and the binary exists in /usr/i686-pc-linux-gnu/gcc-bin/3.4.3/

Is this simply missing from the path, or is it not available for a reason?

Reproducible: Always
Steps to Reproduce:
1. merge gcc with gcj flag enabled
2. attempt to merge pdftk
3. fail

Actual Results:  
sisyphus # emerge pdftk
Calculating dependencies ...done!
>>> emerge (1 of 1) app-text/pdftk-1.12 to /
>>> md5 src_uri ;-) pdftk-1.12.tar.gz
 * It seems that your system doesn't provides a Java compiler.
 * Re-emerge sys-devel/gcc with "java" and "gcj" enabled.

!!! ERROR: app-text/pdftk-1.12 failed.
!!! Function pkg_setup, Line 20, Exitcode 0
!!! gcj not found.
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
Successful compile of pdftk.

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.4,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 30 2005, 09:45:19)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/"
LDFLAGS="-Wl,-z,now"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib alsa aotuv apm arts artswrappersuid audiofile avi
bash-completion berkdb bitmap-fonts bzip2 caps cdparanoia crypt cups divx4linux
dts dv dvd dvdread ecc edl encode esd f77 fam flac font-server foomaticdb gcj
gdbm gif gimp gnokii gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml idea imlib
ipv6 jack jai java javascript jce jimi jms jmx jpeg jpeg2k junit kde
kdeenablefinal libcaca libclamav libg++ libwww live lzo mad matroska mikmod mmap
mmx mmx2 mng motif mozilla mozxmlterm mpeg multicall mythtv nas ncurses nptl
nvidia offensive oggvorbis opengl oss pam pda pdflib perl pic png povray python
qt quicktime readline real rtc samba scanner sdl silc slang slp sms sndfile
spell sse sse2 ssl svg svga svgz tcltk tcpd tetex tga theora threads tiff
truetype truetype-fonts type1-fonts userlocales v4l v4l2 wifi wmf xanim xine
xinerama xml xml2 xmms xprint xscreensaver xv xvid xvmc zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-02-05 06:35:26 UTC
you have to merge gcc with the useflags 'java' and 'gcj' enabled.
Comment 2 Paul Slinski 2005-02-05 08:30:41 UTC
Please see use flags. Both were enabled.
Comment 3 Paul Slinski 2005-02-05 08:31:07 UTC
This is not resolved.
Comment 4 Jan Brinkmann (RETIRED) gentoo-dev 2005-02-05 08:36:12 UTC
maybe 'source /etc/profile' not done? if you emerged gcc in the running shell that could be the problem
Comment 5 Paul Slinski 2005-02-05 09:02:16 UTC
Sorry Jan, no. I have rebooted since the rebuild.

Either the pdftk build is no good or the gcc build failed to place gcj in my path.
Comment 6 Paul Slinski 2005-02-06 16:38:56 UTC
OK, it would appear that gcc-config (gcc-config-1.3.10-r1) either wasn't working properly and I was still using gcc-3.3.4 profile.

Running gcc-config 3.4.3 fixes the problem.

Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-02-12 06:44:10 UTC
All right, I asume it's not a problem in the ebuild.
Comment 8 mykhal 2006-03-21 14:30:59 UTC
Maybe following helps even though I'm dealing with gcc-3.4.5 ..
I have had the same problem (gcj not found). I created the symlinks, which gcc
ebuild has forgotten to create:

/usr/bin directory:

gcj -> gcj-3.4.5
gcjh -> gcjh-3.4.5

(change 3.4.5 to your gcc version)

..and then, the pdftk compilation started succesfully. Unfortunately, it failed later, but it's probably another problem.
Comment 9 Ian Guerit 2008-08-18 10:09:37 UTC
If the gcc symlinks weren't created automatically it is probably with good reason (hence why you may end of with build failure later) - make sure the selected profile is the one with the gcj use flag enabled

Check `gcc-config -l` and that the selected profile is the one you enabled the gcj use flag on, if not either switch profiles or re-emerge the profile you want to use


(In reply to comment #8)
> Maybe following helps even though I'm dealing with gcc-3.4.5 ..
> I have had the same problem (gcj not found). I created the symlinks, which gcc
> ebuild has forgotten to create:
> 
> /usr/bin directory:
> 
> gcj -> gcj-3.4.5
> gcjh -> gcjh-3.4.5
> 
> (change 3.4.5 to your gcc version)
> 
> ..and then, the pdftk compilation started succesfully. Unfortunately, it failed
> later, but it's probably another problem.
>