Opened 3 years ago

Closed 2 years ago

#63780 closed defect (fixed)

Failed to build libgcc11 on mac M1

Reported by: septiaeka Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: monterey arm64 Cc: dkoes (David Koes), cooljeanius (Eric Gallager)
Port: libgcc11

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi, I want to install the xcrysden by using mac port, but I got this error. I did not know why, please help me,

Error: Failed to build libgcc11: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc11/libgcc11/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port gcc11 failed

Attachments (3)

main.log.zip (1.6 MB) - added by juanalexei 3 years ago.
config.log (37.3 KB) - added by juanalexei 3 years ago.
config.log from the build folder
config.2.log (20.0 KB) - added by juanalexei 3 years ago.
config.log from libgomp folder

Download all attachments as: .zip

Change History (11)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: monterey arm64 added
Port: libgcc11 added

Please attach the main.log.

Changed 3 years ago by juanalexei

Attachment: main.log.zip added

Changed 3 years ago by juanalexei

Attachment: config.log added

config.log from the build folder

Changed 3 years ago by juanalexei

Attachment: config.2.log added

config.log from libgomp folder

comment:2 Changed 3 years ago by dkoes (David Koes)

Cc: dkoes added

comment:3 Changed 3 years ago by dkoes (David Koes)

I have this same problem on an M1 macbook. Additionally, if you try to install gcc11 on a clean system, it is missing the zstd dependency and you get a build error (once you install zstd, you get this error).

comment:4 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:5 Changed 3 years ago by gregreedee

I too have this problem ... M1 MacBook running Monterey 13.01, Macports 2.7.1. My zipped main.log file is over 3Mb ... will submit on request, tho' may be redundant.

comment:6 Changed 3 years ago by ecneufseptkat

I am trying to install gcc11 on Macbook pro M1 running Monterey 12.0.1 and I have the same problem. Similar logfile with same error. I tried to clean port install, install older version libgcc9, but depencies to libgcc11 still required and install failed.

comment:7 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

All released versions of gcc are incompatible with Apple Silicon. Use the libgcc-devel and gcc-devel ports for compatibility with Apple Silicon for now, until gcc12 is released, which will hopefully be compatible.

Has duplicate #64184

comment:8 Changed 2 years ago by cjones051073 (Chris Jones)

Resolution: fixed
Status: newclosed

gcc11 now builds on apple silicon machines

Note: See TracTickets for help on using tickets.