[MacPorts] #54582: Failed to build commons-collections: command execution failed

MacPorts noreply at macports.org
Tue Aug 8 03:42:31 UTC 2017


#54582: Failed to build commons-collections: command execution failed
-----------------------------------------+-------------------
 Reporter:  doushichao                   |      Owner:
     Type:  defect                       |     Status:  new
 Priority:  Normal                       |  Milestone:
Component:  ports                        |    Version:  2.4.1
 Keywords:  tomcat6,commons-collections  |       Port:
-----------------------------------------+-------------------
 I want to install tomcat6, But there has been an error


 {{{
 Error: Failed to build commons-collections: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/main.log for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port tomcat6 failed
 }}}


 Here is main.log:

 {{{
 version:1
 :debug:main dropping privileges: euid changed to 502, egid changed to 501.
 :debug:main Executing org.macports.main (commons-collections)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.archivefetch (commons-
 collections)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.fetch (commons-collections)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.checksum (commons-collections)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.extract (commons-collections)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.patch (commons-collections)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.configure (commons-
 collections)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:build build phase started at Tue Aug  8 11:12:10 CST 2017
 :notice:build --->  Building commons-collections
 :debug:build Executing org.macports.build (commons-collections)
 :debug:build Environment:
 :debug:build CC_PRINT_OPTIONS='YES'
 :debug:build
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/.CC_PRINT_OPTIONS'
 :debug:build CPATH='/opt/local/include'
 :debug:build
 JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home'
 :debug:build LIBRARY_PATH='/opt/local/lib'
 :debug:build MACOSX_DEPLOYMENT_TARGET='10.12'
 :info:build Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/commons-collections-3.2.1-src" && ant jar javadoc
 -Djar.name=commons-collections.jar
 -Djunit.jar=/opt/local/share/java/junit.jar
 :debug:build system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/commons-collections-3.2.1-src" && ant jar javadoc
 -Djar.name=commons-collections.jar
 -Djunit.jar=/opt/local/share/java/junit.jar
 :info:build Buildfile:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/commons-collections-3.2.1-src/build.xml
 :info:build init:
 :info:build      [echo] -------- commons-collections 3.2.1 --------
 :info:build prepare:
 :info:build compile:
 :info:build     [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/commons-collections-3.2.1-src/build.xml:129: warning:
 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
 set to false for repeatable builds
 :info:build     [javac] Compiling 225 source files to
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/commons-collections-3.2.1-src/build/classes
 :info:build     [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/commons-
 collections-3.2.1-src/src/java/org/apache/commons/collections/MultiHashMap.java:334:
 错误: MultiHashMap中的remove(Object,Object)无法实现Map中的
 remove(Object,Object)
 :info:build     [javac]     public Object remove(Object key, Object item)
 {
 :info:build     [javac]                   ^
 :info:build     [javac]   返回类型Object与boolean不兼容
 :info:build     [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/commons-
 collections-3.2.1-src/src/java/org/apache/commons/collections/MultiMap.java:69:
 错误: MultiMap中的remove(Object,Object)与Map中的remove(Object,Object)冲突
 :info:build     [javac]     public Object remove(Object key, Object item);
 :info:build     [javac]                   ^
 :info:build     [javac]   返回类型Object与boolean不兼容
 :info:build     [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/commons-
 collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiKeyMap.java:200:
 错误: MultiKeyMap中的remove(Object,Object)无法实现Map中的
 remove(Object,Object)
 :info:build     [javac]     public Object remove(Object key1, Object key2)
 {
 :info:build     [javac]                   ^
 :info:build     [javac]   返回类型Object与boolean不兼容
 :info:build     [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/commons-
 collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiValueMap.java:156:
 错误: MultiValueMap中的remove(Object,Object)无法实现Map中的
 remove(Object,Object)
 :info:build     [javac]     public Object remove(Object key, Object value)
 {
 :info:build     [javac]                   ^
 :info:build     [javac]   返回类型Object与boolean不兼容
 :info:build     [javac] 注: 某些输入文件使用了未经检查或不安全的操作。
 :info:build     [javac] 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译
 。
 :info:build     [javac] 4 个错误
 :info:build BUILD FAILED
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/commons-collections-3.2.1-src/build.xml:129: Compile
 failed; see the compiler error output for details.
 :info:build Total time: 1 second
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/work/commons-collections-3.2.1-src" && ant jar javadoc
 -Djar.name=commons-collections.jar
 -Djunit.jar=/opt/local/share/java/junit.jar
 :info:build Exit code: 1
 :error:build Failed to build commons-collections: command execution failed
 :debug:build Error code: CHILDSTATUS 53604 1
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :debug:build Failed to locate 'lbzip2' in path:
 '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its
 MacPorts configuration time location, did you move it?
 :debug:build     while executing
 :debug:build "error "$eMessage or at its MacPorts configuration time
 location, did you move it?""
 :debug:build     invoked from within
 :debug:build "try -pass_signal {
 :debug:build             set cmd_path [macports::binaryInPath $prog]
 :debug:build             return $cmd_path
 :debug:build         } catch {{*} eCode eMessage} {
 :debug:build        ..."
 :debug:build     (procedure "macports::findBinary" line 5)
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_java_commons-collections/commons-
 collections/main.log for details.
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/54582>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list