#36922: re2: install_name_tool: object: libre2.0.dylib malformed object (unknown load command 4) ------------------------+------------------- Reporter: ayush.g@… | Owner: hum@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: re2 | ------------------------+------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => hum@… * priority: High => Normal * keywords: re2, port => Old description:
The log for the error:
...
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:destroot Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/re2-20111209-d49d9934b9aa" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot' :debug:destroot Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/re2-20111209-d49d9934b9aa" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot :info:destroot make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/re2-20111209-d49d9934b9aa' :info:destroot mkdir -p /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/include/re2 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib :info:destroot install -m 644 re2/filtered_re2.h re2/re2.h re2/set.h re2/stringpiece.h re2/variadic_function.h /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/include/re2 :info:destroot install obj/libre2.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.a :info:destroot install obj/dylib/libre2.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.0.0.0.dylib :info:destroot ln -sf libre2.0.0.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.0.dylib :info:destroot ln -sf libre2.0.0.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.dylib :info:destroot make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/re2-20111209-d49d9934b9aa' :debug:destroot Executing proc-post-org.macports.destroot-destroot-0 :info:destroot install_name_tool: object: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.0.dylib malformed object (unknown load command 4) :info:destroot Command failed: install_name_tool -id /opt/local/lib/libre2.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.0.dylib :info:destroot Exit code: 1 :error:destroot org.macports.destroot for port re2 returned: command execution failed :debug:destroot Error code: NONE :debug:destroot Backtrace: command execution failed while executing "$post $targetname" :info:destroot Warning: targets not executed for re2: org.macports.activate org.macports.destroot org.macports.install :notice:destroot Please see the log file for port re2 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/main.log
New description: The log for the error: {{{ ... CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8' :debug:destroot Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/re2-20111209-d49d9934b9aa" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot' :debug:destroot Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/re2-20111209-d49d9934b9aa" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot :info:destroot make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/re2-20111209-d49d9934b9aa' :info:destroot mkdir -p /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/include/re2 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib :info:destroot install -m 644 re2/filtered_re2.h re2/re2.h re2/set.h re2/stringpiece.h re2/variadic_function.h /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/include/re2 :info:destroot install obj/libre2.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.a :info:destroot install obj/dylib/libre2.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.0.0.0.dylib :info:destroot ln -sf libre2.0.0.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.0.dylib :info:destroot ln -sf libre2.0.0.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.dylib :info:destroot make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/re2-20111209-d49d9934b9aa' :debug:destroot Executing proc-post-org.macports.destroot-destroot-0 :info:destroot install_name_tool: object: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.0.dylib malformed object (unknown load command 4) :info:destroot Command failed: install_name_tool -id /opt/local/lib/libre2.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.0.dylib :info:destroot Exit code: 1 :error:destroot org.macports.destroot for port re2 returned: command execution failed :debug:destroot Error code: NONE :debug:destroot Backtrace: command execution failed while executing "$post $targetname" :info:destroot Warning: targets not executed for re2: org.macports.activate org.macports.destroot org.macports.install :notice:destroot Please see the log file for port re2 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/main.log }}} -- Comment:
{{{install_name_tool: object: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_re2/re2/work/destroot/opt/local/lib/libre2.0.dylib malformed object (unknown load command 4)}}}
This error usually means your `install_name_tool` command is too old for your operating system. You appear to be on Mountain Lion, which means you must be running Xcode 4.4 or later. If not, upgrade Xcode, which you can do from the Mac App Store or Apple Developer Connection web site. In these versions of Xcode, command line tools must be installed separately, from within the Xcode application, in the Preferences window, in the Downloads section. Please go there and ensure the command line tools are installed and up to date. -- Ticket URL: <https://trac.macports.org/ticket/36922#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS