Opened 12 months ago

Closed 12 months ago

Last modified 10 months ago

#59351 closed defect (fixed)

Cannot compile gfortran (or even libgcc7) under Catalina

Reported by: thepeteriley (Pete Riley) Owned by: Chris Jones <jonesc@…>
Priority: Normal Milestone:
Component: ports Version:
Keywords: catalina Cc: LeoFCardoso (Leonardo)
Port: gcc7

Description (last modified by kencu (Ken))

Following the instructions, including a clean install of Catalina and a clean install of Macports, after getting a first round of errors, then forcibly deactivating libunwind-headers, the installation of gfortran continued until:

--->  Building libgcc7
Error: Failed to build libgcc7: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port gcc6 failed

I'm happy to send a full log if needed, but I don't want to bog this message down with it unless it's necessary.

Thanks!

Change History (9)

comment:1 Changed 12 months ago by thepeteriley (Pete Riley)

This is my first ticket to macports (I've never encountered an issue that I couldn't resolve in the past :)), please let me know if the information is useful and/or whether it should have been posted somewhere else?

comment:2 Changed 12 months ago by kencu (Ken)

Thank you for the report!

Unfortunately, gcc has so far only made gcc9 compatible with Catalina. Perhaps you might be able to use gcc9 in your project.

gcc9 should be the current default, but if you're upgrading from older installations, you might still be calling in gcc7, which does not work on Catalina at present.

We don't yet have a timeline on when or if gcc7 will work with Catalina.

comment:3 Changed 12 months ago by kencu (Ken)

Description: modified (diff)
Keywords: catalina added
Port: gcc7 added

comment:4 Changed 12 months ago by ryandesign (Ryan Schmidt)

Priority: HighNormal

comment:5 Changed 12 months ago by kencu (Ken)

Ryan, Chris, Josh -- should we just put a Catalina blocker in all gcc versions < gcc9, to head off these tickets? We can update that if/when the fixes are ported to older versions.

The only loss here is pdftk, for which I think there is another alternative now that doesn't need gcc5.

comment:6 Changed 12 months ago by LeoFCardoso (Leonardo)

Cc: LeoFCardoso added

comment:7 Changed 12 months ago by Chris Jones <jonesc@…>

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

In 481909f1dfa28ec7cad2510d3f9827bd65132d9d/macports-ports (master):

gcc{5,6,7,8}: Add pre-fetch check for Darwin19+
Closes: #59351
Closes: #59224

comment:8 Changed 10 months ago by finback-at

I update Xcode and command line tools to Xcode 11.3 (11C29) on my Mac. And I commented out the pre-fetch check code, https://trac.macports.org/changeset/481909f1dfa28ec7cad2510d3f9827bd65132d9d/macports-ports of my local Portfiles for libgcc7, libgcc6 and gcc5 and succeed to install them without any problems. Please update this issue again!

comment:9 Changed 10 months ago by cjones051073 (Chris Jones)

thanks for the pointer. I've committed an update allowing these builds for Xcode 11.3+ on Darwin19 and newer.

Note: See TracTickets for help on using tickets.