Opened 3 years ago

Closed 3 years ago

#61664 closed defect (fixed)

ddrescue: Builds with wrong C++ stdlib; doesn't use MacPorts CXXFLAGS/LDFLAGS

Reported by: RobK88 Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: snowleopard lion mountainlion Cc:
Port: ddrescue

Description

I am unable to install ddrescue on Mac OS X Lion. The port is broken.

bash-3.2$ sudo port install ddrescue
--->  Computing dependencies for ddrescue
--->  Fetching distfiles for ddrescue
--->  Attempting to fetch ddrescue-1.25.tar.lz from https://distfiles.macports.org/ddrescue
--->  Verifying checksums for ddrescue
--->  Extracting ddrescue
--->  Configuring ddrescue
--->  Building ddrescue
--->  Staging ddrescue into destroot
--->  Installing ddrescue @1.25_0
--->  Activating ddrescue @1.25_0
--->  Cleaning ddrescue
--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: ddrescue @1.25
Continue? [Y/n]: Y
--->  Computing dependencies for ddrescue
--->  Fetching distfiles for ddrescue
--->  Verifying checksums for ddrescue
--->  Extracting ddrescue
--->  Configuring ddrescue
--->  Building ddrescue
--->  Staging ddrescue into destroot
--->  Deactivating ddrescue @1.25_0
--->  Cleaning ddrescue
--->  Uninstalling ddrescue @1.25_0
--->  Cleaning ddrescue
--->  Computing dependencies for ddrescue
--->  Installing ddrescue @1.25_0
--->  Activating ddrescue @1.25_0
--->  Cleaning ddrescue
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  Found 1 broken port, determining rebuild order
--->  Rebuilding in order
     ddrescue @1.25 
--->  Computing dependencies for ddrescue
--->  Fetching distfiles for ddrescue
--->  Verifying checksums for ddrescue
--->  Extracting ddrescue
--->  Configuring ddrescue
--->  Building ddrescue
--->  Staging ddrescue into destroot
--->  Deactivating ddrescue @1.25_0
--->  Cleaning ddrescue
--->  Uninstalling ddrescue @1.25_0
--->  Cleaning ddrescue
--->  Computing dependencies for ddrescue
--->  Installing ddrescue @1.25_0
--->  Activating ddrescue @1.25_0
--->  Cleaning ddrescue
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  Found 1 broken port, determining rebuild order
--->  Rebuilding in order
     ddrescue @1.25 
--->  Computing dependencies for ddrescue
--->  Fetching distfiles for ddrescue
--->  Verifying checksums for ddrescue
--->  Extracting ddrescue
--->  Configuring ddrescue
--->  Building ddrescue
--->  Staging ddrescue into destroot
--->  Deactivating ddrescue @1.25_0
--->  Cleaning ddrescue
--->  Uninstalling ddrescue @1.25_0
--->  Cleaning ddrescue
--->  Computing dependencies for ddrescue
--->  Installing ddrescue @1.25_0
--->  Activating ddrescue @1.25_0
--->  Cleaning ddrescue
--->  Scanning binaries for linking errors
--->  No broken files found.
Error: Port ddrescue is still broken after rebuilding it more than 3 times.
Error: Please run port -d -y rev-upgrade and use the output to report a bug.
Error: rev-upgrade failed: Port ddrescue still broken after rebuilding 3 times
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
bash-3.2$ 

Here is the output of "port -d -y rev-upgrade":

