#68358 closed defect (fixed)

libgcc13 @13.2.0: error: expected ')'

Reported by: tcwan (TC Wan) Owned by: Chris Jones <jonesc@…>
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc:
Port: libgcc13

Description

Running on Sonoma 14.0 on M2 Mini. The build fails with an error, but it is too verbose for me to parse the cause.

Attachments (1)

libgcc13-build.log.gz (163.1 KB) - added by tcwan (TC Wan) 13 months ago.
libgcc13 build log

Download all attachments as: .zip

Change History (5)

Changed 13 months ago by tcwan (TC Wan)

Attachment: libgcc13-build.log.gz added

libgcc13 build log

comment:1 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sonoma added; Sonoma removed
Summary: Build of libgcc13 fails on Sonomalibgcc13 @13.2.0: error: expected ')'
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc13/libgcc13/work/gcc-13.2.0/gcc/lto-compress.cc:26:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc13/libgcc13/work/gcc-13.2.0/gcc/tree.h:1302:1: error: expected ')'
ATTRIBUTE_WARN_UNUSED_RESULT
^
/opt/local/include/ansidecl.h:282:56: note: expanded from macro 'ATTRIBUTE_WARN_UNUSED_RESULT'
#  define ATTRIBUTE_WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
                                                       ^
./options.h:4266:42: note: expanded from macro 'warn_unused_result'
#define warn_unused_result global_options.x_warn_unused_result
                                         ^

comment:2 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

The mention of "/opt/local/include/ansidecl.h" may be the relevant bit. The binutils and gdb ports install this file. Do you have either of those installed? If so, try deactivating them (sudo port deactivate binutils or sudo port deactivate gdb), then cleaning libgcc13 (sudo port clean libgcc13) and trying again. Having binutils installed is known to cause some ports to fail to build; I don't recall if gcc is one of them.

comment:3 Changed 13 months ago by tcwan (TC Wan)

Yes, I had gdb installed. Thanks, the workaround managed to solve the error when building libgcc13.

comment:4 Changed 13 months ago by Chris Jones <jonesc@…>

Owner: set to Chris Jones <jonesc@…>
Resolution: fixed
Status: newclosed

In 377b4f80b31ede5284a54755902ad61f3eeb6e01/macports-ports (master):

gcc13: Add gdb to conflicts_builds list
Closes: #68358

Note: See TracTickets for help on using tickets.