[odb-users] Getting the ODB Compiler to Find the System Headers After macOS Catalina Update

Brian Coggins becoggins at hotmail.com
Mon May 17 11:45:21 EDT 2021


I'm giving that a try, and with homebrew gcc updated to gcc 11, I'm getting errors in the ODB compilation.  I updated build2 to 0.13.0, set up a new build configuration of odb-gcc-11, and build2 is trying to update ODB to 2.5.0-b.19+1 from the b.17 that I was on previously.  After these lines:

fetched odb/2.5.0-b.19+1
unpacked odb/2.5.0-b.19+1
configured odb/2.5.0-b.19+1
version.in libstudxml-1.1.0-b.9/libstudxml/version.hxx.in

the following error prints 16 times in a row:

/usr/local/Cellar/gcc/11.1.0/lib/gcc/11/gcc/x86_64-apple-darwin19/11.1.0/plugin/include/cp/name-lookup.h:498:24: error: module name expected instead of <punctuation>
  info: while scanning odb-2.5.0-b.19+1/odb/cxx{include}
  info: while applying rule cxx.compile to update odb-2.5.0-b.19+1/odb/objs{include}
  info: while applying rule cxx.link to update odb-2.5.0-b.19+1/odb/libus{odb}
  info: while applying rule cxx.link to update odb-2.5.0-b.19+1/odb/plugin{odb}
  info: while applying rule alias to update odb-2.5.0-b.19+1/dir{odb/}
  info: while applying rule alias to update dir{odb-2.5.0-b.19+1/}

Any ideas?

Brian


________________________________
From: Boris Kolpackov <boris at codesynthesis.com>
Sent: Monday, May 17, 2021 6:56 AM
To: Brian Coggins <becoggins at hotmail.com>
Cc: odb-users at codesynthesis.com <odb-users at codesynthesis.com>
Subject: Re: [odb-users] Getting the ODB Compiler to Find the System Headers After macOS Catalina Update

Brian Coggins <becoggins at hotmail.com> writes:

> I recently updated a macOS system from Mojave to Catalina (yes, I know
> I'm behind a bit!) and I'm trying to figure out the right/best way to
> help the ODB compiler find the system headers.
>
> For those who are not familiar, Catalina abandons /usr/include; the
> system headers are now deep inside an XCode directory, which the
> Apple-provided clang knows how to find.  But the odb compiler does
> not know how to find the new include directory.
>
> (I built odb using build2 and Homebrew gcc-9. odb version is 2.5.0-b.17.
> Homebrew gcc is 9.2.0)

I would expect Homebrew GCC to be patched to deal with this (otherwise
it would be unusable) with ODB piggybacking on it. Have you tried
upgrading to a more recent version of GCC (e.g., 10) and rebuilding
the ODB compiler to match?


More information about the odb-users mailing list