Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

xml-xmlbeans compile fails with emerge... not by hand [SOLVE

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
iphands
n00b
n00b
Posts: 61
Joined: Sat Oct 01, 2005 3:46 am

xml-xmlbeans compile fails with emerge... not by hand [SOLVE

  • Quote

Post by iphands » Mon Jan 12, 2009 2:15 am

I am assuming there is a environment variable being set here that is goofing up my xml-xmlbeans compile.

With portage I get :

Code: Select all

MrQuattro dev-java # emerge xml-xmlbeans
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.
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-java/xml-xmlbeans-1.0.4_pre20041217
 * xml-xmlbeans-20041217.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                      [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                [ ok ]
 * Using: gcj-jdk
>>> Unpacking source...
>>> Unpacking xml-xmlbeans-20041217.tar.bz2 to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work
 * Applying xml-xmlbeans-gentoo.patch ...                                                                                                                                                                                              [ ok ]
Adding gentoo.classpath to build.xml
Rewriting build.xml
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1 ...
Rewriting attributes
Rewriting ./build.xml
 * Disabling all optional ANT_TASKS
Buildfile: build.xml

dirs:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/lib
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/ar
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/src
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/private
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/private/classes
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/private/lib

xmlinputstream.classes:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/xmlinputstream
    [javac] Compiling 24 source files to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/xmlinputstream

xmlpublic.classes:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/xmlpublic
    [javac] Compiling 93 source files to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/xmlpublic

xmlschema.check:

oldxbean.jar:
     [copy] Copying 1 file to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/private/lib

xmlschema.classes:
     [java] XML.xsd:1: error: unable to resolve external entity: "XMLSchema.dtd"
     [java] Time to build schema type system: 0.55 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

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 4064:  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  906:  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

>>> Failed to emerge dev-java/xml-xmlbeans-1.0.4_pre20041217, Log file:

>>>  '/var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/temp/build.log'

If I cd to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/ and build I get:

Code: Select all

MrQuattro v1 # ant xbean.jar
Buildfile: build.xml

dirs:

xmlinputstream.classes:

xmlpublic.classes:

xmlschema.check:

oldxbean.jar:

xmlschema.classes:
     [java] Time to build schema type system: 0.35 seconds
     [java] Time to generate code: 0.034 seconds

xsdschema.check:

xsdschema.classes:
     [java] XMLSchema.xsd:0: warning: Schema <notation> is not yet supported for this release.
     [java] Time to build schema type system: 0.823 seconds
     [java] Time to generate code: 0.324 seconds

xmlpublic.jar:
      [jar] Building jar: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/lib/xmlpublic.jar

common.classes:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/common
    [javac] Compiling 30 source files to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/common

typestore.classes:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/typestore
    [javac] Compiling 7 source files to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/typestore

repackage.classes:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/repackage
    [javac] Compiling 3 source files to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/repackage

configschema.check:

configschema.classes:
     [java] Time to build schema type system: 0.418 seconds
     [java] Time to generate code: 0.08 seconds

toolschema.check:

toolschema.classes:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/src/toolschema
     [java] Time to build schema type system: 0.427 seconds
     [java] Time to generate code: 0.1 seconds

typeimpl.classes:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/typeimpl
    [javac] Compiling 366 source files to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/typeimpl
     [copy] Copying 4 files to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/typeimpl

xmlcomp.classes:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/xmlcomp
    [javac] Compiling 19 source files to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/xmlcomp

xmlstore.classes:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/xmlstore
    [javac] Compiling 12 source files to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/classes/xmlstore

check.jaxen.jar:

jaxen.jar:
     [copy] Copying 1 file to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/lib

xpath.classes:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/private/classes/xpath
    [javac] Compiling 3 source files to /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/private/classes/xpath

xbean_xpath.jar:
      [jar] Building jar: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/lib/xbean_xpath.jar

xbean.jar:
      [jar] Building jar: /var/tmp/portage/dev-java/xml-xmlbeans-1.0.4_pre20041217/work/xml-xmlbeans-20041217/v1/build/lib/xbean.jar

BUILD SUCCESSFUL
Total time: 9 seconds

What gives??
Last edited by iphands on Tue Jan 13, 2009 5:28 pm, edited 1 time in total.
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Mon Jan 12, 2009 3:12 am

File a bug against the ebuild. If one is already open, add your comments.
Top
alistair
Retired Dev
Retired Dev
User avatar
Posts: 869
Joined: Fri Jul 15, 2005 12:53 am

  • Quote

Post by alistair » Mon Jan 12, 2009 10:36 am

JAVA_PKG_DEBUG="true" emerge -av xml-xmlbeans

Please include emerge --info and ${PORTAGE_TMP}/${CATEGORY}/${P}/temp/build.log

in bug report
______________
Help the gentoo-java project. Visit Gentoo Java Project

what good are admin powers if you don't abuse them for personal gain - mark_alec
Top
iphands
n00b
n00b
Posts: 61
Joined: Sat Oct 01, 2005 3:46 am

  • Quote

Post by iphands » Tue Jan 13, 2009 3:20 am

Opened http://bugs.gentoo.org/show_bug.cgi?id=254760 and it was closed as I was trying to build with gcj-jdk. But I am unable to change the GENTOO_VM to anything else. Before I go opening another bunk defect can anyone explain why this is?

Stuff I've tried:

Code: Select all

MrQuattro ~ # ls /usr/lib/jvm/
blackdown-jdk-1.4.2  gcj-jdk  sun-jdk-1.5  sun-jdk-1.6

Code: Select all

MrQuattro ~ # java-config -L
The following VMs are available for generation-2:
1)	Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2)	GCJ 4.3 [gcj-jdk]
3)	Sun JDK 1.5.0.17 [sun-jdk-1.5]
*)	Sun JDK 1.6.0.11 [sun-jdk-1.6]

