[MacPorts] #69632: gcc10-bootstrap does not work on 14.4.1: error: missing ')' after "__has_attribute"

MacPorts noreply at macports.org
Sun Mar 31 07:36:22 UTC 2024


#69632: gcc10-bootstrap does not work on 14.4.1: error: missing ')' after
"__has_attribute"
--------------------------+-----------------------------
 Reporter:  barracuda156  |      Owner:  catap
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.9.1
 Keywords:  sonoma        |       Port:  gcc10-bootstrap
--------------------------+-----------------------------
 Since the current Apple clang cannot build gcc on Sonoma #69631 I have
 tried to build it with `gcc10-bootstrap`. It seems not to work either, but
 failing already at configure:
 {{{
 configure:4506: checking whether the C compiler works
 configure:4528: /opt/local/libexec/gcc10-bootstrap/bin/gcc -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 conftest.c  >&5
 configure:4532: $? = 0
 configure:4580: result: yes
 configure:4583: checking for C compiler default output file name
 configure:4585: result: a.out
 configure:4591: checking for suffix of executables
 configure:4598: /opt/local/libexec/gcc10-bootstrap/bin/gcc -o conftest
 -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 conftest.c  >&5
 configure:4602: $? = 0
 configure:4624: result:
 configure:4646: checking whether we are cross compiling
 configure:4654: /opt/local/libexec/gcc10-bootstrap/bin/gcc -o conftest
 -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 conftest.c  >&5
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_stdio.h:68,
                  from /opt/local/libexec/gcc10-bootstrap/lib/gcc/aarch64
 -apple-darwin23/10.5.0/include-fixed/stdio.h:78,
                  from conftest.c:9:
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:554:30:
 error: missing ')' after "__has_attribute"
   554 | #if __has_cpp_attribute(clang::unsafe_buffer_usage)
       |                              ^~
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:554:32:
 error: missing binary operator before token "unsafe_buffer_usage"
   554 | #if __has_cpp_attribute(clang::unsafe_buffer_usage)
       |                                ^~~~~~~~~~~~~~~~~~~
 configure:4658: $? = 1
 configure:4665: ./conftest
 /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc-devel
 /libgcc-devel/work/gcc-14-20240324/configure: line 4667: ./conftest: No
 such file or directory
 configure:4669: $? = 127
 configure:4676: error: in `/opt/local/var/macports/build
 /_opt_svacchanda_SonomaPorts_lang_gcc-devel/libgcc-devel/work/build':
 configure:4678: error: cannot run C compiled programs.
 If you meant to cross compile, use `--host'.
 See `config.log' for more details
 }}}

 Am I doing something wrong?

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


More information about the macports-tickets mailing list