gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiling gm2 on MacOS Mojave 10.14.6


From: Deadmarshal
Subject: Compiling gm2 on MacOS Mojave 10.14.6
Date: Mon, 7 Feb 2022 10:39:27 +0330

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 https://github.com/gcc-mirror/gcc
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/f912c6b791e29c83477575017271db16

I 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]