Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254760 - dev-java/xml-xmlbeans-1.0.4_pre20041217: compile fails when compiled vie emerge. Works manually.
Summary: dev-java/xml-xmlbeans-1.0.4_pre20041217: compile fails when compiled vie emer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-12 23:36 UTC by Ian Hands
Modified: 2015-08-21 07:25 UTC (History)
1 user (show)

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 Ian Hands 2009-01-12 23:36:31 UTC
When compiling xml-xmlbeans via portage I get a failure. If I (directly after a emerge attempt) cd into '/var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/' and build using the command 'ant xbean.jar' or 'ant default' the package builds successfully.
 



Relevant section of 'JAVA_PKG_DEBUG="true" emerge -av xml-xmlbeans':

The ' characters around the executable and arguments are
not part of the command.
     [java] XML.xsd:1: error: unable to resolve external entity: "XMLSchema.dtd"
     [java] Time to build schema type system: 0.581 seconds
     [java] BUILD FAILED

BUILD FAILED
/var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build.xml:838: Java returned: 1
   at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   at java.lang.reflect.Method.invoke(libgcj.so.9)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:357)
   at org.apache.tools.ant.Target.performTasks(Target.java:385)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
   at org.apache.tools.ant.Main.runBuild(Main.java:758)
   at org.apache.tools.ant.Main.startAnt(Main.java:217)
   at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 7 seconds
 * 
 * ERROR: dev-java/xml-xmlbeans-1.0.4_pre20041217 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4068:  Called eant 'xbean.jar' '-Dgentoo.classpath=/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/ant-core/lib/ant.jar:/usr/share/ant-core/lib/ant-bootstrap.jar'
 *             environment, line  910:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *  The die message:
 *   eant failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/temp/environment'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=gcj-jdk  CLASSPATH="" JAVA_HOME="/usr/lib/gcj-jdk-4.3"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info


My emerge --info:
MrQuattro v1 # emerge --info
WARNING: One or more repositories have missing repo_name entries:

	/usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
Portage 2.2_rc21 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoo x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-glibc2.2.5
Timestamp of tree: Mon, 12 Jan 2009 21:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r15, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
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/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/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/layman/gnome /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/gnash-cvs /usr/local/portage/layman/mozilla /usr/local/portage/layman/java-overlay /usr/local/portage/layman/zugaina /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi aiglx alsa amd64 apache2 applet asf automount berkdb blender-game bluetooth branding bzip2 cairo cdr cli cracklib crypt css custom-optimization dbus dedicated dga dri dv dvd dvdr emacs encode epiphany esd etc-proposals evdev example ffmpeg flac fortran galago gcdmaster gcj gdbm gedit glitz gnome gnomecd gpac gpm gstreamer gtk gtk2 hal howl iconv id3tag ieee1394 imagemagick ipod isdnlog java java5 java6 javascript joystick jpeg jpeg2k ladspa lame libcaca libsamplerate lm_sensors mad madwifi mapsjack metacity midi mmap mmx mng modplug mp3 mpeg mudflap multilib musepack nautilus ncurses netplay network networkmanager nfs nls nptl nptlonly nsplugin nvidia ogg old-daemons openal opengl openmp pam parallel pcre pdf perl png pppd pulseaudio python qt-static quicktime readline reflection rouge samba sdl seamonkey session smp sndfile soundtouch sox speex spell spl sqlite sse sse2 sse3 sse4.1 ssl ssse3 svg svnserve sysfs tcpd teamarena test-programs theora threads tiff truetype twolame unicode unsupported usb v4l v4l2 vamp vidx vorbis wavpack webkit wifi wxwindows x264 xatrix xcb xine xml xmlreader xmlwriter xorg xsl xv xvid xvmc yahoo yv12 zlib" ALSA_CARDS="emu10k1" 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 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 joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I sometimes use LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,-znow".


Got gnash, now I need icedtea!! Thanks!

Reproducible: Always

Steps to Reproduce:
1. emerge -av xml-xmlbeans
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2009-01-13 01:17:32 UTC
(In reply to comment #0)
>
> !!! When you file a bug report, please include the following information:
> GENTOO_VM=gcj-jdk  CLASSPATH="" JAVA_HOME="/usr/lib/gcj-jdk-4.3"
> JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
> and of course, the output of emerge --info
>

gcj is known to not be able to emerge stuff so please test with something else and reopen if it still fails
Comment 2 Andreas Sturmlechner gentoo-dev 2011-09-18 11:33:25 UTC
Just wanted to add that you will inevitably hit that bug when you try to

USE="javascript" emerge icedtea

as your initial jdk without anything else than GCJ present.

USE="-javascript" temporarily disabled the DEPEND on rhino thus its CDEPEND on xml-xmlbeans, now let's see if that will build...
Comment 3 Andreas Sturmlechner gentoo-dev 2011-09-18 14:06:17 UTC
`USE="-javascript" emerge icedtea` built fine, set it as the system VM, now going through a USE="javascript" rebuild and xml-xmlbeans already passed.

Couldn't we give the average user a hint what to do when trying to build icedtea with that special setting? Although I'm wondering if there probably exists a simple fix for xml-xmlbeans...
Comment 4 Patrice Clement gentoo-dev 2015-08-21 07:25:33 UTC
Marking this bug as FIXED.