Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gettext-0.12.1-r2 fails to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Sun Oct 10, 2004 4:40 am    Post subject: gettext-0.12.1-r2 fails to build Reply with quote

Code:

error: /etc//cpuinfo/ file is missing.. exiting. make[3]: *** [gnu/gettext/GettextResource.class] Error 1
make[3]: Leaving directory `/var/tmp/portage/gettext-0.12.1-r2/work/gettext-0.12.1/gettext-runtime/intl-java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gettext-0.12.1-r2/work/gettext-0.12.1/gettext-runtime'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/gettext-0.12.1-r2/work/gettext-0.12.1/gettext-runtime'
make: *** [all-recursive] Error 1


!!! ERROR: sys-devel/gettext-0.12.1-r2 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! (no error message)


Has anyone else had problems with gettext recently? What exactly is a /etc/cpuinfo and how come I don't have it?
_________________
The Real OTW
"Blue skies and high fives"
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Mon Oct 11, 2004 7:13 am    Post subject: Reply with quote

Yes I did, when I updated it. The problem was related
to the version of the jre (Java RunTime environment)
installed and selected by java-config.
I am using both ibm-jdk and ibm-jre. At one point I
installed ibm-jre-bin-1.4.2, which was and still is in ~ppc,
and then downgraded on 1.4.1 but the jre wasn't selected
properly and still pointing to 1.4.2. Using java-config
with the appropriate command solved the problem,
I am inclined to think that your problem is also java related so
you should use java-config to see what versions of java
you have installed (jdk and jre) and check that they are
setup properly.

Cheers,
Francois
Back to top
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Fri Dec 03, 2004 12:40 am    Post subject: Reply with quote

I hate to bring this thing back from the dead but I just didn't have time to try and fix this problem and finsh my 'emerge -uDav world' till now.

I don't really understand what you're driving at here other than the possabilty this build error is caused by a java misconfiguration. I tried emerging ibm-jre-bin to see if that would help but the problem still remains.

Ideas?
_________________
The Real OTW
"Blue skies and high fives"
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Fri Dec 03, 2004 12:58 am    Post subject: Reply with quote

The java misconfiguration is precisely what I am imaing at.
If you look at the error generated:
Code:
error: /etc//cpuinfo/ file is missing.. exiting. make[3]: *** [gnu/gettext/GettextResource.class] Error 1
make[3]: Leaving directory `/var/tmp/portage/gettext-0.12.1-r2/work/gettext-0.12.1/gettext-runtime/intl-java'

You can see that the failure is when gettext tries to build its hooks
for java. When I had the problem, the java-config utility had set
my jre and may be my jdk, to be in a non-existant directory (pointing to a version of
the jre and jdk that wasn't installed anymore). Because of this
misconfiguration gettext couldn't find some files and build.
Which is looking like what is happening to you. Re-emerging the
jre and jdk won't necessarilly change the settings from java-config
so you should check them by hand and if they are not correct
change them to sane settings. java-config --help should
give you some pointers.

Hope you get things sorted.
Cheers,
Francois
Back to top
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Fri Dec 03, 2004 2:19 am    Post subject: Reply with quote

Okay, I'm following you now. I just can't figure out how to use java-config. I think it's a problem with the path for jre.

Code:
root@iBook loki # emerge -pv ibm-jre-bin ibm-jdk-bin

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-java/ibm-jre-bin-1.4.2  +mozilla  75,397 kB
[ebuild   R   ] dev-java/ibm-jdk-bin-1.4.1-r2  +X +doc -javacomm +mozilla  105,860 kB

Total size of downloads: 181,258 kB

root@iBook loki # java-config --jre-home

root@iBook loki # java-config --jdk-home
/opt/ibm-jdk-bin-1.4.1
root@iBook loki # ls -l /opt
total 0
drwxr-xr-x  6 root root 352 Sep 10 14:12 OpenOffice.org
drwxr-xr-x  7 root root 168 Jul 28 14:35 ibm-jdk-bin-1.4.1
drwxr-xr-x  4 root root  96 Dec  1 19:28 ibm-jre-bin-1.4.2
root@iBook loki # java-config -l   
root@iBook loki #


It seems the problem is two-fold. One, java-config doesn't know where to find the freshly installed jre and two java-config had no idea those packages are even installed (as noted with the 'java-config -l'). By the way the manfile for java-config sucks. :P

It's been one of those days.
_________________
The Real OTW
"Blue skies and high fives"
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Fri Dec 03, 2004 3:12 am    Post subject: Reply with quote

OK I really hope I have your problem pined down :? .

First lets look at "java-config -L" for me it gives:
Code:
java-config -L
[ibm-jre-bin-1.4.2] "IBM JRE 1.4.2" (/etc/env.d/java/20ibm-jre-bin-1.4.2) *
[ibm-jdk-bin-1.4.1] "IBM JDK 1.4.1" (/etc/env.d/java/20ibm-jdk-bin-1.4.1)

The star on on the end of the first line indicate the java VM that
is set. If you have installed both the jdk and the jre they both
should show the star is probably in a different place or absent
(my personal feeling).
If I am not mistaken (I did this only once and remotely from
Australia while the concerned computer is in New Zealand) next
you should enter the following:
Code:
java-config -S ibm-jre-bin-1.4.2

Once it is done follow the instructions for updating your
environment variables and try emerging again. Hopefully I was
right about your problem in the first place!
Back to top
View user's profile Send private message
iTux
Guru
Guru


Joined: 07 Sep 2004
Posts: 586
Location: Toronto

PostPosted: Fri Dec 03, 2004 3:32 am    Post subject: Reply with quote

Hi,

Do you have /etc/cpuinfo?

Its content is:
Code:

cpu             : 604e


Or better re-emerge the IBM JVM or change to a non-IBM JVM if possible (blackdown top to 1.3...).

The IBM jit compiler will check the CPU and will segfault if it does not see a IBM CPU. So this file is a hack to get around this problem and /etc/cpuinfo should have been installed by the ebuild.


iTux
Back to top
View user's profile Send private message
iTux
Guru
Guru


Joined: 07 Sep 2004
Posts: 586
Location: Toronto

PostPosted: Fri Dec 03, 2004 3:37 am    Post subject: Reply with quote

Try:
cp /usr/portage/dev-java/ibm-jdk-bin/files/cpuinfo /etc


iTux
Back to top
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Fri Dec 03, 2004 3:39 am    Post subject: Reply with quote

Exactly right! Oh man, thank you, thank you.

I'm not to good with this java stuff but I needed to do the 'java-config -S' to set things up right. Gettext was emerged!

Once, again thanks.
_________________
The Real OTW
"Blue skies and high fives"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum