Opened 5 years ago
Last modified 3 years ago
#59340 new defect
libgcc9 @9.2.0 +universal: fails to build using 10.13 SDK on 10.14
Reported by: | gverm (Gijs Vermeulen) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.1 |
Keywords: | Cc: | cooljeanius (Eric Gallager) | |
Port: | libgcc9 |
Description
I'm running macOS Mojave (fully updated) with XCode 11.1.
I patched/configured MacPorts to always use the 10.13 SDK.
Log file is attached.
Attachments (1)
Change History (7)
Changed 5 years ago by gverm (Gijs Vermeulen)
Attachment: | main.tar.xz added |
---|
comment:1 Changed 5 years ago by gverm (Gijs Vermeulen)
Replying to gverm:
I patched/configured MacPorts to always use the 10.13 SDK.
I did this by setting macosx_deployment_target 10.13 & macosx_sdk_version 10.13 in macports.conf.
comment:2 Changed 5 years ago by kencu (Ken)
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...
comment:3 Changed 5 years ago by jmroot (Joshua Root)
Summary: | libgcc9 @9.2.0 +universal: fails to build using 10.13 SDK → libgcc9 @9.2.0 +universal: fails to build using 10.13 SDK on 10.14 |
---|
comment:4 Changed 5 years ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
comment:5 Changed 3 years ago by hemmlj
MacPorts upgrade on MacOs 12 Monterey: See Ticket https://trac.macports.org/ticket/64372 for help on this issue: Tipp there is "install gcc11 or gcc-devel". You will have to force deactivate and clean some dependent libraries when cleaning your system from libgcc and libgcc10. I selected to install gcc-devel. Hope that helps!
comment:6 Changed 3 years ago by hemmlj
Please add keyword "12.0" to have this ticket reported in the ticket report for MacOs 12 Montery. Thanks!
compressed log