LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   Netbeans fails to emerge (https://www.linuxquestions.org/questions/gentoo-87/netbeans-fails-to-emerge-912640/)

segmentation_fault 11-09-2011 09:18 AM

Netbeans fails to emerge
 
All dependencies have been successfully emerged except for "dev-util/netbeans". This is the error I get when I run
Code:

emerge -av --oneshot dev-util/netbeans
Code:

nblib:
    [mkdir] Created dir: /var/tmp/portage/dev-util/netbeans-6.8-r1/work/java.source.ant/build/antclasses
    [javac] Compiling 3 source files to /var/tmp/portage/dev-util/netbeans-6.8-r1/work/java.source.ant/build/antclasses

  [repeat] /var/tmp/portage/dev-util/netbeans-6.8-r1/work/java.source.ant/antsrc/org/netbeans/modules/java/source/ant/JavacTask.java:107: package CheckForCleanBuilds does not exist
  [repeat]            if (CheckForCleanBuilds.cleanBuild.get() && getSrcdir() != null) {
  [repeat]                                    ^
  [repeat] 1 error
  [nbmerge] Failed to build target: all-java.source.ant

BUILD FAILED
/var/tmp/portage/dev-util/netbeans-6.8-r1/work/nbbuild/build.xml:362: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.8-r1/work/nbbuild/build.xml:357: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.8-r1/work/nbbuild/build.xml:392: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.8-r1/work/nbbuild/build.xml:375: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.8-r1/work/nbbuild/build.xml:357: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.8-r1/work/nbbuild/build.xml:404: The following error occurred while executing this line:
/var/tmp/portage/dev-util/netbeans-6.8-r1/work/java.source.ant/build.xml:49: Compile failed; see the compiler error output for details.

Total time: 12 minutes 50 seconds
 * ERROR: dev-util/netbeans-6.8-r1 failed (compile phase):
 *  eant failed
 *
 * Call stack:
 *    ebuild.sh, line  56:  Called src_compile
 *  environment, line 4884:  Called eant '-Dstop.when.broken.modules=true' '-Dpermit.jdk6.builds=true' '-Dbuild.compiler.deprecation=false' '-Dnb.clusters.list=nb.cluster.platform,nb.cluster.apisupport,nb.cluster.cnd,nb.cluster.dlight,nb.cluster.harness,nb.cluster.ide,nb.cluster.java,nb.cluster.nb,nb.cluster.websvccommon' '-f' 'nbbuild/build.xml' 'build-nozip'
 *  environment, line 1194:  Called die
 * The specific snippet of code:
 *      ant ${antflags} "${@}" || die "eant failed"
 *
 * If you need support, post the output of 'emerge --info =dev-util/netbeans-6.8-r1',
 * the complete build log and the output of 'emerge -pqv =dev-util/netbeans-6.8-r1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea6-bin  CLASSPATH="" JAVA_HOME="/opt/icedtea6-bin-1.10.4"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/dev-util/netbeans-6.8-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/netbeans-6.8-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-util/netbeans-6.8-r1/work'

>>> Failed to emerge dev-util/netbeans-6.8-r1, Log file:
>>>  '/var/tmp/portage/dev-util/netbeans-6.8-r1/temp/build.log'

 * Messages for package dev-util/netbeans-6.8-r1:

 * ERROR: dev-util/netbeans-6.8-r1 failed (compile phase):
 *  eant failed
 *
 * Call stack:
 *    ebuild.sh, line  56:  Called src_compile
 *  environment, line 4884:  Called eant '-Dstop.when.broken.modules=true' '-Dpermit.jdk6.builds=true' '-Dbuild.compiler.deprecation=false' '-Dnb.clusters.list=nb.cluster.platform,nb.cluster.apisupport,nb.cluster.cnd,nb.cluster.dlight,nb.cluster.harness,nb.cluster.ide,nb.cluster.java,nb.cluster.nb,nb.cluster.websvccommon' '-f' 'nbbuild/build.xml' 'build-nozip'
 *  environment, line 1194:  Called die
 * The specific snippet of code:
 *      ant ${antflags} "${@}" || die "eant failed"
 *
 * If you need support, post the output of 'emerge --info =dev-util/netbeans-6.8-r1',
 * the complete build log and the output of 'emerge -pqv =dev-util/netbeans-6.8-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-util/netbeans-6.8-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/netbeans-6.8-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-util/netbeans-6.8-r1/work'

I read in another forum to run
Code:

export -n DISPLAY
and
Code:

USE="java source"
prior to emerge, both with no success.

Here is the output of --pretend (to provide my USE flags, modules etc.):
Code:

# emerge -pv --oneshot dev-util/netbeans

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

Calculating dependencies... done!
[ebuild  N    ] dev-util/netbeans-6.8-r1  USE="-debug -doc" LINGUAS="-ar -ca -cs -de -es -fr -gl -id -it -ja -ko -nl -pl -pt_BR -ro -ru -sq -sv -tr -zh_CN -zh_TW" NETBEANS_MODULES="apisupport cnd dlight harness ide java nb websvccommon -enterprise -ergonomics -groovy -identity -mobility -php -profiler -ruby" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Any hints?

segmentation_fault 11-11-2011 07:05 AM

I switched my java-vm from icedtea6-bin to sun-jdk-1.6 and netbeans emerged and works ok.


All times are GMT -5. The time now is 08:17 AM.