Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436522 - dev-java/swt-3.7.2 & dev-java/swt-4.2 fail to compile
Summary: dev-java/swt-3.7.2 & dev-java/swt-4.2 fail to compile
Status: RESOLVED DUPLICATE of bug 432390
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-28 16:54 UTC by Hilco
Modified: 2012-09-28 17:34 UTC (History)
0 users

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 Hilco 2012-09-28 16:54:19 UTC
Both swt-3.7.2 and swt-4.2 complain about "toolchain-funcs.eclass: Kernel version could not be determined, please inherit kernel-2 or linux-info".

Reproducible: Always

Steps to Reproduce:
1. emerge =dev-java/swt-3.7.2 or emerge =dev-java/swt-4.2
2.
3.
Actual Results:  
Log output for dev-java/swt-3.7.2:

 * Package:    dev-java/swt-3.7.2
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        amd64 cairo consolekit elibc_glibc kernel_linux multilib opengl policykit userland_GNU webkit
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Using: icedtea-bin-7
>>> Unpacking source...
>>> Unpacking ./src.zip to /var/tmp/portage/dev-java/swt-3.7.2/work
>>> Source unpacked in /var/tmp/portage/dev-java/swt-3.7.2/work
>>> Preparing source in /var/tmp/portage/dev-java/swt-3.7.2/work ...
 * Applying as-needed-and-flag-fixes-3.6.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/swt-3.7.2/work ...
Rewriting attributes
Rewriting ./build.xml
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/swt-3.7.2/work ...
 * ERROR: dev-java/swt-3.7.2 failed (compile phase):
 *   toolchain-funcs.eclass: Kernel version could not be determined, please inherit kernel-2 or linux-info
 * 
 * Call stack:
 *     ebuild.sh, line   89:  Called src_compile
 *   environment, line 4185:  Called tc-arch
 *   environment, line 4324:  Called tc-ninja_magic_to_arch 'portage'
 *   environment, line 4626:  Called die
 * The specific snippet of code:
 *       [[ -z ${KV} ]] && die "toolchain-funcs.eclass: Kernel version could not be determined, please inherit kernel-2 or linux-info";
 * 
 * If you need support, post the output of `emerge --info '=dev-java/swt-3.7.2'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/swt-3.7.2'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-7  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.3.2"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/portage/logs/dev-java:swt-3.7.2:20120928-093358.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-java/swt-3.7.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/swt-3.7.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/swt-3.7.2/work'
 * S: '/var/tmp/portage/dev-java/swt-3.7.2/work'


Log output for dev-java/swt-4.2:

 * Package:    dev-java/swt-4.2
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        amd64 cairo consolekit elibc_glibc kernel_linux multilib opengl policykit userland_GNU webkit
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Using: icedtea-bin-7
>>> Unpacking source...
>>> Unpacking ./src.zip to /var/tmp/portage/dev-java/swt-4.2/work
>>> Source unpacked in /var/tmp/portage/dev-java/swt-4.2/work
>>> Preparing source in /var/tmp/portage/dev-java/swt-4.2/work ...
 * Applying swt-4.2-as-needed-and-flag-fixes.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/swt-4.2/work ...
Rewriting attributes
Rewriting ./build.xml
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/swt-4.2/work ...
 * ERROR: dev-java/swt-4.2 failed (compile phase):
 *   toolchain-funcs.eclass: Kernel version could not be determined, please inherit kernel-2 or linux-info
 * 
 * Call stack:
 *     ebuild.sh, line   89:  Called src_compile
 *   environment, line 4179:  Called tc-arch
 *   environment, line 4318:  Called tc-ninja_magic_to_arch 'portage'
 *   environment, line 4620:  Called die
 * The specific snippet of code:
 *       [[ -z ${KV} ]] && die "toolchain-funcs.eclass: Kernel version could not be determined, please inherit kernel-2 or linux-info";
 * 
 * If you need support, post the output of `emerge --info '=dev-java/swt-4.2'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/swt-4.2'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-7  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.3.2"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/portage/logs/dev-java:swt-4.2:20120928-093400.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-java/swt-4.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/swt-4.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/swt-4.2/work'
 * S: '/var/tmp/portage/dev-java/swt-4.2/work'


Expected Results:  
It should install.

Portage 2.2.0_alpha134 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.5.4-gentoo x86_64)
=================================================================
System uname: Linux-3.5.4-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-gentoo-2.2
Timestamp of tree: Fri, 28 Sep 2012 06:15:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo local
Installed sets: @filesystems, @fonts, @games, @kde, @printer, @software-development, @sound
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://gentoo.osuosl.org/ http://gentoo.netnitco.net/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.arcticnetwork.ca/ http://gentoo.gossamerhost.com/ http://mirror.the-best-hosting.net/ http://mirror.csclub.uwaterloo.ca/ "
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en nl en_US es zh_CN zh_TW"
MAKEOPTS="-j1"
PKGDIR="/var/portage/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="/var/portage"
PORTDIR_OVERLAY="/var/portage/local"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo caps cdda cdr cli consolekit cracklib cups cxx dbus declarative dri dvd dvdr emboss encode exif fam firefox gdbm gif gpm gtk hardened iconv icu ipv6 jpeg kde kipi lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nptl ogg opengl pam pango pcre pdf phonon plasma png policykit ppds pppd pulseaudio qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vorbis webkit2 wxwidgets xattr xcb xcomposite xinerama xml xv xvid zlib" ALSA_CARDS="hda-intel usb-audio" 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="authz_host autoindex dir env headers info mime proxy proxy_http rewrite actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_owner authz_user cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate disk_cache dumpio expires ext_filter file_cache filter ident imagemap include log_config log_forensic logio mem_cache mime_magic negotiation proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_scgi reqtimeout setenvif speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" 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="evdev virtualbox" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en nl en_US es zh_CN zh_TW" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia virtualbox" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2012-09-28 17:34:54 UTC

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