Opened 3 years ago

Closed 3 years ago

#62004 closed defect (invalid)

gnuplot fails to build under Catalina because gcc49 is not supported with Xcode 9 or greater

Reported by: cwmccurdy Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port:

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

After installing Macports for Catalina, gnuplot build failed because it was trying to build gcc49. This happened after an operating system update and having uninstalled and clean the old gnuplot from macports. The error is:

sudo port install gnuplot
Password:
--->  Computing dependencies for gnuplot
--->  Cleaning gnuplot
--->  Scanning binaries for linking errors
--->  Found 131 broken files, matching files to ports
Warning: No port llvm-3.8 found in the index; can't rebuild
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: openmpi-default @1.10.3+gcc49
Continue? [Y/n]: y
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers>
--->  Fetching distfiles for gcc49
Error: building gcc49 is not supported with Xcode 9 or greater
Error: Failed to fetch gcc49: unsupported platform

Change History (4)

comment:1 Changed 3 years ago by kencu (Ken)

It looks like you've been migrating along for a while now, and finally your old variants are no longer supported.

You have openmpi-default using gcc49 and that is just too out of date to keep with now. The current default as of 2021 is gcc10:

$ port info openmpi-default
openmpi-default @4.0.1_1 (science, parallel, net)
Variants:             g95, [+]gcc10, gcc44, gcc45, gcc46, gcc47, gcc48, gcc49, gcc5, gcc6, gcc7, gcc8, gcc9, gccdevel, universal, valgrind

You are right -- somehow MacPorts should have flagged / fixed / updated / sorted this out for you, but -- nobody volunteered to do that work as yet.

So for now, you should manually do this (or something like it):

sudo port -f uninstall openmpi-default
sudo port -v install openmpi-default

and then you will get the gcc10 variant. Things should just then work for you, unless you have some other gcc49 variants some where that will need a similar fix.

Hope this helps!

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Description: modified (diff)
Port: openmpi-default added
Summary: gnuplot fails to build under Catalina because gcc49 is not supported with Xcode 9 or greateropenmpi-default should not offer gcc variants on platforms that do not support them

comment:3 Changed 3 years ago by cwmccurdy

Description: modified (diff)
Port: openmpi-default removed
Summary: openmpi-default should not offer gcc variants on platforms that do not support themgnuplot fails to build under Catalina because gcc49 is not supported with Xcode 9 or greater

Ken Cunningham, I hope this comment finds its way to you.

You are RIGHT. I followed your instructions and not only did it solve the gnuplot build problem, but also the builds of other tools (ImageMagick ...) that had broken with this upgrade to Catalina on a new iMac. A decade of migrations to new machines caused this problem, which stymied me and my graduate students who also depend on our Mac development platforms which we regularly upgrade and replace.

Thank you!

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

Description: modified (diff)
Resolution: invalid
Status: newclosed

Replying to kencu:

You are right -- somehow MacPorts should have flagged / fixed / updated / sorted this out for you, but -- nobody volunteered to do that work as yet.

If we resolve #46956, it would prevent this kind of thing happening in the future.

Note: See TracTickets for help on using tickets.