Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#50176 closed defect (invalid)

Error: org.macports.build for port ld64-latest returned: command execution failed

Reported by: fortran_cc@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: ld64-latest

Description (last modified by ryandesign (Ryan Carsten Schmidt))

sudo port upgrade outdated which worked without any problem in the past 2 years, failed every time recently.

The errors are

--->  Computing dependencies for ld64-latest
--->  Building ld64-latest
Error: org.macports.build for port ld64-latest returned: command execution failed
Please see the log file for port ld64-latest for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/main.log
Error: Unable to upgrade port: 1

Attachments (1)

main.log (8.3 KB) - added by fortran_cc@… 9 years ago.

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by fortran_cc@…

Attachment: main.log added

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to jeremyhu@…
Port: ld64-latest added

Please "sudo port clean ld64-latest", then try again.

comment:2 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: invalid
Status: newclosed
:info:build dyld: Library not loaded: /opt/local/lib/libncurses.5.dylib
:info:build   Referenced from: /opt/local/libexec/llvm-3.4/bin/clang++
:info:build   Reason: no suitable image found.  Did find:

Please do sudo port -v -s upgrade outdated

Version 1, edited 9 years ago by jeremyhu (Jeremy Huddleston Sequoia) (previous) (next) (diff)

comment:3 Changed 9 years ago by fortran_cc@…

I did "sudo port clean ld64-latest" before, did not solve the reported problem.

"sudo port upgrade outdated" led to the same problem I reported.

% %sudo port upgrade clang-3.4 ---> Computing dependencies for ld64-latest ---> Building ld64-latest Error: org.macports.build for port ld64-latest returned: command execution failed Please see the log file for port ld64-latest for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/main.log

Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide:

http://guide.macports.org/#project.tickets

% % %sudo port rev-upgrade ---> Updating database of binaries ---> Scanning binaries for linking errors ---> Found 942 broken file(s), matching files to ports ---> Found 16 broken port(s), determining rebuild order ---> Rebuilding in order

gpsd @3.14 python24 @2.4.6 clang-3.4 @3.4.2 +analyzer+arm_runtime llvm-3.5 @3.5.2 texlive-bin @2014 +x11 bc @1.06.95 +libedit strigi @0.7.8 soprano @2.9.4 kdelibs4 @4.14.3 libkexiv2 @4.14.3 wget @1.16.2 +ssl kfilemetadata @4.14.3 mobipocket @4.14.3 nepomuk-core @4.14.3 kactivities @4.13.3 okular @4.14.3

---> Computing dependencies for gpsd ---> Cleaning gpsd ---> Computing dependencies for python24 ---> Cleaning python24 ---> Computing dependencies for ld64-latest ---> Building ld64-latest Error: org.macports.build for port ld64-latest returned: command execution failed Please see the log file for port ld64-latest for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/main.log

Error: Unable to upgrade port: 1 Error rebuilding clang-3.4

while executing

"error "Error rebuilding $portname""

(procedure "revupgrade_scanandrebuild" line 395) invoked from within

"revupgrade_scanandrebuild broken_port_counts $opts"

(procedure "macports::revupgrade" line 5) invoked from within

"macports::revupgrade $opts"

(procedure "action_revupgrade" line 2) invoked from within

"$action_proc $action $portlist [array get global_options]"

(procedure "process_cmd" line 103) invoked from within

"process_cmd $remaining_args"

invoked from within

"if { [llength $remaining_args] > 0 } {

# If there are remaining arguments, process those as a command set exit_status [process_cmd $remaining..." (file "/opt/local/bin/port" line 5268)

comment:4 Changed 9 years ago by fortran_cc@…

As suggested in the email (which said to 'close' the ticket, but the suggested solution does not work)

:info:build dyld: Library not loaded: /opt/local/lib/libncurses.5.dylib :info:build Referenced from: /opt/local/libexec/llvm-3.4/bin/clang++ :info:build Reason: no suitable image found. Did find:

Please do 'sudo port -v -s upgrade outdated'

%sudo port -v -s upgrade outdated ---> Computing dependencies for ld64-latest. ---> Building ld64-latest make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3' /opt/local/bin/clang++-mp-3.4 -Os -Os -std=c++11 -stdlib=libc++ -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/other/ObjectDump.o src/other/ObjectDump.cpp /opt/local/bin/clang-mp-3.4 -Os -Os -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/ld/debugline.o src/ld/debugline.c /opt/local/bin/clang++-mp-3.4 -Os -Os -std=c++11 -stdlib=libc++ -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/ld/parsers/macho_relocatable_file.o src/ld/parsers/macho_relocatable_file.cpp /opt/local/bin/clang++-mp-3.4 -Os -Os -std=c++11 -stdlib=libc++ -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/ld/parsers/lto_file.o src/ld/parsers/lto_file.cpp /opt/local/bin/clang++-mp-3.4 -Os -Os -std=c++11 -stdlib=libc++ -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/other/dyldinfo.o src/other/dyldinfo.cpp dyld: Library not loaded: /opt/local/lib/libncurses.5.dylib

Referenced from: /opt/local/libexec/llvm-3.4/bin/clang++ Reason: no suitable image found. Did find:

/usr/lib/libncurses.5.dylib: mach-o, but wrong architecture

dyld: Library not loaded: /opt/local/lib/libncurses.5.dylib

Referenced from: /opt/local/libexec/llvm-3.4/bin/clang++ Reason: no suitable image found. Did find:

/usr/lib/libncurses.5.dylib: mach-o, but wrong architecture

dyld: Library not loaded: /opt/local/lib/libncurses.5.dylib

Referenced from: /opt/local/libexec/llvm-3.4/bin/clang++ Reason: no suitable image found. Did find:

/usr/lib/libncurses.5.dylib: mach-o, but wrong architecture

dyld: Library not loaded: /opt/local/lib/libncurses.5.dylib

Referenced from: /opt/local/libexec/llvm-3.4/bin/clang++ Reason: no suitable image found. Did find:

/usr/lib/libncurses.5.dylib: mach-o, but wrong architecture

dyld: Library not loaded: /opt/local/lib/libncurses.5.dylib

Referenced from: /opt/local/libexec/llvm-3.4/bin/clang Reason: no suitable image found. Did find:

/usr/lib/libncurses.5.dylib: mach-o, but wrong architecture

make: * [src/ld/debugline.o] Trace/BPT trap: 5 make: * Waiting for unfinished jobs.... make: * [src/other/ObjectDump.o] Trace/BPT trap: 5 make: * [src/ld/parsers/macho_relocatable_file.o] Trace/BPT trap: 5 make: * [src/other/dyldinfo.o] Trace/BPT trap: 5 make: * [src/ld/parsers/lto_file.o] Trace/BPT trap: 5 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/make -j5 -w all CC="/opt/local/bin/clang-mp-3.4" CXX="/opt/local/bin/clang++-mp-3.4" OTHER_CPPFLAGS="-I/opt/local/include" OTHER_CFLAGS="-Os -arch x86_64" OTHER_CXXFLAGS="-Os -std=c++11 -stdlib=libc++ -arch x86_64" OTHER_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -stdlib=libc++ -arch x86_64" RC_SUPPORTED_ARCHS="armv6 armv7 i386 x86_64" LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.4 Exit code: 2 Error: org.macports.build for port ld64-latest returned: command execution failed Warning: targets not executed for ld64-latest: org.macports.install org.macports.build org.macports.destroot Please see the log file for port ld64-latest for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/main.log

Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide:

http://guide.macports.org/#project.tickets

The error log is copy paste below:

version:1 :msg:main ---> Computing dependencies for ld64-latest:info:main .:debug:main ld64-latest has no conflicts :debug:main Searching for dependency: dyld-headers :debug:main Found Dependency: receipt exists for dyld-headers :debug:main Searching for dependency: libmacho-headers :debug:main Found Dependency: receipt exists for libmacho-headers :debug:main Searching for dependency: cctools :debug:main Found Dependency: receipt exists for cctools :debug:main Searching for dependency: clang-3.4 :debug:main Found Dependency: receipt exists for clang-3.4 :debug:main Searching for dependency: libcxx :debug:main Found Dependency: receipt exists for libcxx :debug:main Searching for dependency: llvm-3.4 :debug:main Found Dependency: receipt exists for llvm-3.4 :msg:main :debug:main Executing org.macports.main (ld64-latest) :debug:main changing euid/egid - current euid: 0 - current egid: 0 :debug:main egid changed to: 501 :debug:main euid changed to: 503 :debug:archivefetch archivefetch phase started at Wed Dec 30 20:52:07 CST 2015 :warn:archivefetch Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers> :debug:archivefetch Executing org.macports.archivefetch (ld64-latest) :debug:archivefetch Privilege de-escalation not attempted as not running as root. :debug:fetch fetch phase started at Wed Dec 30 20:52:08 CST 2015 :notice:fetch ---> Fetching distfiles for ld64-latest :debug:fetch Executing proc-pre-org.macports.fetch-fetch-0 :debug:fetch Executing proc-pre-org.macports.fetch-fetch-1 :debug:fetch Executing org.macports.fetch (ld64-latest) :debug:fetch Privilege de-escalation not attempted as not running as root. :debug:checksum checksum phase started at Wed Dec 30 20:52:08 CST 2015 :notice:checksum ---> Verifying checksums for ld64-latest :debug:checksum Executing org.macports.checksum (ld64-latest) :info:checksum ---> Checksumming ld64-253.3.tar.gz :debug:checksum Calculated (rmd160) is 05a334fa636bf05a36eac3e745101f8f2dcab70b :debug:checksum Correct (rmd160) checksum for ld64-253.3.tar.gz :debug:checksum Calculated (sha256) is 76c02f6f297c251b66504e1115946bda6e1618640bc6cf03d0ad99b17bd8a5d6 :debug:checksum Correct (sha256) checksum for ld64-253.3.tar.gz :debug:checksum Privilege de-escalation not attempted as not running as root. :debug:extract extract phase started at Wed Dec 30 20:52:09 CST 2015 :notice:extract ---> Extracting ld64-latest :debug:extract Executing org.macports.extract (ld64-latest) :info:extract ---> Extracting ld64-253.3.tar.gz :debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/ld64/ld64-253.3.tar.gz' :debug:extract Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/ld64/ld64-253.3.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -' :debug:extract Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/ld64/ld64-253.3.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - :debug:extract euid/egid changed to: 0/0 :debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work to macports :debug:extract euid/egid changed to: 503/501 :debug:extract Executing proc-post-org.macports.extract-extract-0 :debug:extract Privilege de-escalation not attempted as not running as root. :debug:patch patch phase started at Wed Dec 30 20:52:11 CST 2015 :debug:patch Executing org.macports.patch (ld64-latest) :notice:patch ---> Applying patches to ld64-latest :info:patch ---> Applying ld64-version.patch :debug:patch Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64/files/ld64-version.patch' :info:patch patching file src/ld/Options.cpp :info:patch Hunk #1 succeeded at 99 with fuzz 2 (offset 67 lines). :info:patch Hunk #2 succeeded at 3718 with fuzz 2 (offset 1563 lines). :info:patch ---> Applying ld64-133-no-CrashReporterClient.h.patch :debug:patch Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64/files/ld64-133-no-CrashReporterClient.h.patch' :info:patch patching file src/ld/Options.cpp :info:patch Hunk #1 succeeded at 57 (offset 7 lines). :info:patch Hunk #2 succeeded at 5313 (offset 1066 lines). :info:patch ---> Applying ld64-134-missing-include.patch :debug:patch Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64/files/ld64-134-missing-include.patch' :info:patch patching file src/ld/parsers/lto_file.cpp :info:patch Hunk #1 succeeded at 37 with fuzz 2 (offset 2 lines). :info:patch patching file src/other/rebase.cpp :info:patch ---> Applying ld64-136-i386-badAddress.patch :debug:patch Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64/files/ld64-136-i386-badAddress.patch' :info:patch patching file src/ld/LinkEdit.hpp :info:patch Hunk #1 succeeded at 1454 (offset 176 lines). :info:patch ---> Applying ld64-ppc-9610466.patch :debug:patch Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64/files/ld64-ppc-9610466.patch' :info:patch patching file src/ld/OutputFile.cpp :info:patch Hunk #1 succeeded at 620 (offset -5 lines). :info:patch ---> Applying PR-23184186.patch :debug:patch Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64/files/PR-23184186.patch' :info:patch patching file src/ld/Options.cpp :info:patch ---> Applying PR-23184384.patch :debug:patch Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64/files/PR-23184384.patch' :info:patch patching file src/other/machochecker.cpp :info:patch ---> Applying PR-23184771.patch :debug:patch Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64/files/PR-23184771.patch' :info:patch patching file src/ld/passes/bitcode_bundle.cpp :info:patch ---> Applying PR-49393.patch :debug:patch Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0' :debug:patch Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64/files/PR-49393.patch' :info:patch patching file src/ld/parsers/textstub_dylib_file.cpp :debug:patch Executing proc-post-org.macports.patch-patch-0 :info:patch ---> Patching Options.cpp: s|@@VERSION@@|253.3|g :debug:patch Executing reinplace: /usr/bin/sed s|@@VERSION@@|253.3|g < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3/src/ld/Options.cpp >@ file12 2>@stderr :debug:patch euid/egid changed to: 0/0 :debug:patch chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3/src/ld/Options.cpp to macports :debug:patch euid/egid changed to: 503/501 :debug:patch euid/egid changed to: 0/0 :debug:patch setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3/src/ld/Options.cpp :debug:patch euid/egid changed to: 503/501 :debug:patch Privilege de-escalation not attempted as not running as root. :debug:configure configure phase started at Wed Dec 30 20:52:11 CST 2015 :notice:configure ---> Configuring ld64-latest :debug:configure Using compiler 'MacPorts Clang 3.4' :debug:configure Executing org.macports.configure (ld64-latest) :info:configure DERIVED_SOURCES_DIR=src/ld DERIVED_FILE_DIR=src/ld src/create_configure > src/ld/configure.h :debug:configure Privilege de-escalation not attempted as not running as root. :debug:build build phase started at Wed Dec 30 20:52:12 CST 2015 :notice:build ---> Building ld64-latest :debug:build Executing proc-pre-org.macports.build-build-0 :debug:build Executing org.macports.build (ld64-latest) :debug:build Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/make -j5 -w all CC="/opt/local/bin/clang-mp-3.4" CXX="/opt/local/bin/clang++-mp-3.4" OTHER_CPPFLAGS="-I/opt/local/include" OTHER_CFLAGS="-Os -arch x86_64" OTHER_CXXFLAGS="-Os -std=c++11 -stdlib=libc++ -arch x86_64" OTHER_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -stdlib=libc++ -arch x86_64" RC_SUPPORTED_ARCHS="armv6 armv7 i386 x86_64" LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.4' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/make -j5 -w all CC="/opt/local/bin/clang-mp-3.4" CXX="/opt/local/bin/clang++-mp-3.4" OTHER_CPPFLAGS="-I/opt/local/include" OTHER_CFLAGS="-Os -arch x86_64" OTHER_CXXFLAGS="-Os -std=c++11 -stdlib=libc++ -arch x86_64" OTHER_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -stdlib=libc++ -arch x86_64" RC_SUPPORTED_ARCHS="armv6 armv7 i386 x86_64" LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.4 :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3' :info:build /opt/local/bin/clang++-mp-3.4 -Os -Os -std=c++11 -stdlib=libc++ -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/other/ObjectDump.o src/other/ObjectDump.cpp :info:build /opt/local/bin/clang-mp-3.4 -Os -Os -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/ld/debugline.o src/ld/debugline.c :info:build /opt/local/bin/clang++-mp-3.4 -Os -Os -std=c++11 -stdlib=libc++ -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/ld/parsers/macho_relocatable_file.o src/ld/parsers/macho_relocatable_file.cpp :info:build /opt/local/bin/clang++-mp-3.4 -Os -Os -std=c++11 -stdlib=libc++ -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/ld/parsers/lto_file.o src/ld/parsers/lto_file.cpp :info:build /opt/local/bin/clang++-mp-3.4 -Os -Os -std=c++11 -stdlib=libc++ -arch x86_64 -I/opt/local/libexec/llvm-3.4/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld -Isrc/ld/parsers -I/opt/local/include -c -o src/other/dyldinfo.o src/other/dyldinfo.cpp :info:build dyld: Library not loaded: /opt/ldyld: Library not loaded: /opt/local/lib/libncurses.5.dylib :info:build Referenced from: /opt/local/libexedyld: Library not loaded: /opt/local/lib/libncurses.5.dylib :info:build Referenced from: /opt/local/libexedyld: Library not loaded: /opt/local/lib/libncurses.5.dylib :info:build Referenced from: /opt/local/libexec/llvm-3.4/bin/clang++ :info:build Reason: no suitable image found. Did focal/lib/libncurses.5.dylib :info:build Referenced from: /opt/local/libexec/llvm-3.4/bin/clang++ :info:build Reason: no suitable image found. Did find: :info:build /usr/lib/libncurses.5.dylic/llvm-3.4/bin/clang++ :info:build Reason: no suitable image found. Did find: :info:build /usr/lib/libncurses.5.dyliind: :info:build /usr/lib/libncurses.5.dylidyld: Library not loaded: /opt/lc/llvm-3.4/bin/clang++ :info:build Reason:ocal/lib/libncurses.5.dylib :info:build Reb: mach-o, but wrong architecture :info:build no suitable image found. Did find: :info:build /usr/lib/libncurses.5.dylib: mach-o, but wrong architecture :info:build b: mach-o, but wrong architecture :info:build ferenced from: /opt/local/libexec/llvm-3.4/bin/clang :info:build Reason: nb: mach-o, but wrong architecturo suitable image found. Did fine :info:build d: :info:build /usr/lib/libncurses.5.dylib: mach-o, but wrong architecture :info:build make: * [src/ld/debugline.o] Trace/BPT trap: 5 :info:build make: * Waiting for unfinished jobs.... :info:build make: * [src/ld/parsers/macho_relocatable_file.o] Trace/BPT trap: 5 :info:build make: * [src/other/dyldinfo.o] Trace/BPT trap: 5 :info:build make: * [src/other/ObjectDump.o] Trace/BPT trap: 5 :info:build make: * [src/ld/parsers/lto_file.o] Trace/BPT trap: 5 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/work/ld64-253.3" && /usr/bin/make -j5 -w all CC="/opt/local/bin/clang-mp-3.4" CXX="/opt/local/bin/clang++-mp-3.4" OTHER_CPPFLAGS="-I/opt/local/include" OTHER_CFLAGS="-Os -arch x86_64" OTHER_CXXFLAGS="-Os -std=c++11 -stdlib=libc++ -arch x86_64" OTHER_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -stdlib=libc++ -arch x86_64" RC_SUPPORTED_ARCHS="armv6 armv7 i386 x86_64" LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.4 :info:build Exit code: 2 :error:build org.macports.build for port ld64-latest returned: command execution failed :debug:build Error code: CHILDSTATUS 5936 2 :debug:build Backtrace: command execution failed

while executing

"system -nice 0 $fullcmdstring"

("eval" body line 1) invoked from within

"eval system $notty $nice \$fullcmdstring"

invoked from within

"command_exec build"

(procedure "portbuild::build_main" line 8) invoked from within

"portbuild::build_main org.macports.build"

("eval" body line 1) invoked from within

"eval $procedure $targetname" :info:build Warning: targets not executed for ld64-latest: org.macports.install org.macports.build org.macports.destroot :notice:build Please see the log file for port ld64-latest for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/main.log

comment:5 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Please use wiki formatting in the future. In the mean time, use rev-upgrade to rebuild the ports with bad linkage, or just uninstall them and reinstall them yourself.

comment:6 in reply to:  5 Changed 9 years ago by fortran_cc@…

Replying to jeremyhu@…:

Please use wiki formatting in the future. In the mean time, use rev-upgrade to rebuild the ports with bad linkage, or just uninstall them and reinstall them yourself.

using sudo port rev-upgrade did not resolve the problem.

how do you rebuild the ports with bad linkage (it cannot even pass the ld64-latest)? if the only choice left is to uninstall the whole macport and reinstall, then that is not convenient since it is very slow to build macport.

% sudo port rev-upgrade

---> Building ld64-latest Error: org.macports.build for port ld64-latest returned: command execution failed Please see the log file for port ld64-latest for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-latest/main.log

Error: Unable to upgrade port: 1 Error rebuilding clang-3.4

while executing

"error "Error rebuilding $portname""

(procedure "revupgrade_scanandrebuild" line 395) invoked from within

"revupgrade_scanandrebuild broken_port_counts $opts"

(procedure "macports::revupgrade" line 5) invoked from within

"macports::revupgrade $opts"

(procedure "action_revupgrade" line 2) invoked from within

"$action_proc $action $portlist [array get global_options]"

(procedure "process_cmd" line 103) invoked from within

"process_cmd $remaining_args"

invoked from within

"if { [llength $remaining_args] > 0 } {

# If there are remaining arguments, process those as a command set exit_status [process_cmd $remaining..." (file "/opt/local/bin/port" line 5268)

comment:7 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Please ask for help on the mailing list, so others can chime in and/or benefit.

comment:8 in reply to:  7 Changed 9 years ago by fortran_cc@…

Replying to jeremyhu@…:

Please ask for help on the mailing list, so others can chime in and/or benefit.

Finally I managed to make the following command work

'sudo port rev-upgrade'

What I did was patiently and repeatedly removing all ports that were reported to be broken from the above command, going from bottom to top, by the command 'sudo port -d -f uninstall XXXX' where XXXX is the culprit package/port that were broken.

Originally I had 20 ports broken (not sure why it suddenly had so many broken ports), using the above procedure I got it down to 8 (copy paste below as examples)

---> Found 8 broken port(s), determining rebuild order

---> Rebuilding in order

bc @1.06.95 +libedit

soprano @2.9.4

kdelibs4 @4.14.3

mobipocket @4.14.3

gpsd @3.14

evince @3.14.2

libkexiv2 @4.14.3

python24 @2.4.6

Then, I applied the same 'sudo port -d -f uninstall' from bottom up, e.g.,

sudo port -d -f uninstall python24 @2.4.6

until the last one

sudo port -d -f uninstall bc @1.06.95

(Btw, I also 'sudo port -d -f uninstall' all the other related versions of the broken ports. Your other installed versions can be seen if you simply use 'sudo port -d -f uninstall' followed by the package name without its version, e.g., sudo port -d -f uninstall python24 )

After going from bottom up and force uninstalling all broken ports, I did 'sudo port selfupdate', and then 'sudo port rev-upgrade' finally went through, reporting no broken ports! It took quite a long time, but I guess it was still a lot faster than removing all macport and then reinstall.

But the 'sudo port upgrade outdated' failed in one step, I checked the web and saw only one 2-year old answer which does not solve my problem, I'll report a 'bug' in another thread.

Thanks.

Note: See TracTickets for help on using tickets.