[MacPorts] #62564: pdftk fails to build with link error 'library not found for -lgcc_s.10.4'.

MacPorts noreply at macports.org
Fri Mar 26 07:30:24 UTC 2021


#62564: pdftk fails to build with link error 'library not found for -lgcc_s.10.4'.
-------------------------+-------------------------------------------------
 Reporter:               |      Owner:  (none)
  wealthychef1           |
     Type:  defect       |     Status:  new
 Priority:  High         |  Milestone:
Component:  ports        |    Version:  2.6.4
 Keywords:               |       Port:  pdftk-java @3.2.2 (textproc,
                         |  graphics, pdf, java)
-------------------------+-------------------------------------------------
 {{{
 rcook at Richards-iMac (tmp ): xcode-select --install
 xcode-select: error: command line tools are already installed, use
 "Software Update" to install updates
 rcook at Richards-iMac (tmp ): sudo touch
 /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
 Password:
 Sorry, try again.
 Password:
 rcook at Richards-iMac (tmp ): sudo -s
 xauth: (argv):1:  key contains odd number of or non-hex characters
 root at Richards-iMac (~ ): softwareupdate -l
 Software Update Tool


 Finding available software
 Software Update found the following new or updated software:
 * Label: Command Line Tools for Xcode-12.4
     Title: Command Line Tools for Xcode, Version: 12.4, Size: 440392K,
 Recommended: YES,
 root at Richards-iMac (~ ): softwareupdate -i 'Command Line Tools for
 Xcode-12.4'. # use LABEL, not TITLE!!!
 Software Update Tool


 Finding available software


 Downloading Command Line Tools for Xcode
 Downloaded Command Line Tools for Xcode
 Installing Command Line Tools for Xcode
 Done with Command Line Tools for Xcode
 Done.
 root at Richards-iMac (~ ): xcodebuild -license
 Xcode and Apple SDKs Agreement
 ... blah blah root at Richards-iMac (~ ): port install pdftk
 Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not
 build correctly.
 Warning: You can install it as part of the Xcode Command Line Tools
 package by running `xcode-select --install'.
 --->  Computing dependencies for pdftk
 The following dependencies will be installed:
  gcc5
  libgcc6
  libgcc7
 Continue? [Y/n]: n
 --->  Scanning binaries for linking errors
 --->  No broken files found.
 --->  No broken ports found.
 root at Richards-iMac (~ ): port install pdftk
 Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not
 build correctly.
 Warning: You can install it as part of the Xcode Command Line Tools
 package by running `xcode-select --install'.
 --->  Computing dependencies for pdftk
 The following dependencies will be installed:
  gcc5
  libgcc6
  libgcc7
 Continue? [Y/n]:
 Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not
 build correctly.
 Warning: You can install it as part of the Xcode Command Line Tools
 package by running `xcode-select --install'.


 --->  Fetching archive for libgcc7
 --->  Attempting to fetch libgcc7-7.5.0_0.darwin_20.x86_64.tbz2 from
 http://jog.id.packages.macports.org/macports/packages/libgcc7
 --->  Attempting to fetch libgcc7-7.5.0_0.darwin_20.x86_64.tbz2 from
 https://kmq.jp.packages.macports.org/libgcc7
 --->  Attempting to fetch libgcc7-7.5.0_0.darwin_20.x86_64.tbz2 from
 https://pek.cn.packages.macports.org/macports/packages/libgcc7
 --->  Building libgcc7
 Error: Failed to build libgcc7: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port pdftk failed
 root at Richards-iMac (~ ):

 }}}


 Here is the tail of the referenced log file:

 {{{
 :info:build libtool: link:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/./gcc/xgcc
 -shared-libgcc
 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/./gcc
 -nostdinc++
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64
 -apple-darwin20/libstdc++-v3/src
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64
 -apple-darwin20/libstdc++-v3/src/.libs
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64
 -apple-darwin20/libstdc++-v3/libsupc++/.libs -B/opt/local/x86_64-apple-
 darwin20/bin/ -B/opt/local/x86_64-apple-darwin20/lib/ -isystem
 /opt/local/x86_64-apple-darwin20/include -isystem /opt/local/x86_64-apple-
 darwin20/sys-include    -dynamiclib  -o .libs/libstdc++.6.dylib
 .libs/libstdc++.6.dylib-master.o
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64
 -apple-darwin20/libstdc++-v3/libsupc++/.libs
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64
 -apple-darwin20/libstdc++-v3/src
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64
 -apple-darwin20/libstdc++-v3/src/.libs -lm  -Wl,-exported_symbols_list
 -Wl,libstdc++-symbols.explist   -install_name
 /opt/local/lib/libgcc/libstdc++.6.dylib -compatibility_version 7
 -current_version 7.24
 :info:build xgcc: warning: couldn't understand version 11.2
 :info:build ld: library not found for -lgcc_s.10.4
 :info:build collect2: error: ld returned 1 exit status
 :info:build make[6]: *** [libstdc++.la] Error 1
 :info:build make[6]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64
 -apple-darwin20/libstdc++-v3/src'
 :info:build make[5]: *** [all-recursive] Error 1
 :info:build make[5]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64
 -apple-darwin20/libstdc++-v3/src'
 :info:build make[4]: *** [all-recursive] Error 1
 :info:build make[4]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64
 -apple-darwin20/libstdc++-v3'
 :info:build make[3]: *** [all] Error 2
 :info:build make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64
 -apple-darwin20/libstdc++-v3'
 :info:build make[2]: *** [all-stage1-target-libstdc++-v3] Error 2
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build'
 :info:build make[1]: *** [stage1-bubble] Error 2
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build'
 :info:build make: *** [bootstrap-lean] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build"
 && /usr/bin/make -j4 -w bootstrap-lean
 :info:build Exit code: 2
 :error:build Failed to build libgcc7: command execution failed
 :debug:build Error code: CHILDSTATUS 68953 2
 :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"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/main.log
 for details.

 }}}

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


More information about the macports-tickets mailing list