Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 365503

Summary: dev-java/jarjar-0.9 fails to compile (on reiser4).
Product: Gentoo Linux Reporter: dE <de.techno>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: THE log

Description dE 2011-05-01 05:58:24 UTC
Attached build log.

Reproducible: Always
Comment 1 dE 2011-05-01 05:59:01 UTC
Created attachment 271715 [details]
THE log
Comment 2 Serkan Kaba (RETIRED) gentoo-dev 2011-05-01 06:11:34 UTC
I can't reproduce the issue, which ant version are you using?
Comment 3 dE 2011-05-01 06:13:14 UTC
1.8.1

Portage 2.2.0_alpha30 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.11.3-r0, 2.6.37.5-zen x86_64)
=================================================================
System uname: Linux-2.6.37.5-zen-x86_64-AMD_Athlon-tm-_64_X2_Dual-Core_Processor_TK-55-with-gentoo-2.0.2
Timestamp of tree: Sun, 17 Apr 2011 15:00:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.38
virtual/os-headers:  0
Repositories: gentoo sunrise proaudio x11 mozilla x-dev-tree
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=n --complete-graph --binpkg-respect-use=y"
FEATURES="assume-digests binpkg-logs candy distlocks fail-clean fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/sunrise /var/lib/layman/pro-audio /var/lib/layman/x11 /var/lib/layman/mozilla /home/de/dev-tree"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 a53 aac aalib acc acpi adns alsa amd64 amr atm audiofile branding bzip2 cdr cli consolekit cracklib css cups custom-cflags custom-optimization dbus dbx dga dirac dri dts dv dvd dvdr emboss encode enscript exif ffmpeg firefox flac fortran gdu gif glut gmp gsm gstreamer gzip iconv icu imlib ipc jpeg jpeg2k kde ladspa lame lcms libedit libnotify libsamplerate libwww lzma lzo mad matroska matrox mikmod mime minimal mmap mmx mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack networkmanager nntp nocd nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp optimization osc pam pango pch pdf plasma png policykit posix ppds pppd qt3support qt4 quicktime raw readline schroedinger sharedmem shorten smp sndfile sockets socks5 speex spell sse sse2 startup-notification strong-optimization svg symlink sysfs taglib tcpd theora threads tiff toolame truetype twolame udev unicode usb vcd vhosts vorbis wavpack win32codecs wmf x264 xcb xine xinerama xml xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r300 r600" 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Serkan Kaba (RETIRED) gentoo-dev 2011-05-01 11:00:49 UTC
Can you try rebuilding java-getopt, if that still doesn't solve your problem please attach output of
unzip -l /usr/share/java-getopt-1/lib/gnu.getopt.jar
Comment 5 dE 2011-05-01 14:04:22 UTC
unzip -l /usr/share/java-getopt-1/lib/gnu.getopt.jar
Archive:  /usr/share/java-getopt-1/lib/gnu.getopt.jar
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  05-01-2011 19:23   META-INF/
      106  05-01-2011 19:23   META-INF/MANIFEST.MF
        0  05-01-2011 19:23   gnu/
        0  05-01-2011 19:23   gnu/getopt/
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle.properties
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle_cs.properties
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle_de.properties
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle_es.properties
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle_fr.properties
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle_hu.properties
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle_it.properties
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle_ja.properties
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle_nl.properties
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle_no.properties
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle_pl.properties
        0  05-01-2011 19:23   gnu/getopt/MessagesBundle_ro.properties
---------                     -------
      106                     16 files