bash-3.2$ sudo port -d -y rev-upgrade 
DEBUG: Copying /Users/grinch/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
--->  Scanning binaries for linking errors
DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/ld64/ld-274
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/bugpoint
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/dsymutil
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llc
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/lli
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-ar
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-as
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-bcanalyzer
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-c-test
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-cat
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-cfi-verify
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-config
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-cov
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-cvtres
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-cxxdump
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-cxxfilt
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-cxxmap
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-diff
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-dis
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-dwarfdump
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-dwp
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-elfabi
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-exegesis
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-extract
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-jitlink
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-link
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-lipo
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-lto
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-lto2
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-mc
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-mca
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-modextract
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-mt
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-nm
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-objcopy
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-objdump
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-opt-report
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-pdbutil
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-profdata
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-rc
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-readobj
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-rtdyld
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-size
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-split
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-stress
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-strings
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-symbolizer
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-undname
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/llvm-xray
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/obj2yaml
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/opt
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/sancov
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/sanstats
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/verify-uselistorder
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/yaml2obj
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/lib/libLTO.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/lib/libRemarks.dylib
DEBUG: skipping ppc in /opt/local/share/cmake-3.18/Modules/Internal/CPack/CPack.OSXScriptLauncher.in since this system can't run it anyway
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/c-index-test
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/c-index-test
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-apply-replacements
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-change-namespace
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-check
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-check
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-doc
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-extdef-mapping
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-extdef-mapping
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-format
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-format
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-import-test
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-import-test
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-include-fixer
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-offload-bundler
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-offload-bundler
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-query
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-refactor
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-refactor
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-rename
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-rename
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-reorder-fields
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-scan-deps
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-scan-deps
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/clang-tidy
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/diagtool
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/diagtool
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/find-all-symbols
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/bin/modularize
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/lib/libclang-cpp.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/libexec/llvm-9.0/lib/libclang.dylib
--->  No broken files found.
ddrescue is using libstdc++ (this installation is configured to use libc++)
--->  Found 1 broken port, determining rebuild order
DEBUG: Broken: ddrescue
DEBUG: Processing port ddrescue @0:1.25_0  
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: ddrescue @1.25
Continue? [Y/n]: Y
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: ddrescue 1.25_0 exists in the ports tree
DEBUG: ddrescue 1.25_0  is the latest installed
DEBUG: ddrescue 1.25_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/sysutils/ddrescue
DEBUG: OS darwin/11.4.2 (macOS 10.7) arch i386
DEBUG: Sourcing PortGroup gnu_info 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/gnu_info-1.0.tcl
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: cxx_stdlib mismatch ... upgrading!
DEBUG: epoch: in tree: 20091025 installed: 20091025
DEBUG: lzip 1.21_0 exists in the ports tree
DEBUG: lzip 1.21_0  is the latest installed
DEBUG: lzip 1.21_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/archivers/lzip
DEBUG: OS darwin/11.4.2 (macOS 10.7) arch i386
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! lzip 1.21_0 >= lzip 1.21_0
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: texinfo 6.7_1 exists in the ports tree
DEBUG: texinfo 6.7_1  is the latest installed
DEBUG: texinfo 6.7_1  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/texinfo
DEBUG: OS darwin/11.4.2 (macOS 10.7) arch i386
DEBUG: Sourcing PortGroup clang_dependency 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/clang_dependency-1.0.tcl
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! texinfo 6.7_1 >= texinfo 6.7_1
DEBUG: epoch: in tree: 2 installed: 2
DEBUG: gettext 0.19.8.1_2 exists in the ports tree
DEBUG: gettext 0.19.8.1_2  is the latest installed
DEBUG: gettext 0.19.8.1_2  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/gettext
DEBUG: OS darwin/11.4.2 (macOS 10.7) arch i386
DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Sourcing PortGroup muniversal 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Sourcing PortGroup clang_dependency 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/clang_dependency-1.0.tcl
DEBUG: compiler clang 425.0.28 not blacklisted because it doesn't match {clang < 211.10.1}
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! gettext 0.19.8.1_2 >= gettext 0.19.8.1_2
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: libiconv 1.16_1 exists in the ports tree
DEBUG: libiconv 1.16_1  is the latest installed
DEBUG: libiconv 1.16_1  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/libiconv
DEBUG: OS darwin/11.4.2 (macOS 10.7) arch i386
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Sourcing PortGroup muniversal 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Sourcing PortGroup clang_dependency 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/clang_dependency-1.0.tcl
DEBUG: Sourcing PortGroup xcodeversion 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/xcodeversion-1.0.tcl
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! libiconv 1.16_1 >= libiconv 1.16_1
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: ncurses 6.2_0 exists in the ports tree
DEBUG: ncurses 6.2_0  is the latest installed
DEBUG: ncurses 6.2_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ncurses
DEBUG: OS darwin/11.4.2 (macOS 10.7) arch i386
DEBUG: Sourcing PortGroup clang_dependency 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/clang_dependency-1.0.tcl
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! ncurses 6.2_0 >= ncurses 6.2_0
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: perl5.30 5.30.3_0 exists in the ports tree
DEBUG: perl5.30 5.30.3_0  is the latest installed
DEBUG: perl5.30 5.30.3_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/perl5
DEBUG: OS darwin/11.4.2 (macOS 10.7) arch i386
DEBUG: Re-registering default for configure.universal_args
DEBUG: Sourcing PortGroup perl5 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/perl5-1.0.tcl
DEBUG: Sourcing PortGroup clang_dependency 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/clang_dependency-1.0.tcl
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! perl5.30 5.30.3_0 >= perl5.30 5.30.3_0
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: db48 4.8.30_4 exists in the ports tree
DEBUG: db48 4.8.30_4  is the latest installed
DEBUG: db48 4.8.30_4  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/databases/db48
DEBUG: OS darwin/11.4.2 (macOS 10.7) arch i386
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Sourcing PortGroup muniversal 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Sourcing PortGroup clang_dependency 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/clang_dependency-1.0.tcl
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! db48 4.8.30_4 >= db48 4.8.30_4
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: gdbm 1.18.1_1 exists in the ports tree
DEBUG: gdbm 1.18.1_1  is the latest installed
DEBUG: gdbm 1.18.1_1  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/databases/gdbm
DEBUG: OS darwin/11.4.2 (macOS 10.7) arch i386
DEBUG: Sourcing PortGroup clang_dependency 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/clang_dependency-1.0.tcl
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! gdbm 1.18.1_1 >= gdbm 1.18.1_1
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: readline 8.0.000_0 exists in the ports tree
DEBUG: readline 8.0.000_0  is the latest installed
DEBUG: readline 8.0.000_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/readline
DEBUG: OS darwin/11.4.2 (macOS 10.7) arch i386
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Sourcing PortGroup muniversal 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Sourcing PortGroup clang_dependency 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/clang_dependency-1.0.tcl
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! readline 8.0.000_0 >= readline 8.0.000_0
DEBUG: dropping privileges: euid changed to 503, egid changed to 501.
DEBUG: Starting logging for ddrescue
DEBUG: Mac OS X 10.7 (darwin/11.4.2) arch i386
DEBUG: MacPorts 2.6.4
DEBUG: Xcode 4.6.3
DEBUG: SDK 10.7
DEBUG: MACOSX_DEPLOYMENT_TARGET: 10.7
For ddrescue: skipping org.macports.main (dry run)
DEBUG: dropping privileges: euid changed to 503, egid changed to 501.
    .. and skipping org.macports.archivefetch
