Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to emerge netbeans
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
Ser_p
n00b
n00b


Joined: 04 Jul 2013
Posts: 4

PostPosted: Thu Aug 22, 2013 4:01 pm    Post subject: Failed to emerge netbeans Reply with quote

Failed to emerge netbeans.

Getting the followinf error:

Code:
 * Applying netbeans-7.3-build.xml.patch ...                                                [ ok ]
 * Symlinking external libraries...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/netbeans-platform-7.3/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/netbeans-platform-7.3/work ...
 * Using following ANT_TASKS: ant-nodeps
Buildfile: /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/build.xml

-jdk-pre-preinit:

-jdk-preinit:

-jdk-warn:

-jdk-presetdef-basic:

-jdk-default:

-jdk-init:

-load-build-properties:

bootstrap:
    [mkdir] Created dir: /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/build/antclasses
    [javac] Compiling 4 source files to /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/build/antclasses
     [echo] Bootstrapping NetBeans-specific Ant extensions...
    [javac] Compiling 79 source files to /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/build/antclasses
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/CheckModuleConfigs.java:84: incompatible types
    [javac] found   : java.util.Hashtable<java.lang.String,java.lang.Object>
    [javac] required: java.util.Map<java.lang.String,java.lang.String>
    [javac]         Map<String,String> properties = getProject().getProperties();
    [javac]                                                                   ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/ExportedAPICondition.java:64: incompatible types
    [javac] found   : java.util.Hashtable<java.lang.String,java.lang.Object>
    [javac] required: java.util.Hashtable<java.lang.String,java.lang.String>
    [javac]         Hashtable<String,String> props = getProject().getProperties();
    [javac]                                                                    ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/FixTestDependencies.java:252: cannot find symbol
    [javac] symbol  : constructor ModuleListParser(java.util.Hashtable<java.lang.String,java.lang.Object>,org.netbeans.nbbuild.ModuleType,org.apache.tools.ant.Project)
    [javac] location: class org.netbeans.nbbuild.ModuleListParser
    [javac]             ModuleListParser listParser = new ModuleListParser(getProject().getProperties(), projectType, getProject());
    [javac]                                           ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/InsertModuleAllTargets.java:105: incompatible types
    [javac] found   : java.util.Hashtable<java.lang.String,java.lang.Object>
    [javac] required: java.util.Hashtable<java.lang.String,java.lang.String>
    [javac]             Hashtable<String,String> props = prj.getProperties();
    [javac]                                                               ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/LayerIndex.java:374: org.netbeans.nbbuild.LayerIndex.ZipArray is not abstract and does not override abstract method iterator() in org.apache.tools.ant.types.ResourceCollection
    [javac]     private static final class ZipArray extends ArrayList<ZipResource>
    [javac]                          ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/ModuleTestDependencies.java:94: incompatible types
    [javac] found   : java.util.Hashtable<java.lang.String,java.lang.Object>
    [javac] required: java.util.Hashtable<java.lang.String,java.lang.String>
    [javac]             Hashtable<String,String> props = getProject().getProperties();
    [javac]                                                                        ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/NbMerge.java:208: warning: [unchecked] unchecked conversion
    [javac] found   : java.util.Hashtable
    [javac] required: java.util.Hashtable<java.lang.String,org.apache.tools.ant.Target>
    [javac]         Vector doneList = getProject().topoSort(getOwningTarget().getName(), targets);
    [javac]                                                                              ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/ParseProjectXml.java:450: incompatible types
    [javac] found   : java.util.Hashtable<java.lang.String,java.lang.Object>
    [javac] required: java.util.Hashtable<java.lang.String,java.lang.String>
    [javac]                 Hashtable<String,String> properties = getProject().getProperties();
    [javac]                                                                                 ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/PathFileSet.java:226: warning: iterator() in org.netbeans.nbbuild.PathFileSet implements iterator() in org.apache.tools.ant.types.ResourceCollection; return type requires unchecked conversion
    [javac] found   : java.util.Iterator
    [javac] required: java.util.Iterator<org.apache.tools.ant.types.Resource>
    [javac]     public Iterator iterator() {
    [javac]                     ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/PathFileSet.java:226: warning: iterator() in org.netbeans.nbbuild.PathFileSet implements iterator() in java.lang.Iterable; return type requires unchecked conversion
    [javac] found   : java.util.Iterator
    [javac] required: java.util.Iterator<org.apache.tools.ant.types.Resource>
    [javac]     public Iterator iterator() {
    [javac]                     ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/PathFileSet.java:128: warning: selectorElements() in org.netbeans.nbbuild.PathFileSet implements selectorElements() in org.apache.tools.ant.types.selectors.SelectorContainer; return type requires unchecked conversion
    [javac] found   : java.util.Enumeration
    [javac] required: java.util.Enumeration<org.apache.tools.ant.types.selectors.FileSelector>
    [javac]     public Enumeration selectorElements() {
    [javac]                        ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/RefreshDependencyVersions.java:124: incompatible types
    [javac] found   : java.util.Hashtable<java.lang.String,java.lang.Object>
    [javac] required: java.util.Map<java.lang.String,java.lang.String>
    [javac]         @SuppressWarnings("unchecked") Map<String,String> properties = getProject().getProperties();
    [javac]                                                                                                  ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/ShorterPaths.java:186: incompatible types
    [javac] found   : java.util.Hashtable<java.lang.String,java.lang.Object>
    [javac] required: java.util.Map<java.lang.String,java.lang.String>
    [javac]                 Map<String, String> properties = getProject().getProperties();
    [javac]                                                                            ^
    [javac] /var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/antsrc/org/netbeans/nbbuild/Sigtest.java:300: getInstance(java.lang.Class<? extends org.apache.tools.ant.types.EnumeratedAttribute>,java.lang.String) in org.apache.tools.ant.types.EnumeratedAttribute cannot be applied to (java.lang.Class<capture#397 of ?>,java.lang.String)
    [javac]         setM(task, "setAction", EnumeratedAttribute.getInstance(actionType, action.getValue()));
    [javac]                                                    ^
    [javac] 10 errors
    [javac] 4 warnings

BUILD FAILED
/var/tmp/portage/dev-java/netbeans-platform-7.3/work/nbbuild/build.xml:108: Compile failed; see the compiler error output for details.

Total time: 39 seconds
 * ERROR: dev-java/netbeans-platform-7.3::gentoo failed (compile phase):
 *   eant failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 4096:  Called eant '-f' 'nbbuild/build.xml' '-Drebuild.cluster.name=nb.cluster.platform' '-Dext.binaries.downloaded=true' '-Djava.awt.headless=true' '-Dpermit.jdk7.builds=true' 'rebuild-cluster'
 *   environment, line  566:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *
 * If you need support, post the output of `emerge --info '=dev-java/netbeans-platform-7.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/netbeans-platform-7.3::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-6  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-6.1.12.6"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER="javac"
and of course, the output of emerge --info =netbeans-platform-7.3
 * The complete build log is located at '/var/tmp/portage/dev-java/netbeans-platform-7.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/netbeans-platform-7.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/netbeans-platform-7.3/work'
 * S: '/var/tmp/portage/dev-java/netbeans-platform-7.3/work'

>>> Failed to emerge dev-java/netbeans-platform-7.3, Log file:

>>>  '/var/tmp/portage/dev-java/netbeans-platform-7.3/temp/build.log'

 * Messages for package dev-java/netbeans-platform-7.3:

 * ERROR: dev-java/netbeans-platform-7.3::gentoo failed (compile phase):
 *   eant failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 4096:  Called eant '-f' 'nbbuild/build.xml' '-Drebuild.cluster.name=nb.cluster.platform' '-Dext.binaries.downloaded=true' '-Djava.awt.headless=true' '-Dpermit.jdk7.builds=true' 'rebuild-cluster'
 *   environment, line  566:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *
 * If you need support, post the output of `emerge --info '=dev-java/netbeans-platform-7.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/netbeans-platform-7.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-java/netbeans-platform-7.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/netbeans-platform-7.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/netbeans-platform-7.3/work'
 * S: '/var/tmp/portage/dev-java/netbeans-platform-7.3/work'


Here is java-config -L output
Code:
java-config -L
The following VMs are available for generation-2:
1)   IcedTea JDK 6.1.12.6 [icedtea-bin-6]
*)   Oracle JDK 1.7.0.25 [oracle-jdk-bin-1.7]


Could somebody help with that?
Back to top
View user's profile Send private message
mbb
n00b
n00b


Joined: 23 Aug 2013
Posts: 1

PostPosted: Fri Aug 23, 2013 11:50 am    Post subject: Reply with quote

I had the same error and downgrading ant-core to the latest version which is not yet using templates resolved the problem.

Code:

emerge =dev-java/ant-core-1.8.4-r1
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1352

PostPosted: Fri Aug 23, 2013 12:19 pm    Post subject: Reply with quote

Please file bugs at https://bugs.gentoo.org such that the maintainer can fix this for everyone, thank you very much in advance.
Back to top
View user's profile Send private message
tamjan
n00b
n00b


Joined: 11 May 2012
Posts: 8
Location: Luleå, Sweden

PostPosted: Mon Oct 28, 2013 9:26 am    Post subject: Reply with quote

Yeah. NetBeans 7.2 doesn't build either with ant 1.9.2. Both of these are stable in portage.
I had to add
Code:
>=dev-java/ant-1.9
>=dev-java/ant-antlr-1.9
>=dev-java/ant-apache-bcel-1.9
>=dev-java/ant-apache-bsf-1.9
>=dev-java/ant-apache-log4j-1.9
>=dev-java/ant-apache-oro-1.9
>=dev-java/ant-apache-regexp-1.9
>=dev-java/ant-apache-resolver-1.9
>=dev-java/ant-apache-xalan2-1.9
>=dev-java/ant-commons-logging-1.9
>=dev-java/ant-commons-net-1.9
>=dev-java/ant-core-1.9
>=dev-java/ant-jai-1.9
>=dev-java/ant-javamail-1.9
>=dev-java/ant-jdepend-1.9
>=dev-java/ant-jmf-1.9
>=dev-java/ant-jsch-1.9
>=dev-java/ant-junit-1.9
>=dev-java/ant-junit4-1.9
>=dev-java/ant-nodeps-1.9
>=dev-java/ant-swing-1.9
>=dev-java/ant-testutil-1.9
>=dev-java/ant-trax-1.9


to masks, downgrade these ant packages, and then emerge NetBeans. It builds then.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1223
Location: 42.68n 85.41w

PostPosted: Mon Oct 28, 2013 4:54 pm    Post subject: Reply with quote

post the bug report thread link to here, and ill post a confirmation of it too.... :twisted:
_________________
cat /etc/*-release
Funtoo Linux - baselayout 2.2.0
consider this warning no. 1
http://ecx.images-amazon.com/images/I/81Ku-vxIb3L._SL1500_.jpg
http://wiki.gentoo.org/wiki/Special:Contributions/666threesixes666
Back to top
View user's profile Send private message
brisclan
n00b
n00b


Joined: 13 Nov 2013
Posts: 1

PostPosted: Wed Nov 13, 2013 5:00 pm    Post subject: https://bugs.gentoo.org/show_bug.cgi?id=491054 bug report Reply with quote

I filed a bug report for this error. here is the link
https://bugs.gentoo.org/show_bug.cgi?id=491054
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