gm2
[Top][All Lists]
Advanced

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

Re: Compiling gm2 on MacOS Mojave 10.14.6


From: john o goyo
Subject: Re: Compiling gm2 on MacOS Mojave 10.14.6
Date: Sat, 22 Apr 2023 14:02:32 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

On 2022-02-07 02:09, Deadmarshal wrote:
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*

This is a bit of a late response but try the latest gcc-RC2 release (at https://gcc.gnu.org/pub/gcc/snapshots/13.1.0-RC-20230421/), which is patched and should build.

Sincerely,
john




reply via email to

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