Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224707 - dev-java/java-gnome-4.0.{5,6,7} compile failure: -Wno-int-to-pointer-cast
Summary: dev-java/java-gnome-4.0.{5,6,7} compile failure: -Wno-int-to-pointer-cast
Status: RESOLVED DUPLICATE of bug 194158
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-03 05:43 UTC by Colin Macdonald
Modified: 2008-12-21 20:04 UTC (History)
2 users (show)

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


Attachments
noIntPointerCastSwitch.patch (noIntPointerCastSwitch.patch,397 bytes, patch)
2008-06-03 06:38 UTC, Colin Macdonald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Macdonald 2008-06-03 05:43:43 UTC
compiling stops with the following error:
cc1: error: unrecognized command line option "-Wno-int-to-pointer-cast"
cc1: error: unrecognized command line option "-Wno-pointer-to-int-cast"

Here is the output for 4.0.7 but its basically the same for .5 and .6 as well:

>>> Compiling source in /var/tmp/portage/dev-java/java-gnome-4.0.7/work/java-gnome-4.0.7 ...

equivalence, v0.2
...configuring Java projects to build and run on Linux & Unix

Identify operating system:         Gentoo

Check for required jar files:
 - JUnit test framework            found

Check for required system libraries:
 - GNOME                           found

Check Java compilers:
 - Sun javac                       works
 - Sun javah                       found
 - Sun jar                         works
 - Sun javadoc                     found

Check Java virtual machines:
 - Sun java VM                     works

Check native compiler:
 - GNU gcc                         works

Select compiler:                   javac
Select runtime:                    java
Write .config file:                ok

MKDIR	tmp/stamp/
MKDIR	generated/bindings/
MKDIR	tmp/bindings/
MKDIR	tmp/generator/
MKDIR	tmp/objects/
MKDIR	tmp/include/
MKDIR	tmp/tests/
JAVAC	src/generator/*.java
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
JAVA	BindingsGenerator
JAVAC	src/bindings/*.java, generated/bindings/*.java
CP	tmp/bindings/typeMapping.properties
JAR	tmp/gtk-4.0.jar
JAVAH	tmp/include/*.h
MKDIR	tmp/objects/org/freedesktop/bindings
GCC	src/bindings/org/freedesktop/bindings/Internationalization.c
cc1: error: unrecognized command line option "-Wno-int-to-pointer-cast"
cc1: error: unrecognized command line option "-Wno-pointer-to-int-cast"
make: *** [build-java] Error 1
 * 
 * ERROR: dev-java/java-gnome-4.0.7 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3717:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "Compilation of java-gnome failed";
 *  The die message:
 *   Compilation of java-gnome failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-java:java-gnome-4.0.7:20080603-054051.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/java-gnome-4.0.7/temp/environment'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.06"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info


emerge --info
Portage 2.1.5.3 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.7-r2, 2.6.25.4 i686)
=================================================================
System uname: 2.6.25.4 i686 Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz
Timestamp of tree: Mon, 02 Jun 2008 19:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/local/temp-gentoo-distfiles"
FEATURES="collision-protect distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.netnitco.net"
LDFLAGS=""
MAKEOPTS="-j4"
PKGDIR="/mnt/aconite-gentoo-packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://aconite/gentoo-portage"
USE="X Xaw3d a52 aac aalib acpi alsa apache2 audiofile avahi berkdb blas bzip2 cairo cdr cjk cli cracklib crypt cups curl dbus dga dri dts dv dvb dvd dvdr emboss encode esd exif expat f77 faad fam fbcon ffmpeg fftw firefox flac fortran gcj gd gdbm gif ginac glut gmp gnome gnome-keyring gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv idn imagemagick imlib isdnlog jack java jpeg lapack latex lcms leim libcaca libnotify libsamplerate lirc live mad matroska midi mikmod mmap mmx mng mono mozilla mp3 mpeg mudflap mysql nas ncurses networkmanager nls nptl nptlonly objc offensive ogg openal opengl openmp oss pam pcmcia pcre pdf perl plotutils png ppds pppd pulseaudio python qhull qt3 quicktime radeon readline reflection rtc samba scanner sdk sdl session slang sndfile speex spell spl sqlite sse ssl startup-notification svg tcl tcltk tcpd theora threads tiff tk truetype unicode usb v4l v4l2 vcd vorbis win32codecs wmf wxwindows x264 x86 xinerama xml xorg xosd xv xvid zeroconf zlib" ALSA_CARDS="intel8x0 intel8x0m usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="realmagic" USERLAND="GNU" VIDEO_CARDS="i810 fbdev mach64 radeon v4l vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Colin Macdonald 2008-06-03 06:38:27 UTC
Created attachment 155333 [details, diff]
noIntPointerCastSwitch.patch

a quick sed fix to remove the -Wno* command-line options.
Comment 2 Andrew Cowie 2008-06-03 08:25:13 UTC
GCC >= 4.0 is required.

Yes, I suppose we could check for that in our configure, but I thought someone had put that into the .ebuild. Whatever.

Frankly, if you're interested enough to be trying to debug build system problems, then really, I would encourage you to be contributing to the upstream project. Fixing things in packages is nice and all, but doesn't help anyone not using the package or who is using a different distro.

AfC
Comment 3 Colin Macdonald 2008-06-03 18:30:19 UTC
But I'm using gcc 4.2.4...

The patch was just a kludge to make it compile on my machine, I don't know if its the right fix for the problem.  If it is, by all means please apply it upstream.
Comment 4 Andrew Cowie 2008-06-04 01:02:23 UTC
Really?

> emerge --info
> Portage 2.1.5.3 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.7-r2,
> 2.6.25.4 i686)


AfC
Comment 5 Colin Macdonald 2008-06-05 04:20:30 UTC
gah, I was swapping compilers back and forth when debugging #224281, must've messed up and thought I was on 4.2

Sorry for the noise, closing invalid.
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2008-07-09 09:02:27 UTC
(In reply to comment #5)
> gah, I was swapping compilers back and forth when debugging #224281, must've
> messed up and thought I was on 4.2
> 
> Sorry for the noise, closing invalid.
> 

hardened profiles are still using 3.* compilers so reopening until we at least package.mask java-gnome on profiles where gcc-4* is not available
Comment 7 Serkan Kaba (RETIRED) gentoo-dev 2008-12-21 20:04:48 UTC

*** This bug has been marked as a duplicate of bug 194158 ***