Opened 5 years ago

Last modified 4 years ago

#58260 closed defect

libgcc8 build fails due to "Atomic" error on Mojave — at Version 5

Reported by: physicsbeany Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: mojave Cc:
Port: gcc9 gcc8 gcc7 gcc6 libgcc-devel libgcc8 libgcc7 libgcc6

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

Recently upgraded to MacOS Mojave from High Sierra, and followed general Macports instructions for migrating my old ports. Things went fine until libgcc8 (needed to do my py27-scipy installation). Initially, this failed because of Unwind issues. I solved this by following the advice in ticket #57198.

Now, however, the compilation fails because of an "Atomic" error. Specifically, the first instance of the Error in the log file is:

:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/ucred.h:94:2: error: '_Atomic' does not name a type
:info:build   _Atomic u_long          cr_ref;  /* reference count */

The full logfile is 64 MB; I've uploaded the last 50K lines of it.

Some Googling indicates that this may be avoided by defining __STDC_NO_ATOMICS__, but I'm not certain this is the right answer (and I don't know how to do this as part of a Macports installation).

Change History (6)

Changed 5 years ago by physicsbeany

last 50K lines of log file (whole thing is 64 MB)

comment:1 Changed 5 years ago by physicsbeany

Description: modified (diff)

comment:2 Changed 5 years ago by SerpentChris (Chris Calderon)

I've got the same error on my brand new iMac running 10.14.4.

comment:3 Changed 5 years ago by mf2k (Frank Schima)

Keywords: atomic removed

comment:4 Changed 5 years ago by kencu (Ken)

This is a strange error to see. My first thought is to clean and try again ( I noticed you didn't clean between attempts previously, and this can have unforeseen weird effects).

sudo port clean libgcc8
sudo port -v install libgcc8

I'm also wondering why you didn't have it downloaded from the binary buildbot instead of MacPorts' making you build it. It's right there <http://packages.macports.org/libgcc8/libgcc8-8.3.0_0.darwin_18.x86_64.tbz2>.

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

Description: modified (diff)
Keywords: mojave added

Could you attach the entire logfile, compressing it first?

Note: See TracTickets for help on using tickets.