LINUX.ORG.RU

dev-java/xom ошибка компиляции

 , ,


0

1

При сборке NetBeans пакет dev-java/xom-1.2.10 не собирается. Гугл выдал эту тему на багтрэкере https://bugs.gentoo.org/683718 Что делать? Сливать коммит и пришивать заплатку git'ом? И если да то как, в какой файл пихать исправления.

лог ошибки компиляции

BUILD FAILED
/var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build.xml:194:
Compile failed; see the compiler error output for details.

Total time: 5 seconds
 * ERROR: dev-java/xom-1.2.10::gentoo failed (compile phase):
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 3950:  Called eant 'jar' '-Ddebug=off'
 *   environment, line  632:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-java/xom-1.2.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/xom-1.2.10::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-8  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-3.13.0"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info =xom-1.2.10
 * The complete build log is located at '/var/tmp/portage/dev-java/xom-1.2.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/xom-1.2.10/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/xom-1.2.10/work/XOM'
 * S: '/var/tmp/portage/dev-java/xom-1.2.10/work/XOM'

>>> Failed to emerge dev-java/xom-1.2.10, Log file:

>>>  '/var/tmp/portage/dev-java/xom-1.2.10/temp/build.log'

 * Messages for package dev-java/xom-1.2.10:

 * ERROR: dev-java/xom-1.2.10::gentoo failed (compile phase):
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 3950:  Called eant 'jar' '-Ddebug=off'
 *   environment, line  632:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-java/xom-1.2.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/xom-1.2.10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-java/xom-1.2.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/xom-1.2.10/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/xom-1.2.10/work/XOM'
 * S: '/var/tmp/portage/dev-java/xom-1.2.10/work/XOM'

Ты не весь вывод показал, где сами ошибки?

Если точно как на багзиле «error: package org.apache.xerces.impl does not exist», то попробовать собрать сначала «emerge -1qv dev-java/xerces»

vvn_black ★★★★★
()
Ответ на: комментарий от vvn_black

попробовал, не сработало. Недостающая часть лога :

>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/xom-1.2.10/work/XOM ...
 * Using following ANT_TASKS: jarjar-1
Buildfile: /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build.xml
  [taskdef] Could not load definitions from resource clovertasks. It could not be found.

init:
     [echo] ----------- XOM 1.2.10 ------------

prepare-dirs:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/dist
    [mkdir] Created dir: /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/dist/maven1
    [mkdir] Created dir: /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/dist/maven2
    [mkdir] Created dir: /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/testresults
    [mkdir] Created dir: /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build
    [mkdir] Created dir: /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/jaxen
    [mkdir] Created dir: /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/jaxen-classes
    [mkdir] Created dir: /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/src
    [mkdir] Created dir: /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/classes
     [copy] Copying 215 files to /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/src

prepare-fat:

prepare:

compile-jaxen:
    [javac] Compiling 159 source files to /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/jaxen-classes

compile-core:
    [javac] Compiling 106 source files to /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/classes
    [javac] /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/src/nu/xom/Builder.java:45: error: package org.apache.xerces.impl does not exist
    [javac] import org.apache.xerces.impl.Version;
    [javac]                              ^
    [javac] /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/src/nu/xom/XML1_0Parser.java:23: error: package org.apache.xerces.parsers does not exist
    [javac] import org.apache.xerces.parsers.SAXParser;
    [javac]                                 ^
    [javac] /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/src/nu/xom/XML1_0Parser.java:24: error: package org.apache.xerces.parsers does not exist
    [javac] import org.apache.xerces.parsers.DTDConfiguration;
    [javac]                                 ^
    [javac] /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/src/nu/xom/XML1_0Parser.java:46: error: cannot find symbol
    [javac] class XML1_0Parser extends SAXParser {
    [javac]                            ^
    [javac]   symbol: class SAXParser
    [javac] /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/src/nu/xom/Builder.java:70: error: cannot find symbol
    [javac]             String x = Version.getVersion();
    [javac]                        ^
    [javac]   symbol:   variable Version
    [javac]   location: class Builder
    [javac] /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/src/nu/xom/Builder.java:199: error: incompatible types: XML1_0Parser cannot be converted to XMLReader
    [javac]             parser = new XML1_0Parser();
    [javac]                      ^
    [javac] /var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build/src/nu/xom/XML1_0Parser.java:49: error: cannot find symbol
    [javac]         super(new DTDConfiguration());
    [javac]                   ^
    [javac]   symbol:   class DTDConfiguration
    [javac]   location: class XML1_0Parser
    [javac] 7 errors

BUILD FAILED
/var/tmp/portage/dev-java/xom-1.2.10/work/XOM/build.xml:194: Compile failed; see the compiler error output for details.

Total time: 5 seconds
Swinec
() автор топика
Ответ на: комментарий от vvn_black

jaxes сам по себе тянет xom на установку. xerces поставлен, но проблему это не решило.

Swinec
() автор топика

Не холивара ради а просто к твоему сведению - в генте были всегда поломаны зависимости. Перепутать рантайм депс от бюлдтайм депс это вообще святое дело. А если начать распутывать простыни того что там и от чего прописано в зависимостях…

init_6 ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.