On 21 Feb 2010, at 22:56, Michael P. Soulier wrote:
So, I need pdftk to build some documents, so I emerge it and it
tells me that
I need to update my USE flags and rebuild gcc with gcj support.
So, I do. I added gcj to my global make.conf and ran the emerge, and
gcc was
rebuilt.
Installing (1 of 2) sys-devel/gcc-4.3.4
* The current gcc config appears valid, so it will not be
* automatically switched for you. If you would like to
* switch to the newly installed gcc version, do the
* following:
* gcc-config i686-pc-linux-gnu-4.3.4
* source /etc/profile
* No profile selected, unable to utilize --use-old
* If you have issues with packages unable to locate libstdc++.la,
* then try running 'fix_libtool_files.sh' on the old gcc versions.
But now pdftk fails to build because there's no gcj command.
make[2]: Entering directory
`/var/tmp/portage/app-text/pdftk-1.41-r1/work/pdftk-1.41/java_libs/
com/lowagie/text'
gcj -O2 -march=athlon-xp -pipe -w --encoding=UTF-8
--classpath="/var/tmp/portage/app-text/pdftk-1.41-r1/work/pdftk-1.41/
java_libs"
-c Anchor.java -o Anchor.o
/bin/sh: gcj: command not found
make[2]: *** [Anchor.o] Error 127
I'm confused.
It's using the old version of gcc, because you haven't told it to use
the new version.
The output you posted specifically told you to run:
gcc-config i686-pc-linux-gnu-4.3.4
source /etc/profile
Stroller.