Code: Select all

MrQuattro ~ # GENTOO_VM=sun-jdk-1.6 emerge xml-xmlbeans
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.
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-java/xml-xmlbeans-1.0.4_pre20041217
 * xml-xmlbeans-20041217.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                    [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                                              [ ok ]
 * Using: gcj-jdk
Oh and a big preemptive THANKS!
Top
iphands
n00b
n00b
Posts: 61
Joined: Sat Oct 01, 2005 3:46 am

  • Quote

Post by iphands » Tue Jan 13, 2009 5:27 pm

Solved.

Code: Select all

MrQuattro build # cat /etc/java-config-2/build/compilers.conf
# If the ebuild supports it
# it will check the COMPILERS var front to back and 
# use the fist compiler that is installed

#COMPILERS="ecj-3.1 jikes javac"
COMPILERS="javac"

Code: Select all

MrQuattro build # cat /etc/java-config-2/build/jdk.conf
# User jdk configuration file
# You can specify which jdk you prefer to use
# see http://www.gentoo.org/doc/en/java.xml#doc_chap4_sect3 for more info
#
# example:

#1.3=sun-jdk-1.4 ibm-jdk-bin
#1.4=blackdown-jdk
#1.5=sun-jdk

#or if you want everything with sun-jdk
*=sun-jdk
#*=gcj-jdk

This changes the GENTOO_VM to sun-jdk and xml-xmlbeans compiles.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Sun Sep 18, 2011 2:12 pm

Just in case you are still interested in the topic, I also posted in the bug because I hit the same problem while attempting to emerge icedtea with USE="javascript", which pulls in rhino, which pulls in xml-xmlbeans. A temporary USE="-javascript" emerge icedtea was the solution to build xml-xmlbeans, now going through an icedtea rebuild including USE="javascript" - no sun-jdk, voilà :)
Top
hirakendu
Guru
Guru
Posts: 386
Joined: Wed Jan 24, 2007 5:54 pm
Location: san diego
Contact:
Contact hirakendu
Website

  • Quote

Post by hirakendu » Sun Dec 18, 2011 8:01 pm

@genstorm: thanks for the USE="-javascript" tip. :)
[topic=563717]Helium Sources[/topic] || [topic=580369] Gentoo Minimal Livecd [/topic]
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy