Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7099 - kaffe can't compile on newest
Summary: kaffe can't compile on newest
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL: http://vegai.cjb.net/kaffe.log
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-27 03:11 UTC by Vesa Kaihlavirta
Modified: 2003-06-29 05:06 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 Vesa Kaihlavirta 2002-08-27 03:11:52 UTC
I have two boxes, one has gcc 3.1.1, other gcc 3.2. The kaffe in portage and  
in CVS fails to compile on both.  
  
build log in URL.
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-08-28 07:01:49 UTC
This is suspicious:

gcc -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include -I../kaffevm
-I./../kaffevm -DKAFFEH  -DKVER='"1.0.7-rc1"'
-I/var/tmp/portage/kaffe-1.0.7_rc1-r1/work/kaffe-1.0.7-rc1/./kaffe/kaffevm
-I/var/tmp/portage/kaffe-1.0.7_rc1-r1/work/kaffe-1.0.7-rc1/./kaffe/kaffevm/systems/unix-jthreads
-I../../config -I../../include  -I/usr/local/include  -march=i686 -O3 -pipe
-Wall -Wstrict-prototypes -c inflate.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory

Why does it include /usr/local/include ? Have you installed your compiler in
/usr/local/include ? Do you use our gcc-3.2, or one of your own design ?

If the latter, please test with our gcc-3.2
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-09-03 07:34:53 UTC
I've had a few of the other developers try to reproduce this one, and nobody
seem to be able to. It would appear that your glibc-installation may be defective. 

Either your glibc header files in /usr/include are bogus, or you have some
C-like header files in /usr/local/include that are included for some reason. 

You could try using qpkg -mc glibc-<yourinstalledversion> to see if all the
installed files have correct mtimes and md5sums. If not, I'd advise you to
reinstall glibc.

If that doesn't help, try figuring out which files are included by using gcc's
-E option:

gcc -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include -I../kaffevm
-I./../kaffevm -DKAFFEH  -DKVER='"1.0.7-rc1"'
-I/var/tmp/portage/kaffe-1.0.7_rc1-r1/work/kaffe-1.0.7-rc1/./kaffe/kaffevm
-I/var/tmp/portage/kaffe-1.0.7_rc1-r1/work/kaffe-1.0.7-rc1/./kaffe/kaffevm/systems/unix-jthreads
-I../../config -I../../include  -I/usr/local/include  -march=i686 -O3 -pipe
-Wall -Wstrict-prototypes -E jar.c

from the directory
/var/tmp/portage/kaffe-1.0.7_rc1-r1/work/kaffe-1.0.7-rc1/kaffe/kaffeh

As nobody else seem to be able to reproduce this bug, I'm closing it for now. If
you figure out what causes it, please don't hesitate to reopen this bug.


Comment 3 Vesa Kaihlavirta 2002-09-03 08:13:50 UTC
Ah, I solved it (kinda). If there is /usr/local/include/, even without
any files in it, kaffe ebuild fails.

Also see this thread from kaffe@kaffe.org:
http://www.kaffe.org/pipermail/kaffe/2002-August/008827.html
Comment 4 Matthew Kennedy (RETIRED) gentoo-dev 2002-09-03 14:04:03 UTC
karl,

i'll reopen this. and apply mandrake's confugure.in patch for
/usr/local/include. there's also a new version of kaffe i'll update.

matt
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2002-09-03 15:18:54 UTC
okay i've underestimated this one.. might take me a while. :)
Comment 6 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-09-06 15:07:15 UTC
I'll punt this to you Matt. If I get the time this weekend, I'll fix it myself,
but don't count on it.
Comment 7 Ole Tange 2002-12-19 10:16:58 UTC
This workaround seems to work for me: 
 
mv /usr/local/include /usr/local/include- 
emerge kaffe 
mv /usr/local/include- /usr/local/include 
 
Comment 8 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-06-29 04:14:52 UTC
I don't think that is a workarond we're ready to go for in the ebuild:)
Comment 9 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-06-29 05:06:23 UTC
kaffe-1.1.0 is now available for testing; I've not particularily tested that the /usr/local/include problem is fixed, but from cursory inspection it appears to be.

Please give it a whirl (remember USE="~x86"), and reopen this bug if the problem persists.