[MacPorts] #58776: macOS 10.15 libgcc9 fails to build with Xcode 11 (was: libgcc9 fails to build with Xcode 11)

MacPorts noreply at macports.org
Wed Jul 31 09:29:13 UTC 2019


#58776: macOS 10.15 libgcc9 fails to build with Xcode 11
-----------------------+--------------------------------
  Reporter:  vdoublie  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  segmentation fault
      Port:  libgcc9   |
-----------------------+--------------------------------
Description changed by vdoublie:

Old description:

> libgcc9 build using Xcode 11 fails to build
> 1- MacPorts installed from git source using Xcode 11
> 2- System: macOS 10.15
> ---
> 2 errors:
>
> 1-
> {{{
> info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/b
> uild/./gcc/xgcc
> -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/
> work/build/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-
> test=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.or
> g_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/gcc/testsuite/selftests
> :info:build <built-in>: internal compiler error: Segmentation fault: 11
> :info:build libbacktrace could not find executable to open
> }}}
>

> 2-
> {{{
> :info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/b
> uild/./gcc/xgcc
> -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/
> work/build/./gcc/ -B/opt/local/x86_64-apple-darwin19/bin/
> -B/opt/local/x86_64-apple-darwin19/lib/ -isystem /opt/local/x86_64-apple-
> darwin19/include -
> isystem /opt/local/x86_64-apple-darwin19/sys-include   -fno-checking -g
> -O2 -pipe -Os
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.s
> dk -O2  -g -O2 -pipe -Os
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
> -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast
> -qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-
> definition  -isystem ./include   -mmacosx-version-min=10.5 -pipe -fno-
> common -
> g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -mmacosx-version-
> min=10.5 -pipe -fno-common -I. -I. -I../.././gcc
> -I/opt/local/var/macports/b
> uild/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc
> -I/opt/local/var/macp
> orts/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc/.
> -I/opt/local/
> var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc/../gcc
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/l
> ibgcc/../include    -o _multc3_s.o -MT _multc3_s.o -MD -MP -MF
> _multc3_s.dep -DSHARED -DL_multc3 -c
> /opt/local/var/macports/build/_opt_local_var_macp
> orts_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc/libgcc2.c
> :info:build during RTL pass: expand
> :info:build In file included from types:56:
> :info:build types: In function '__mulxc3':
> :info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc/libgcc2.h:256:16:
> internal compiler error: Segmentation fault: 11
> :info:build   256 | #define __N(a) __ ## a
> :info:build       |                ^~
> :info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc/libgcc2.h:357:19:
> note: in expansion of macro '__N'
> :info:build   357 | #define __mulxc3  __N(mulxc3)
> :info:build       |                   ^~~
> :info:build types:1937:25: note: in expansion of macro '__mulxc3'
> :info:build  1937 | #define _CONCAT3(A,B,C) A##B##C
> :info:build       |                         ^
> :info:build types:1936:24: note: in expansion of macro '_CONCAT3'
> :info:build  1967 | CONCAT3(__mul,MODE,3) (MTYPE a, MTYPE b, MTYPE c,
> MTYPE d)
> :info:build       | ^~~~~~~
> :info:build libbacktrace could not find executable to open
> }}}
>
> included:
> -1 main.log

New description:

 libgcc9 build using Xcode 11 fails to build
 1- MacPorts installed from git source using Xcode 11
 2- System: macOS 10.15
 ---
 2 errors:

 1-
 {{{
 info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/b
 uild/./gcc/xgcc
 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/
 work/build/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-
 test=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.or
 g_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/gcc/testsuite/selftests
 :info:build <built-in>: internal compiler error: Segmentation fault: 11
 :info:build libbacktrace could not find executable to open
 }}}


 2-
 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/b
 uild/./gcc/xgcc
 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/
 work/build/./gcc/ -B/opt/local/x86_64-apple-darwin19/bin/
 -B/opt/local/x86_64-apple-darwin19/lib/ -isystem /opt/local/x86_64-apple-
 darwin19/include -
 isystem /opt/local/x86_64-apple-darwin19/sys-include   -fno-checking -g
 -O2 -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.s
 dk -O2  -g -O2 -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -DIN_GCC
 -W -Wall -Wno-narrowing -Wwrite-strings -Wcast
 -qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-
 definition  -isystem ./include   -mmacosx-version-min=10.5 -pipe -fno-
 common -
 g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -mmacosx-version-
 min=10.5 -pipe -fno-common -I. -I. -I../.././gcc
 -I/opt/local/var/macports/b
 uild/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc
 -I/opt/local/var/macp
 orts/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc/.
 -I/opt/local/
 var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc/../gcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/l
 ibgcc/../include    -o _multc3_s.o -MT _multc3_s.o -MD -MP -MF
 _multc3_s.dep -DSHARED -DL_multc3 -c
 /opt/local/var/macports/build/_opt_local_var_macp
 orts_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc/libgcc2.c
 :info:build during RTL pass: expand
 :info:build In file included from types:56:
 :info:build types: In function '__mulxc3':
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc/libgcc2.h:256:16:
 internal compiler error: Segmentation fault: 11
 :info:build   256 | #define __N(a) __ ## a
 :info:build       |                ^~
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/gcc-9.1.0/libgcc/libgcc2.h:357:19:
 note: in expansion of macro '__N'
 :info:build   357 | #define __mulxc3  __N(mulxc3)
 :info:build       |                   ^~~
 :info:build types:1937:25: note: in expansion of macro '__mulxc3'
 :info:build  1937 | #define _CONCAT3(A,B,C) A##B##C
 :info:build       |                         ^
 :info:build types:1936:24: note: in expansion of macro '_CONCAT3'
 :info:build  1967 | CONCAT3(__mul,MODE,3) (MTYPE a, MTYPE b, MTYPE c,
 MTYPE d)
 :info:build       | ^~~~~~~
 :info:build libbacktrace could not find executable to open
 }}}

 included:
 -1 main.log

 it also fails under macOS 10.14 Xcode 11 but at a different place
 will create new tickets to 10.14

--

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


More information about the macports-tickets mailing list