Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Circular dependencies :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Sat Nov 05, 2011 6:32 pm    Post subject: Circular dependencies :( Reply with quote

Uh oh ... I have an issue I can't resolve. Probably it is due to gcc-4.6.2.
I already emerge gcc-4.6.2 with useflag "gcj" enabled, as advised by a previous message from portage. After that I get this message. Any ideas?
Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!


[nomerge       ] games-misc/cowsay-3.03-r2
[nomerge       ]  dev-lang/perl-5.12.4-r1  USE="berkdb gdbm -build -debug -doc -ithreads"
[nomerge       ]   sys-libs/db-4.8.30  USE="java -doc -examples -nocxx -tcl -test"
[nomerge       ]    virtual/jdk-1.7.0
[nomerge       ]     dev-java/icedtea-7.2.0-r1  USE="nsplugin webstart -debug -doc -examples -jamvm -javascript -pulseaudio -systemtap -zero"                                         
[ebuild  N     ]      dev-java/icedtea-web-1.1.3-r7  USE="nsplugin -build -doc" 792 kB
[ebuild  N     ]       dev-java/icedtea-7.2.0-r1  USE="nsplugin webstart -debug -doc -examples -jamvm -javascript -pulseaudio -systemtap -zero" 65,905 kB                             
[ebuild  N     ]        dev-java/ant-nodeps-1.8.1  5,740 kB
[ebuild  N     ]         dev-java/ant-core-1.8.1  USE="-doc -source" 0 kB
[nomerge       ] sys-apps/busybox-1.19.2-r1  USE="mdev pam -debug -ipv6 -make-symlinks -nfs -savedconfig (-selinux) -static"
[nomerge       ]  sys-libs/pam-1.1.5  USE="berkdb cracklib nls -audit -debug -nis (-selinux) -test -vim-syntax"
[nomerge       ]   sys-libs/db-4.8.30  USE="java -doc -examples -nocxx -tcl -test"
[ebuild  N     ]    virtual/jdk-1.7.0  0 kB
[nomerge       ] kde-base/kate-4.7.3  USE="plasma (-aqua) -debug -handbook (-kdeenablefinal)"
[nomerge       ]  kde-base/katepart-4.7.3  USE="(-aqua) -debug -handbook (-kdeenablefinal)"
[nomerge       ]   x11-libs/qt-gui-4.7.4  USE="accessibility cups dbus exceptions glib mng pch qt3support tiff xinerama (-aqua) -debug -egl -gtkstyle -nas -nis -private-headers -raster -trace"                                                                                 
[nomerge       ]    net-print/cups-1.4.8-r22  USE="X dbus java jpeg pam png ssl threads tiff usb -acl -debug -gnutls -kerberos -ldap -perl -php -python -samba -slp -static-libs -xinetd" LINGUAS="de -da -es -eu -fi -fr -id -it -ja -ko -nl -no -pl -pt -pt_BR -ru -sv -zh -zh_TW"                                                                                       
[ebuild  N     ]     virtual/jre-1.7.0  0 kB

Total: 6 packages (6 new), Size of downloads: 72,435 kB

 * Error: circular dependencies:

(dev-java/ant-nodeps-1.8.1::gentoo, ebuild scheduled for merge) depends on
 (virtual/jdk-1.7.0::gentoo, ebuild scheduled for merge) (buildtime)
  (dev-java/icedtea-7.2.0-r1::gentoo, ebuild scheduled for merge) (runtime)
   (dev-java/ant-nodeps-1.8.1::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.

_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Nov 05, 2011 6:47 pm    Post subject: Reply with quote

because you lack java support, try emerge that first, problem should resolve itself then
emerge -pv virtual/jre
check it will try to pull icedtea to met your need, else retry emerge -1 --nodeps icedtea

redo for virtual/jdk too if need
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Sat Nov 05, 2011 6:56 pm    Post subject: Reply with quote

Hmm, I get this error:
Code:

configure: error: ant program not found in PATH

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/config.log
 * ERROR: dev-java/icedtea-7.2.0-r1 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   91:  Called src_configure
 *        environment, line 4808:  Called econf '--disable-bootstrap' '--with-parallel-jobs=5' '--disable-zero' '--with-openjdk-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/0a76e5390e68.tar.gz' '--with-corba-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/4d9e4fb8af09.tar.gz' '--with-jaxp-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/948e734135ea.tar.gz' '--with-jaxws-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/a2ebfdc9db7e.tar.gz' '--with-jdk-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/2054526dd141.tar.gz' '--with-hotspot-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/b28ae681bae0.tar.gz' '--with-langtools-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/9b85f1265346.tar.gz' '--with-jdk-home=/opt/icedtea6-bin-1.10.4' '--with-abs-install-dir=/usr/lib64/icedtea7' '--disable-jdk-tests' '--enable-optimizations' '--disable-docs' '--without-rhino' '--disable-zero' '--disable-pulse-java' '--disable-systemtap'
 *   phase-helpers.sh, line  454:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of 'emerge --info =dev-java/icedtea-7.2.0-r1',
 * the complete build log and the output of 'emerge -pqv =dev-java/icedtea-7.2.0-r1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea6-bin  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0'

 * Messages for package dev-java/icedtea-7.2.0-r1:

 * ERROR: dev-java/icedtea-7.2.0-r1 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   91:  Called src_configure
 *        environment, line 4808:  Called econf '--disable-bootstrap' '--with-parallel-jobs=5' '--disable-zero' '--with-openjdk-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/0a76e5390e68.tar.gz' '--with-corba-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/4d9e4fb8af09.tar.gz' '--with-jaxp-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/948e734135ea.tar.gz' '--with-jaxws-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/a2ebfdc9db7e.tar.gz' '--with-jdk-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/2054526dd141.tar.gz' '--with-hotspot-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/b28ae681bae0.tar.gz' '--with-langtools-src-zip=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/distdir/9b85f1265346.tar.gz' '--with-jdk-home=/opt/icedtea6-bin-1.10.4' '--with-abs-install-dir=/usr/lib64/icedtea7' '--disable-jdk-tests' '--enable-optimizations' '--disable-docs' '--without-rhino' '--disable-zero' '--disable-pulse-java' '--disable-systemtap'
 *   phase-helpers.sh, line  454:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of 'emerge --info =dev-java/icedtea-7.2.0-r1',
 * the complete build log and the output of 'emerge -pqv =dev-java/icedtea-7.2.0-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0'
 *
 * The following package has failed to build or install:
 *
 *  (dev-java/icedtea-7.2.0-r1::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/temp/build.log'


emerge -pv virtual/jre gave the circular dependency error again.
I was only able to emerge dev-java/icedtea-bin-1.10.4
Ohh, what have I done...
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Sat Nov 05, 2011 7:32 pm    Post subject: Reply with quote

I could resolve most of this by emerging dev-java/ant-nodeps first.
Now the only package which fails to compile is dev-java/icedtea-7.2.0-r1.
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Nov 05, 2011 8:02 pm    Post subject: Reply with quote

then try emerge it the normal way, it should find ant now
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Sat Nov 05, 2011 8:17 pm    Post subject: Reply with quote

Hmm, doesn't work for me. Fails with this error:
Code:

########################################################################
########################################################################
##### Entering jaxp for target(s) all                              #####
########################################################################

(cd  ./jaxp/make && \
 /usr/bin/make JDK_TOPDIR=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jdk JDK_MAKE_SHARED_DIR=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7 MILESTONE=fcs BUILD_NUMBER=b147 JDK_BUILD_NUMBER=b147 FULL_VERSION=1.7.0_147-icedtea-b147 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0_147 JDK_MKTG_VERSION=7u147 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 STATIC_CXX=false ARCH_DATA_MODEL=64 COOKED_JDK_UPDATE_VERSION=147 COOKED_BUILD_NUMBER=147 ANT_HOME="/usr/share/ant" ALT_OUTPUTDIR=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp ALT_BOOTDIR=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 ALT_JDK_IMPORT_PATH=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 ALT_LANGTOOLS_DIST=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/langtools/dist all)
make[3]: Entering directory `/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/make'
cd .. && JAVA_HOME=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 /usr/bin/ant -Djavac.target=7 -Djavac.source=7 -Ddrops.dir=/java/devtools/share/jdk7-drops -Doutput.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp -Djdk.home=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 -Dbootstrap.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/langtools/dist/bootstrap -version
!!! ERROR: Package xerces-2 was not found!
!!! ERROR: Package xerces-2 was not found!
Apache Ant version 1.8.1 compiled on November 5 2011
cd .. && JAVA_HOME=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 /usr/bin/ant -Djavac.target=7 -Djavac.source=7 -Ddrops.dir=/java/devtools/share/jdk7-drops -Doutput.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp -Djdk.home=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 -Dbootstrap.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/langtools/dist/bootstrap all
!!! ERROR: Package xerces-2 was not found!
!!! ERROR: Package xerces-2 was not found!
Buildfile: /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/build.xml
    [mkdir] Created dir: /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build/xml_generated
     [copy] Copying 1 file to /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build/xml_generated

-banner:
     [echo] +---------------------------------------+
     [echo] + Starting ant project jaxp +
     [echo] +---------------------------------------+

-javac-jar-exists:

sanity:
     [echo] Sanity Settings:
     [echo] ant.home=/usr/share/ant-core
     [echo] ant.version=Apache Ant version 1.8.1 compiled on November 5 2011
     [echo] ant.java.version=1.6
     [echo] java.home=/opt/icedtea6-bin-1.10.4/jre
     [echo] java.version=1.6.0_22
     [echo] os.name=Linux
     [echo] os.arch=amd64
     [echo] os.version=3.1.0-gentoo
     [echo] bootstrap.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/langtools/dist/bootstrap
     [echo] javac.jar=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/langtools/dist/bootstrap/lib/javac.jar
     [echo] javac.memoryInitialSize=256m
     [echo] javac.memoryMaximumSize=512m
     [echo] javac.source=7
     [echo] javac.debug=true
     [echo] javac.target=7
     [echo] javac.version.opt=
     [echo] javac.lint.opts=
     [echo] javac.no.jdk.warnings=-XDignore.symbol.file=true
     [echo] output.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp
     [echo] build.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build
     [echo] dist.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/dist
     [echo] drop.dir=${drop.dir}
     [echo] drops.dir=/java/devtools/share/jdk7-drops
     [echo]

init:
    [mkdir] Created dir: /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build/classes
    [mkdir] Created dir: /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/dist
    [mkdir] Created dir: /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/dist/lib

-jaxp_src-ready:

-jaxp_src-copy-bundle:

-jaxp_src-url-should-be-used:

-jaxp_src-url-bundle:

jaxp_src-update:

-set-props:

-use-drop:

-src-help:

-init-src-dirs:
     [echo] Using primary.src.dir=./sources/jaxp_src/src
     [echo] Using src.dir.id=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/sources/jaxp_src/src

compile:
    [javac] Compiling 1911 source files to /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build/classes
    [javac] /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/sources/jaxp_src/src/com/sun/org/apache/xalan/internal/xslt/EnvironmentCheck.java:1015: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac]       Method method = clazz.getMethod(DOM_LEVEL3_METHOD, null);
    [javac]                                                          ^
    [javac]   cast to Class for a varargs call
    [javac]   cast to Class[] for a non-varargs call and to suppress this warning
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 warning

-drop-build-setup:
     [copy] Copying 110 files to /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build/classes

BUILD FAILED
/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/build-defs.xml:86: Problem: failed to create task or type replaceregexp
Cause: the class org.apache.tools.ant.taskdefs.optional.ReplaceRegExp was not found.
        This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
        -/usr/share/ant-core/lib
        -/root/.ant/lib
        -a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

This is not a bug; it is a configuration problem


Total time: 18 seconds
make[3]: *** [all] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/make'
make[2]: *** [jaxp-build] Fehler 2
make[2]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk'
make[1]: *** [build_product_image] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk'
make: *** [stamps/icedtea.stamp] Fehler 2
 * ERROR: dev-java/icedtea-7.2.0-r1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of 'emerge --info =dev-java/icedtea-7.2.0-r1',
 * the complete build log and the output of 'emerge -pqv =dev-java/icedtea-7.2.0-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0'
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea6-bin  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info

_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
Aphax
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2006
Posts: 75

PostPosted: Sun Nov 06, 2011 6:30 am    Post subject: Reply with quote

I am running into a similar circular dependency at the moment while I'm simply trying to update (emerge -DNuav world) my system (~amd64):

Code:

mymachine ~ # emerge -DNuav world

These are the packages that would be merged, in order:

Calculating dependencies... done!


[nomerge       ] dev-java/ant-nodeps-1.8.1
[nomerge       ]  dev-java/ant-core-1.8.1  USE="-doc -source"
[nomerge       ]   virtual/jdk-1.7.0 [1.6.0]
[ebuild  N     ]    dev-java/icedtea-7.2.0-r1  USE="-debug -doc -examples -jamvm -javascript -nsplugin -pulseaudio -systemtap -webstart -zero" 65,905 kB
[ebuild  N     ]     dev-java/ant-nodeps-1.8.1  5,740 kB
[ebuild  NS    ]      virtual/jre-1.7.0 [1.6.0] 0 kB
[nomerge       ]      dev-java/ant-core-1.8.1  USE="-doc -source"
[ebuild  NS    ]       virtual/jdk-1.7.0 [1.6.0] 0 kB

Total: 4 packages (2 new, 2 in new slots), Size of downloads: 71,644 kB

 * Error: circular dependencies:

(dev-java/icedtea-7.2.0-r1::gentoo, ebuild scheduled for merge) depends on
 (dev-java/ant-nodeps-1.8.1::gentoo, ebuild scheduled for merge) (buildtime)
  (virtual/jdk-1.7.0::gentoo, ebuild scheduled for merge) (buildtime)
   (dev-java/icedtea-7.2.0-r1::gentoo, ebuild scheduled for merge) (runtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.


I've already had java and everything installed, and I disabled all the USE-flags to try and resolve it, but alas, the dependency is still there, and I don't really know what else to try other than unmerging/remerging random things.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Sun Nov 06, 2011 6:41 am    Post subject: Reply with quote

Aphax wrote:
I disabled all the USE-flags to try and resolve it, but alas, the dependency is still there, and I don't really know what else to try other than unmerging/remerging random things.


Same here. Clean install of ~amd64 from stage 3. Hence no previous java install :(
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Sun Nov 06, 2011 7:30 am    Post subject: Reply with quote

mbar wrote:
Aphax wrote:
I disabled all the USE-flags to try and resolve it, but alas, the dependency is still there, and I don't really know what else to try other than unmerging/remerging random things.


Same here. Clean install of ~amd64 from stage 3. Hence no previous java install :(


"emerge -o icedtea && emerge icedtea". This installs the deps first and portage should be able to resolve it. It's not a true dep cycle and portage just needs a bit of help.

If for some reason you can't use icedtea-bin for bootstrapping, "emerge -1 gcj-jdk jdk:1.5" first.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Sun Nov 06, 2011 8:32 am    Post subject: Reply with quote

No dice:

Code:
emerge -o icedtea
Calculating dependencies... done!


[nomerge       ] dev-java/icedtea-7.2.0-r1  USE="nsplugin pulseaudio webstart -debug -doc -examples -jamvm -javascript -systemtap -zero"
[ebuild  N     ]  dev-java/icedtea-web-1.1.3-r7  USE="nsplugin -build -doc" 792 kB
[ebuild  N     ]   dev-java/icedtea-7.2.0-r1  USE="nsplugin pulseaudio webstart -debug -doc -examples -jamvm -javascript -systemtap -zero" 65,905 kB
[ebuild  N     ]    dev-java/ant-nodeps-1.8.1  0 kB
[ebuild  N     ]     virtual/jre-1.7.0  0 kB
[ebuild  N     ]     dev-java/ant-core-1.8.1  USE="-doc -source" 0 kB
[ebuild  N     ]      virtual/jdk-1.7.0  0 kB

Total: 6 packages (6 new), Size of downloads: 66,696 kB

 * Error: circular dependencies:

(dev-java/ant-nodeps-1.8.1::gentoo, ebuild scheduled for merge) depends on
 (virtual/jdk-1.7.0::gentoo, ebuild scheduled for merge) (buildtime)
  (dev-java/icedtea-7.2.0-r1::gentoo, ebuild scheduled for merge) (runtime)
   (dev-java/ant-nodeps-1.8.1::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Sun Nov 06, 2011 8:49 am    Post subject: Reply with quote

I could resolve that by first emerge icedtea-bin followed by dev-java/ant-core.
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Sun Nov 06, 2011 8:52 am    Post subject: Reply with quote

I see, the currently still missing icedtea-bin:7 is apparently the cause.

So "emerge -1 icedtea-bin:6 jdk:1.6" should get you into a position from where you can "emerge icedtea"
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Sun Nov 06, 2011 9:40 am    Post subject: Reply with quote

Thanks sera.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Sun Nov 06, 2011 9:51 am    Post subject: Reply with quote

Almost there:

Code:
make[3]: Opuszczenie katalogu `/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/corba/make'
########################################################################
##### Leaving corba for target(s) all                              #####
########################################################################
##### Build time 00:01:46 corba for target(s) all                  #####
########################################################################

/bin/mkdir -p /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp


########################################################################
########################################################################
##### Entering jaxp for target(s) all                              #####
########################################################################

(cd  ./jaxp/make && \
 /usr/bin/make JDK_TOPDIR=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jdk JDK_MAKE_SHARED_DIR=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7 MILESTONE=fcs BUILD_NUMBER=b147 JDK_BUILD_NUMBER=b147 FULL_VERSION=1.7.0_147-icedtea-b147 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0_147 JDK_MKTG_VERSION=7u147 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 STATIC_CXX=false ARCH_DATA_MODEL=64 COOKED_JDK_UPDATE_VERSION=147 COOKED_BUILD_NUMBER=147 ANT_HOME="/usr/share/ant" ALT_OUTPUTDIR=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp ALT_BOOTDIR=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 ALT_JDK_IMPORT_PATH=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 ALT_LANGTOOLS_DIST=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/langtools/dist all)
make[3]: Wejście do katalogu `/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/make'
cd .. && JAVA_HOME=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 /usr/bin/ant -Djavac.target=7 -Djavac.source=7 -Ddrops.dir=/java/devtools/share/jdk7-drops -Doutput.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp -Djdk.home=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 -Dbootstrap.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/langtools/dist/bootstrap -version
!!! ERROR: Package xerces-2 was not found!
!!! ERROR: Package xerces-2 was not found!
Apache Ant version 1.8.1 compiled on November 6 2011
cd .. && JAVA_HOME=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 /usr/bin/ant -Djavac.target=7 -Djavac.source=7 -Ddrops.dir=/java/devtools/share/jdk7-drops -Doutput.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp -Djdk.home=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0 -Dbootstrap.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/langtools/dist/bootstrap all
!!! ERROR: Package xerces-2 was not found!
!!! ERROR: Package xerces-2 was not found!
Buildfile: /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/build.xml
    [mkdir] Created dir: /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build/xml_generated
     [copy] Copying 1 file to /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build/xml_generated

-banner:
     [echo] +---------------------------------------+
     [echo] + Starting ant project jaxp +
     [echo] +---------------------------------------+

-javac-jar-exists:

sanity:
     [echo] Sanity Settings:
     [echo] ant.home=/usr/share/ant-core
     [echo] ant.version=Apache Ant version 1.8.1 compiled on November 6 2011
     [echo] ant.java.version=1.6
     [echo] java.home=/opt/icedtea6-bin-1.10.4/jre
     [echo] java.version=1.6.0_22
     [echo] os.name=Linux
     [echo] os.arch=amd64
     [echo] os.version=3.1.0-gentoo
     [echo] bootstrap.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/langtools/dist/bootstrap
     [echo] javac.jar=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/langtools/dist/bootstrap/lib/javac.jar
     [echo] javac.memoryInitialSize=256m
     [echo] javac.memoryMaximumSize=512m
     [echo] javac.source=7
     [echo] javac.debug=true
     [echo] javac.target=7
     [echo] javac.version.opt=
     [echo] javac.lint.opts=
     [echo] javac.no.jdk.warnings=-XDignore.symbol.file=true
     [echo] output.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp
     [echo] build.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build
     [echo] dist.dir=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/dist
     [echo] drop.dir=${drop.dir}
     [echo] drops.dir=/java/devtools/share/jdk7-drops
     [echo]

init:
    [mkdir] Created dir: /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build/classes
    [mkdir] Created dir: /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/dist
    [mkdir] Created dir: /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/dist/lib

-jaxp_src-ready:

-jaxp_src-copy-bundle:

-jaxp_src-url-should-be-used:

-jaxp_src-url-bundle:

jaxp_src-update:

-set-props:

-use-drop:

-src-help:

-init-src-dirs:
     [echo] Using primary.src.dir=./sources/jaxp_src/src
     [echo] Using src.dir.id=/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/sources/jaxp_src/src

compile:
    [javac] Compiling 1911 source files to /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build/classes
    [javac] /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/sources/jaxp_src/src/com/sun/org/apache/xalan/internal/xslt/EnvironmentCheck.java:1015: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac]       Method method = clazz.getMethod(DOM_LEVEL3_METHOD, null);
    [javac]                                                          ^
    [javac]   cast to Class for a varargs call
    [javac]   cast to Class[] for a non-varargs call and to suppress this warning
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 warning

-drop-build-setup:
     [copy] Copying 110 files to /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/jaxp/build/classes

BUILD FAILED
/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/build-defs.xml:86: Problem: failed to create task or type replaceregexp
Cause: the class org.apache.tools.ant.taskdefs.optional.ReplaceRegExp was not found.
        This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
        -/usr/share/ant-core/lib
        -/root/.ant/lib
        -a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

This is not a bug; it is a configuration problem


Total time: 16 seconds
make[3]: *** [all] Błąd 1
make[3]: Opuszczenie katalogu `/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/make'
make[2]: *** [jaxp-build] Błąd 2
make[2]: Opuszczenie katalogu `/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk'
make[1]: *** [build_product_image] Błąd 2
make[1]: Opuszczenie katalogu `/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk'
make: *** [stamps/icedtea.stamp] Błąd 2
 * ERROR: dev-java/icedtea-7.2.0-r1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of 'emerge --info =dev-java/icedtea-7.2.0-r1',
 * the complete build log and the output of 'emerge -pqv =dev-java/icedtea-7.2.0-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0'
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea6-bin  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info


Workaround here:
https://forums.gentoo.org/viewtopic-p-6864086.html#6864086
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum