Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436714 - net-misc/tigervnc-1.2.0 - javac: invalid source release: 1.7 /// make[2]: *** [java/com/tigervnc/vncviewer/CConn.class] Error 2
Summary: net-misc/tigervnc-1.2.0 - javac: invalid source release: 1.7 /// make[2]: ***...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Raúl Porcel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-30 20:43 UTC by pierre
Modified: 2012-11-05 12:10 UTC (History)
0 users

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


Attachments
build.log (build.log,158.42 KB, text/plain)
2012-09-30 20:45 UTC, pierre
Details
environment file (environment,190.21 KB, text/plain)
2012-09-30 20:45 UTC, pierre
Details
java 1.7 build fix (java7.patch,596 bytes, patch)
2012-10-06 11:37 UTC, Uroš Vampl
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pierre 2012-09-30 20:43:22 UTC
emerge =net-misc/tigervnc-1.2.0 fails :

...
[ 56%] Built target fltk_static
make[1]: Leaving directory `/var/tmp/portage/net-misc/tigervnc-1.2.0/work/tigervnc-1.2.0'
make: *** [all] Error 2
* ERROR: net-misc/tigervnc-1.2.0 failed (compile phase):
*   emake failed
...
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""



emerge --info '=net-misc/tigervnc-1.2.0' gives :
Portage 2.1.11.9 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r2, 3.4.9-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.9-gentoo-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-58-with-gentoo-2.2
Timestamp of tree: Sun, 30 Sep 2012 19:00:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.8, 2.7.3-r2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo pierre
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ "
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr en fr_FR en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/local/packages/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/pierre"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 ati bash-completion berkdb bzip2 cairo ccache cdr cli consolekit cracklib crypt cxx dbus dga dri dvd exif ffmpeg flac fontconfig fortran gallium gdbm gif gimp gpm gstreamer gtk iconv imagemagic ipv6 java java6 jpeg jpeg2k lcms libnotify lm_sensors loop-aes lxde mikmod mmx mmxext modules mp3 mpeg mudflap multilib ncurses networkmanager nls nptl ogg opengl openmp pam pcre pdf png policykit pppd radeon raw readline sdl session smp sqlite sse sse2 ssl startup-notification svg tcpd thunar tiff truetype udev unicode usb v4l v4l2 vim-syntax vorbis wifi x264 xfce xinerama xml xml2 xpm xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr en fr_FR en_US" LIRC_DEVICES="packard_bell" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="ati radeon r300" XFCE_PLUGINS="logout clock brightness" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 pierre 2012-09-30 20:45:21 UTC
Created attachment 325416 [details]
build.log
Comment 2 pierre 2012-09-30 20:45:53 UTC
Created attachment 325418 [details]
environment file
Comment 3 pierre 2012-09-30 21:10:25 UTC
I disabled cc_cache and got a different error : 


javac: invalid source release: 1.7

make[2]: *** [java/com/tigervnc/vncviewer/CConn.class] Error 2

java-config -L
The following VMs are available for generation-2:
*)	Sun JDK 1.6.0.35 [sun-jdk-1.6]
2)	Sun JRE 1.6.0.35 [sun-jre-bin-1.6]

eselect java-vm list
Available Java Virtual Machines:
  [1]   sun-jdk-1.6  system-vm
  [2]   sun-jre-bin-1.6 

equery -i "sun*" gives :
[IP-] [  ] dev-java/sun-jce-bin-1.6.0:1.6
[IP-] [  ] dev-java/sun-jdk-1.6.0.35:1.6
[IP-] [  ] dev-java/sun-jre-bin-1.6.0.35:1.6

javac -version
javac 1.6.0_35


I'm not familiar with java. But it sounds like a "--disable-bootstrap" issue..??
Comment 4 Michael Baer 2012-10-01 10:34:57 UTC
Pierre, this seems to be a problem with your selected JDK.

I had have exactly the same problem here.

I switched from __IcedTea JDK 6.1.11.4 [icedtea-bin-6]__ to __IcedTea JDK 7.2.3.2 [icedtea-7]__ and successfully re-emerged tigervnc.
Comment 5 Uroš Vampl 2012-10-06 11:37:55 UTC
Created attachment 325788 [details, diff]
java 1.7 build fix

Either compile with java 1.6 or apply the attached patch.
Comment 6 jannis 2012-11-03 12:14:14 UTC
still broken? one machine just emerged tigervnc-1.2.0 fine with java 1.7
Comment 7 pierre 2012-11-05 12:10:59 UTC
sorry for my late answer....

I installed oracle-jre/jdk-1.7.0.9

tigervnc now emerged just fine too...
thanks