DEBUG: dropping privileges: euid changed to 503, egid changed to 501.
DEBUG: Starting logging for ddrescue
DEBUG: Mac OS X 10.7 (darwin/11.4.2) arch i386
DEBUG: MacPorts 2.6.4
DEBUG: Xcode 4.6.3
DEBUG: SDK 10.7
DEBUG: MACOSX_DEPLOYMENT_TARGET: 10.7
--->  Computing dependencies for ddrescue
DEBUG: Searching for dependency: lzip
DEBUG: Found Dependency: receipt exists for lzip
DEBUG: Searching for dependency: texinfo
DEBUG: Found Dependency: receipt exists for texinfo
    .. and skipping org.macports.main
DEBUG: dropping privileges: euid changed to 503, egid changed to 501.
    .. and skipping org.macports.fetch
DEBUG: Privilege de-escalation not attempted as not running as root.
    .. and skipping org.macports.checksum
DEBUG: Privilege de-escalation not attempted as not running as root.
    .. and skipping org.macports.extract
DEBUG: Privilege de-escalation not attempted as not running as root.
    .. and skipping org.macports.patch
DEBUG: Privilege de-escalation not attempted as not running as root.
    .. and skipping org.macports.configure
DEBUG: Privilege de-escalation not attempted as not running as root.
    .. and skipping org.macports.build
