Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217220 - dev-java/java-gnome-4.0.6 fails to build
Summary: dev-java/java-gnome-4.0.6 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-10 20:57 UTC by Vladimir G. Ivanovic
Modified: 2009-07-27 11:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,4.84 KB, text/plain)
2008-04-10 20:58 UTC, Vladimir G. Ivanovic
Details
build log (build.log,16.61 KB, text/plain)
2008-04-10 20:59 UTC, Vladimir G. Ivanovic
Details
.config (.config,2.32 KB, text/plain)
2008-04-14 00:24 UTC, Vladimir G. Ivanovic
Details
V=1 emerge =java-gnome-4.0.6 (build.log,480.16 KB, text/plain)
2008-04-14 00:25 UTC, Vladimir G. Ivanovic
Details
cd /var/tmp/portage/dev-java/java-gnome-4.0.6/work/java-gnome-4.0.6; V=1 make (b2,254.83 KB, text/plain)
2008-04-14 00:32 UTC, Vladimir G. Ivanovic
Details
V=1 FEATURES="-ccache" emerge =java-gnome-4.0.6 | tee /tmp/build.log (build.log,859.93 KB, text/plain)
2008-04-14 00:55 UTC, Vladimir G. Ivanovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir G. Ivanovic 2008-04-10 20:57:23 UTC
[...snip...]
GCC	generated/bindings/org/gnome/gtk/GtkNotebook.c
generated/bindings/org/gnome/gtk/GtkNotebook.c: In function 'Java_org_gnome_gtk_GtkNotebook_gtk_1notebook_1query_1tab_1label_1packing':
generated/bindings/org/gnome/gtk/GtkNotebook.c:1141: warning: passing argument 3 of '(*env)->ReleaseBooleanArrayElements' from incompatible pointer type
generated/bindings/org/gnome/gtk/GtkNotebook.c:1144: warning: passing argument 3 of '(*env)->ReleaseBooleanArrayElements' from incompatible pointer type
generated/bindings/org/gnome/gtk/GtkNotebook.c:1147: warning: passing argument 3 of '(*env)->ReleaseIntArrayElements' from incompatible pointer type
GCC	generated/bindings/org/gnome/gtk/GtkItem.c
gcc: : No such file or directory
gcc: no input files
make: *** [build-java] Error 1

Note: The file GtkItem.c *does* exist and has the same permissions as all other files in that directory:

  /var/tmp/portage/dev-java/java-gnome-4.0.6/work/java-gnome-4.0.6/generated/bindings/org/gnome/gtk:
  -rw-r--r--  1 portage portage   1598 Apr 10 13:37 GtkItem.c
Comment 1 Vladimir G. Ivanovic 2008-04-10 20:58:40 UTC
Created attachment 149342 [details]
emerge --info
Comment 2 Vladimir G. Ivanovic 2008-04-10 20:59:56 UTC
Created attachment 149344 [details]
build log
Comment 3 Andrew Cowie 2008-04-11 01:29:13 UTC
Um. Whoa. Weird.

Two things to do:

In /var/tmp/portage/dev-java/java-gnome-4.0.6/work/java-gnome-4.0.6/ you'll find a file called .config Can you attach it here? (it's the output of ./configure running) I'm not sure it'll tell me anything we don't already know, but with GCC of all things misbehaving...

Then, as a diagnostic, hop into /var/tmp/portage/dev-java/java-gnome-4.0.6/work/java-gnome-4.0.6/ and manually run

# V=1 make

and see what it says. It should resume at compiling that C file; the actual command being executed will be shown. That might prove insightful. Or not :|

AfC
Comment 4 Vladimir G. Ivanovic 2008-04-14 00:24:01 UTC
Created attachment 149633 [details]
.config
Comment 5 Vladimir G. Ivanovic 2008-04-14 00:25:23 UTC
Created attachment 149635 [details]
V=1 emerge =java-gnome-4.0.6
Comment 6 Vladimir G. Ivanovic 2008-04-14 00:32:23 UTC
Created attachment 149636 [details]
cd /var/tmp/portage/dev-java/java-gnome-4.0.6/work/java-gnome-4.0.6; V=1 make
Comment 7 Vladimir G. Ivanovic 2008-04-14 00:41:33 UTC
(In reply to comment #3)
> Um. Whoa. Weird.
> 
> Two things to do:
> 
> In /var/tmp/portage/dev-java/java-gnome-4.0.6/work/java-gnome-4.0.6/ you'll
> find a file called .config Can you attach it here? (it's the output of
> ./configure running) I'm not sure it'll tell me anything we don't already know,
> but with GCC of all things misbehaving...
> 
> Then, as a diagnostic, hop into
> /var/tmp/portage/dev-java/java-gnome-4.0.6/work/java-gnome-4.0.6/ and manually
> run
> 
> # V=1 make
> 
> and see what it says. It should resume at compiling that C file; the actual
> command being executed will be shown. That might prove insightful. Or not :|
> 
> AfC
> 

Not. The failed command from the emerge and the equivalent command from the manual build are identical. <sigh>.

I am going to try without CCache.

I have uploaded the info you requested.

BTW, the emerge proceeds normally once all the files have been compiled. I interrupted the manual compile sometime after it had compiled GtkItem.c, and the restarted emerge stopped again (same error) at another file.

There seem to be a number of errors at the beginning of the build.log file, but none involving GtkItem.{c,java}. 
Comment 8 Vladimir G. Ivanovic 2008-04-14 00:55:25 UTC
Created attachment 149641 [details]
V=1 FEATURES="-ccache" emerge =java-gnome-4.0.6 | tee /tmp/build.log
Comment 9 Vladimir G. Ivanovic 2008-04-14 00:57:03 UTC
Works without CCache. I've attached the output of
  V=1 FEATURES="-ccache" emerge =java-gnome-4.0.6
Comment 10 Andrew Cowie 2008-04-14 01:34:40 UTC
Hm. ccahce. We've had problems with that on other distros. Actually, if you look closely at the one the worked, you'll see that it used ccache anyway:

/usr/bin/ccache /usr/bin/gcc 

because java-gnom's build is smart enough to see if it is there and use it if it is. The builds that failed for you seemed to be FEATURES=ccache, which invoked the compiler as:

/usr/lib/ccache/bin/gcc 

which, although it is supposed to work, has caused problems elsewhere [Debian]. I don't really know why. That said, it worked for several hundred files, so why it suddenly didn't work for one is a tad bizarre.

I don't run FEATURES=ccache here (unless one is recompiling the same package all the time, what's the point?) but I'll see if I can duplicate this so I can work out a change to suggest for java-gnome 4.0.7

AfC
Comment 11 Andrew Cowie 2008-04-14 01:43:03 UTC
... but running just

/usr/lib/ccache/bin/gcc 

or

/usr/bin/ccache /usr/lib/ccache/bin/gcc 

as my compiler by hacking it manually doesn't replicate the problem you experienced. Hm.

AfC
Comment 12 Serkan Kaba (RETIRED) gentoo-dev 2009-07-27 11:32:40 UTC
4.0.6 removed from tree. Please reopen if the issue can be reproduced with the in tree versions.