Gcc 9.2.0_1 can't build libraries on OSX 10.14.4 Mojave

OSX 10.14.4 Mojave
current gcc version : 9.2.01

Building a library archive with “ar” produces the following error message

ar -v -r lib.a a.o b.o

Error running /usr/local/bin/ar: vfork

Presumably an incompatibility with the underlying OS.

This seems like something that should be reported to the GCC folks?

Sean - thanks for the quick response. I agree that it might be a problem with the distributed code for gcc / ar and I will report it to the gcc developers.

It occurred to me that it could also be a problem with how it has been compiled and linked. For example, if the underlying process forking libraries in OSX have been updated since the compilation ? (or many other similar possibilities).

That could be the case, but contrary to popular belief homebrew maintainers aren’t specialists in all the software that is distributed through homebrew. So the GCC folks are likely still best suited to debug this.

Quite right and I didn’t mean to suggest that you were.

1 Like