Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 130260

Summary: gcc-4.1.0 with USE=gcj requires pangoft2
Product: Gentoo Linux Reporter: Guillaume Pujol <guillp.ml>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED WONTFIX    
Severity: major CC: andrei.ivanov
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Guillaume Pujol 2006-04-17 07:40:51 UTC
Hi,

When I try to emerge an unmasked gcc-4.1.0 using USE=gcjin a 2006.0 stage 1 or 2 environnement, it fails during a ./configure by the end of the compile time, looking for pangoft2:

...
checking for egrep... grep -E
checking for X... no
checking for pkg-config... /usr/bin/pkg-config
checking for pangoft2... Package pangoft2 was not found in the pkg-config search path. Perhaps you should add the directory containing `pangoft2.pc' to the PKG_CONFIG_PATH environment variable No package 'pangoft2' found
configure: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
make[2]: *** [configure-target-libjava] Erreur 1
make[2]: quittant le r
Comment 1 Guillaume Pujol 2006-04-17 07:40:51 UTC
Hi,

When I try to emerge an unmasked gcc-4.1.0 using USE=gcjin a 2006.0 stage 1 or 2 environnement, it fails during a ./configure by the end of the compile time, looking for pangoft2:

...
checking for egrep... grep -E
checking for X... no
checking for pkg-config... /usr/bin/pkg-config
checking for pangoft2... Package pangoft2 was not found in the pkg-config search path. Perhaps you should add the directory containing `pangoft2.pc' to the PKG_CONFIG_PATH environment variable No package 'pangoft2' found
configure: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
make[2]: *** [configure-target-libjava] Erreur 1
make[2]: quittant le répertoire « /var/tmp/portage/gcc-4.1.0/work/build »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /var/tmp/portage/gcc-4.1.0/work/build »
make: *** [profiledbootstrap] Erreur 2

!!! ERROR: sys-devel/gcc-4.1.0 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  ebuild.sh, line 1242:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1459:   Called gcc_do_make
  toolchain.eclass, line 1321:   Called die


pangoft2 comes with x11-libs/pango, but it's not present since I don't have X nor pango emerged yet.
I followed these steps:
1. Unpacked a 2006.0 stage 1 and chrooted in, sync'ed Portage, configured some files
2. Unmasked gcc-4.1.0
3. # USE=gcj emerge --nodeps gcc => fails on this error
4. # USE=-gcj emerge --nodeps gcc => success
5. # cd /usr/portage && scripts/bootstrap.sh => sucess
6. # USE=gcj emerge -e system: fails the same way
7. # USE=-gcj emerge --resume: success

When using USE=-gcj, gcc-4.1.0 emerge successfully.

My emerge --info:
Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 mobile AMD Athlon(tm) XP-M (LV) 3000+
Gentoo Base System version 1.12.0_pre17
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -mtune=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -mtune=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bzip2 cli crypt ctype cups dba doc dri eds emboss encode esd expat fastbuild foomaticdb force-cgi-redirect fortran ftp gd gif gnome gpm gstreamer gtk gtk2 imlib isdnlog jpeg kde libg++ libwww mad memlimit mikmod minimal motif mp3 mpeg ncurses nls nocxx nptl ogg opengl oss pam pcre pdflib perl png posix pppd python qt quicktime readline sdl session simplexml soap sockets spell spl ssl tcpd tokenizer truetype truetype-fonts type1-fonts udev unicode vorbis xml xmms xsl xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY

# grep gcc /etc/portage/package.use
sys-devel/gcc -fortran -gtk doc gcj

So, if pango is really mandatory for gcj, I think it should come in as a dependancy.
Looking at the ebuild, it is already a dependancy, but only when the "gtk" USE flag is set. See the RDEPEND below, taken from gcc-4.1.0.ebuild in the Portage tree:

!build? (
        gcj? (
            gtk? (
                || ( ( x11-libs/libXt x11-libs/libX11 x11-libs/libXtst x11-proto/xproto x11-proto/xextproto ) virtual/x11 )
                >=x11-libs/gtk+-2.2
                x11-libs/pango
            )
            >=media-libs/libart_lgpl-2.1
        )
        >=sys-libs/ncurses-5.2-r2
        nls? ( sys-devel/gettext )
    )


Regards,

Guillaume
Comment 2 Andrés Becerra Sandoval 2006-04-19 07:54:43 UTC
My results are different in an intel box, when I try to emerge gcc-4.1.0 using USE=gcj the configure scripts works ok (maybe because pango is installed in my system).

The problem I get is that compilation consumes all the ram, and make ends before time in libjava/classpath.

Without gcj in USE flags I was able to emerge gcc-4.1.0.
Comment 3 SpanKY gentoo-dev 2006-04-22 23:16:00 UTC
not supported

if you started from a stage3 it'd work fine
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-26 02:53:57 UTC
*** Bug 134384 has been marked as a duplicate of this bug. ***