[MacPorts] #59340: libgcc9 @9.2.0 +universal: fails to build using 10.13 SDK

MacPorts noreply at macports.org
Wed Oct 16 00:00:04 UTC 2019


#59340: libgcc9 @9.2.0 +universal: fails to build using 10.13 SDK
----------------------+--------------------
  Reporter:  gverm    |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.1
Resolution:           |   Keywords:
      Port:  libgcc9  |
----------------------+--------------------

Comment (by kencu):

 So -- this is where we want to be able to go with MacPorts - building
 against any SDK we specify -- but it's right at the cusp of our tech to be
 forcing `gcc9` to bend to our will like this. The commit that might make
 this work only came into MacPorts a couple of days ago.

 That being said, it is actually using the right SDK during the build,
 which is nice to see.

 It gets hung up:
 {{{
 :info:build libtool: compile:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/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_gcc9/libgcc9/work/build/./gcc
 -nostdinc++
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/src
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/src/.libs
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/libsupc++/.libs -B/opt/local/x86_64-apple-
 darwin18/bin/ -B/opt/local/x86_64-apple-darwin18/lib/ -isystem
 /opt/local/x86_64-apple-darwin18/include -isystem /opt/local/x86_64-apple-
 darwin18/sys-include -fno-checking
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/../libgcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include/x86_64-apple-darwin18
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/libsupc++
 -std=gnu++17 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra
 -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once
 -ffunction-sections -fdata-sections -frandom-seed=fs_ops.lo -fimplicit-
 templates -g -O2 -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/src/c++17/fs_ops.cc
 -fno-common -DPIC -D_GLIBCXX_SHARED -o fs_ops.o
 :info:build libtool: compile:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/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_gcc9/libgcc9/work/build/./gcc
 -nostdinc++
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/src
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/src/.libs
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/libsupc++/.libs -B/opt/local/x86_64-apple-
 darwin18/bin/ -B/opt/local/x86_64-apple-darwin18/lib/ -isystem
 /opt/local/x86_64-apple-darwin18/include -isystem /opt/local/x86_64-apple-
 darwin18/sys-include -fno-checking
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/../libgcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include/x86_64-apple-darwin18
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/libsupc++
 -std=gnu++17 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra
 -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once
 -ffunction-sections -fdata-sections -frandom-seed=cow-fs_ops.lo
 -fimplicit-templates -g -O2 -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/src/c++17
 /cow-fs_ops.cc  -fno-common -DPIC -D_GLIBCXX_SHARED -o cow-fs_ops.o
 :info:build libtool: compile:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/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_gcc9/libgcc9/work/build/./gcc
 -nostdinc++
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/src
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/src/.libs
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/libsupc++/.libs -B/opt/local/x86_64-apple-
 darwin18/bin/ -B/opt/local/x86_64-apple-darwin18/lib/ -isystem
 /opt/local/x86_64-apple-darwin18/include -isystem /opt/local/x86_64-apple-
 darwin18/sys-include -fno-checking
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/../libgcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include/x86_64-apple-darwin18
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/libsupc++
 -std=gnu++17 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra
 -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once
 -ffunction-sections -fdata-sections -frandom-seed=cow-fs_path.lo
 -fimplicit-templates -g -O2 -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/src/c++17
 /cow-fs_path.cc  -fno-common -DPIC -D_GLIBCXX_SHARED -o cow-fs_path.o
 :info:build libtool: compile:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/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_gcc9/libgcc9/work/build/./gcc
 -nostdinc++
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/src
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/src/.libs
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/libsupc++/.libs -B/opt/local/x86_64-apple-
 darwin18/bin/ -B/opt/local/x86_64-apple-darwin18/lib/ -isystem
 /opt/local/x86_64-apple-darwin18/include -isystem /opt/local/x86_64-apple-
 darwin18/sys-include -fno-checking
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/../libgcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include/x86_64-apple-darwin18
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/libsupc++
 -std=gnu++17 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra
 -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once
 -ffunction-sections -fdata-sections -frandom-seed=cow-fs_dir.lo
 -fimplicit-templates -g -O2 -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/src/c++17
 /cow-fs_dir.cc  -fno-common -DPIC -D_GLIBCXX_SHARED -o cow-fs_dir.o
 :info:build libtool: compile:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/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_gcc9/libgcc9/work/build/./gcc
 -nostdinc++
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/src
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/src/.libs
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/libsupc++/.libs -B/opt/local/x86_64-apple-
 darwin18/bin/ -B/opt/local/x86_64-apple-darwin18/lib/ -isystem
 /opt/local/x86_64-apple-darwin18/include -isystem /opt/local/x86_64-apple-
 darwin18/sys-include -fno-checking
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/../libgcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include/x86_64-apple-darwin18
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/libsupc++
 -std=gnu++17 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra
 -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once
 -ffunction-sections -fdata-sections -frandom-seed=fs_dir.lo -fimplicit-
 templates -g -O2 -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/src/c++17/fs_dir.cc
 -fno-common -DPIC -D_GLIBCXX_SHARED -o fs_dir.o
 :info:build In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include/bits/node_handle.h:39,
 :info:build                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include/bits/hashtable.h:37,
 :info:build                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include/unordered_map:46,
 :info:build                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include/functional:61,
 :info:build                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/src/c++17/fs_ops.cc:32,
 :info:build                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.2.0/libstdc++-v3/src/c++17
 /cow-fs_ops.cc:26:
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/x86_64
 -apple-darwin18/libstdc++-v3/include/optional:43:10: fatal error:
 bits/enable_special_members.h: No such file or directory
 :info:build    43 | #include <bits/enable_special_members.h>
 :info:build       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build compilation terminated.
 }}}
 on my systems, we have that header here (10.6.8)
 {{{
 $ locate enable_special_members.h
 /opt/local/include/gcc/c++/bits/enable_special_members.h
 /opt/local/include/gcc5/c++/bits/enable_special_members.h
 /opt/local/include/gcc6/c++/bits/enable_special_members.h
 /opt/local/include/gcc8/c++/bits/enable_special_members.h
 }}}
 Have to sort it out further from here...

-- 
Ticket URL: <https://trac.macports.org/ticket/59340#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list