DEBUG: Privilege de-escalation not attempted as not running as root.
    .. and skipping org.macports.destroot
DEBUG: Uninstalling ddrescue 1.25_0
Skipping uninstall ddrescue @1.25_0 (dry run)
Skipping activate ddrescue @1.25_0 (dry run)
DEBUG: Rebuilding port ddrescue finished with status 0
Warning: If this was no dry run, rev-upgrade would now run the checks again to find unresolved and newly created problems
bash-3.2$ 

Change History (7)

comment:1 Changed 3 years ago by RobK88

P.S. I am using libc++ on Lion. Looks like that might be the problem.

comment:2 Changed 3 years ago by kencu (Ken)

You should keep using libc++ on Lion, otherwise you will have untold horrors dealt up on you :> .

Ignore those @rpath warnings -- they are just noise for this error. I build clang with the @rpath turned on as it really needs that to work.

The issue here is with ddrescue, that is forcing libstdc++ somehow. I'll take a look and see why that is.

comment:3 Changed 3 years ago by kencu (Ken)

ddrescue is not using the CXXFLAGS and most other flags that MacPorts provides, for example see this build on 10.6.8:

creating config.status
creating Makefile
VPATH = .
prefix = /opt/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
datarootdir = $(prefix)/share
infodir = $(datarootdir)/info
mandir = $(datarootdir)/man
CXX = /opt/local/bin/clang++-mp-9.0
CPPFLAGS = 
CXXFLAGS = -Wall -W -O2
LDFLAGS = 
OK. Now you can run make.
--->  Building ddrescue
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_ddrescue/ddrescue/work/ddrescue-1.25" && /usr/bin/make -j4 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_ddrescue/ddrescue/work/ddrescue-1.25'
/opt/local/bin/clang++-mp-9.0  -Wall -W -O2 -c -o arg_parser.o arg_parser.cc
/opt/local/bin/clang++-mp-9.0  -Wall -W -O2 -c -o rational.o rational.cc

it runs with the compiler defaults... and on 10.7.5 clang defaults to libstdc++ if not told otherwise.

To build it for today, please just build it with clang-9.0; I have adjusted the clang-9.0 defaults to make that work. So this works:

sudo port clean ddrescue
sudo port -v install ddrescure configure.compiler=macports-clang-9.0

to fix this properly the port will need to be surgerized to use MacPorts flags and environment variables properly.

Last edited 3 years ago by kencu (Ken) (previous) (diff)

comment:4 Changed 3 years ago by kencu (Ken)

this PR is meant to fix this issue <https://github.com/macports/macports-ports/pull/9255>

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: raimue@… removed
Keywords: snowleopard lion mountainlion added; Lion removed
Owner: set to raimue
Status: newassigned
Summary: Unable to Install ddrescue on Lion -- Broken portddrescue: Builds with wrong C++ stdlib; doesn't use MacPorts CXXFLAGS/LDFLAGS

comment:6 Changed 3 years ago by RobK88

Thanks Ken. I was able to build and install ddrescue using clang-9.0 but I had to uninstall ddrescue first.

I tried "sudo port clean ddrescue" as you suggested but that not not enough. The build still failed with broken port. But after I did "sudo port uninstall ddrescue", I was able to build and install ddrescue using "sudo port -v install ddrescue configure.compiler=macports-clang-9.0"

Thanks again!

comment:7 Changed 3 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 78bf4b97bcaac88cea28f724fa2582b1062a536f/macports-ports (master):

ddrescue: use all needed flags

closes: #61664

Note: See TracTickets for help on using tickets.