Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] building pdftk (needs gcj)
Date: Mon, 22 Feb 2010 00:06:04
Message-Id: 269821AD-DF0C-4A83-AC31-E50FCE473330@stellar.eclipse.co.uk
In Reply to: [gentoo-user] building pdftk (needs gcj) by "Michael P. Soulier"
1 On 21 Feb 2010, at 22:56, Michael P. Soulier wrote:
2
3 > So, I need pdftk to build some documents, so I emerge it and it
4 > tells me that
5 > I need to update my USE flags and rebuild gcc with gcj support.
6 >
7 > So, I do. I added gcj to my global make.conf and ran the emerge, and
8 > gcc was
9 > rebuilt.
10 >
11 >>>> Installing (1 of 2) sys-devel/gcc-4.3.4
12 > * The current gcc config appears valid, so it will not be
13 > * automatically switched for you. If you would like to
14 > * switch to the newly installed gcc version, do the
15 > * following:
16 >
17 > * gcc-config i686-pc-linux-gnu-4.3.4
18 > * source /etc/profile
19 >
20 > * No profile selected, unable to utilize --use-old
21 >
22 > * If you have issues with packages unable to locate libstdc++.la,
23 > * then try running 'fix_libtool_files.sh' on the old gcc versions.
24 >
25 > But now pdftk fails to build because there's no gcj command.
26 >
27 > make[2]: Entering directory
28 > `/var/tmp/portage/app-text/pdftk-1.41-r1/work/pdftk-1.41/java_libs/
29 > com/lowagie/text'
30 > gcj -O2 -march=athlon-xp -pipe -w --encoding=UTF-8
31 > --classpath="/var/tmp/portage/app-text/pdftk-1.41-r1/work/pdftk-1.41/
32 > java_libs"
33 > -c Anchor.java -o Anchor.o
34 > /bin/sh: gcj: command not found
35 > make[2]: *** [Anchor.o] Error 127
36 >
37 > I'm confused.
38
39 It's using the old version of gcc, because you haven't told it to use
40 the new version.
41
42 The output you posted specifically told you to run:
43
44 gcc-config i686-pc-linux-gnu-4.3.4
45
46 source /etc/profile
47
48 Stroller.

Replies

Subject Author
Re: [gentoo-user] building pdftk (needs gcj) "Michael P. Soulier" <msoulier@×××××××××××××.ca>