Hi. I want to build gnu modula-2 on MacOS Mohave 10.14.6. I have downloaded it from the devel/modula-2 branch of
I used these commands:
on root dir of gcc:
mkdir build && cd build
../configure --prefix=/usr/local/gm2 \
--enable-languages=m2 \
--enable-checking=release \
--disable-multilib \
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk \
--program-suffix=-gm2
and I have this error:
/usr/include/sys/ucred.h:94:2: error: ‘_Atomic’ does not name a type
_Atomic u_long cr_ref; /* reference count */
^~~~~~~
a solution is this path which i can't apply:
https://gist.github.com/eschnett/f912c6b791e29c83477575017271db16I did apply like this in the gcc root dir:
git apply ~/gcc_10.14.4.diff
I get these errors:
error: patch failed: fixincludes/fixincl.x:2
error: fixincludes/fixincl.x: patch does not apply
error: patch failed: fixincludes/inclhack.def:1268
error: fixincludes/inclhack.def: patch does not apply
error: gcc/config/darwin-driver.c: No such file or directory
--
Sincerely, Ali Moradi
Amike, Ali Moradi