Comment 6 Serkan Kaba (RETIRED) gentoo-dev 2011-05-01 14:06:54 UTC
(In reply to comment #5)
This is after rebuilding java-getopt, right? If so it looks like the classes aren't packed into jar.
Comment 7 Serkan Kaba (RETIRED) gentoo-dev 2011-05-01 14:10:30 UTC
(In reply to comment #6)
> (In reply to comment #5)
> This is after rebuilding java-getopt, right? If so it looks like the classes
> aren't packed into jar.

Can you also paste build log of java-getopt (compile it with FEATURES=keeptemp)
Comment 8 dE 2011-05-01 14:32:35 UTC
Yes.

I had removed the package, then I reinstalled so that pulled java-getopt, after that I recompiled java-getopt with the same problem.

Remember I've --with-bdeps=n

I'm not sure about the build log but, it's - 

 * Package:    dev-java/java-getopt-1.0.13
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        amd64 consolekit elibc_glibc kernel_linux multilib policykit userland_GNU
 * FEATURES:   keeptemp preserve-libs sandbox
 * Using: icedtea6-bin
 * Disabling all optional ANT_TASKS

BUILD SUCCESSFUL
Total time: 2 seconds


As a consequence I paste the emerge output - 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-java/java-getopt-1.0.13
 * java-getopt-1.0.13.tar.gz RMD160 SHA1 SHA256 size ;-) ...                             [ ok ]
 * Package:    dev-java/java-getopt-1.0.13
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        amd64 consolekit elibc_glibc kernel_linux multilib policykit userland_GNU
 * FEATURES:   keeptemp preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking java-getopt-1.0.13.tar.gz to /var/tmp/portage/dev-java/java-getopt-1.0.13/work
>>> Source unpacked in /var/tmp/portage/dev-java/java-getopt-1.0.13/work
>>> Compiling source in /var/tmp/portage/dev-java/java-getopt-1.0.13/work ...
 * Disabling all optional ANT_TASKS
Buildfile: /var/tmp/portage/dev-java/java-getopt-1.0.13/work/build.xml

prepare:
    [mkdir] Created dir: /var/tmp/portage/dev-java/java-getopt-1.0.13/work/src
    [mkdir] Created dir: /var/tmp/portage/dev-java/java-getopt-1.0.13/work/build
    [mkdir] Created dir: /var/tmp/portage/dev-java/java-getopt-1.0.13/work/build/classes
    [mkdir] Created dir: /var/tmp/portage/dev-java/java-getopt-1.0.13/work/build/lib
    [mkdir] Created dir: /var/tmp/portage/dev-java/java-getopt-1.0.13/work/build/api
     [copy] Copying 25 files to /var/tmp/portage/dev-java/java-getopt-1.0.13/work/src/gnu

classes:
    [javac] Compiling 3 source files to /var/tmp/portage/dev-java/java-getopt-1.0.13/work/build/classes
     [copy] Copying 12 files to /var/tmp/portage/dev-java/java-getopt-1.0.13/work/build/classes

jar:
      [jar] Building jar: /var/tmp/portage/dev-java/java-getopt-1.0.13/work/build/lib/gnu.getopt.jar

BUILD SUCCESSFUL
Total time: 2 seconds
>>> Source compiled.
>>> Test phase [not enabled]: dev-java/java-getopt-1.0.13

>>> Install java-getopt-1.0.13 into /var/tmp/portage/dev-java/java-getopt-1.0.13/image/ category dev-java
>>> Completed installing java-getopt-1.0.13 into /var/tmp/portage/dev-java/java-getopt-1.0.13/image/


>>> Installing (1 of 1) dev-java/java-getopt-1.0.13
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
Comment 9 Serkan Kaba (RETIRED) gentoo-dev 2011-05-01 14:47:15 UTC
(In reply to comment #8)
Does your PORTAGE_TMPDIR reside in a reiser4 partition?
Comment 10 dE 2011-05-01 14:52:45 UTC
Yes.
Comment 11 Serkan Kaba (RETIRED) gentoo-dev 2011-05-01 14:56:08 UTC
I moved my PORTAGE_TMPDIR away from reiser4. jar behaves weirdly excluding classes in the .jar file when run in a reiser4 partition. (You may override the variable for individual merges if you like) You may ask reiser4 upstream what the issue might be. But as we're not officially supporting reiser4, I'm closing as INVALID.
Comment 12 dE 2011-05-01 15:05:17 UTC
This was the issue.

No wonder reiser4 is not in the main tree.
Comment 13 dE 2011-05-02 06:32:06 UTC
(In reply to comment #11)
> I moved my PORTAGE_TMPDIR away from reiser4. jar behaves weirdly excluding
> classes in the .jar file when run in a reiser4 partition. (You may override the
> variable for individual merges if you like) You may ask reiser4 upstream what
> the issue might be. But as we're not officially supporting reiser4, I'm closing
> as INVALID.

In the reiser4 mailing list, Edward was asking to format the partition using ccreg40 if you're not using compression, that solved the problem.

I hope there wont be any performance impacts.