[Mesa-users] Issue with installing MESA
RICHARD H D TOWNSEND
townsend at astro.wisc.edu
Mon May 27 17:24:12 UTC 2024
OK, this is the system C compiler, not the compiler that ships with the MESA SDK. To fix the problem, make sure /Applications/mesasdk/bin appears in your PATH definition *before* /usr/bin — preferably, right at the beginning of PATH.
cheers,
Rich
> On May 27, 2024, at 12:19 PM, Yamaguchi, Natsuko <nyamaguc at caltech.edu> wrote:
>
> Yes, of course. I have also attached the terminal output to this email.
>
> (base) natsukoyamaguchi at vpn-250-110 gui % which gcc
> /usr/bin/gcc
> (base) natsukoyamaguchi at vpn-250-110 gui % gcc -v
> Apple clang version 15.0.0 (clang-1500.3.9.4)
> Target: arm64-apple-darwin23.5.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>
> Thank you for the help,
>
> Natsuko YamaguchiFrom: RICHARD H D TOWNSEND <townsend at astro.wisc.edu>
> Sent: Monday, May 27, 2024 10:14 AM
> To: Yamaguchi, Natsuko <nyamaguc at caltech.edu>
> Cc: mesa-users at lists.mesastar.org <mesa-users at lists.mesastar.org>
> Subject: Re: [Mesa-users] Issue with installing MESA
> Dear Natsuko —
>
> It looks like your C compiler isn’t working quite right. Can you post the output of the following two commands:
>
> which gcc
> gcc -v
>
> Many thanks,
>
> Rich
>
> > On May 27, 2024, at 11:50 AM, Yamaguchi, Natsuko via Mesa-users <mesa-users at lists.mesastar.org> wrote:
> >
> > Hello,
> >
> > I'm trying to install MESA version r24.03.1 and I get this error in the 'building the utils package' step (the full build.log file is also attached to this email).
> >
> > CC ../private/utils_c_system.c
> > ../private/utils_c_system.c:42:27: error: initializer element is not a compile-time constant
> > static const int LEN_TEMP=strlen(TEMPLATE);
> > ^~~~~~~~~~~~~~~~
> > 1 error generated.
> > make: *** [utils_c_system.o] Error 1
> >
> > I have installed the same version of MESA before on a different computer, and it worked without problems. Does anyone know what's going on?
> >
> > Other potentially relevant information:
> > - MESASDK: version 23.10.1
> > - Machine: Macbook Pro, M3 Pro, Sonoma 14.5
> >
> > Thank you so much!
> >
> > Natsuko Yamaguchi <build.log>_______________________________________________
> > mesa-users at lists.mesastar.org
> > https://urldefense.com/v3/__https://lists.mesastar.org/mailman/listinfo/mesa-users__;!!Mak6IKo!N91J8a3xW6DZJPa69ulNM6wP4WbsIMdJkQVVoGs6JEhVsiOx0oR35-hI4SWlWTjTreYCyDidkxeFl4Jk2ZC8kRA0RNDVBMU$
>
>
> --
> Rich Townsend • Professor of Astronomy
> Astronomy Department • University of Wisconsin-Madison
> Phone: 608-262-1752 • E-mail: rhtownsend at wisc.edu
>
>
>
>
>
> <TerminalSavedOutput.txt>
--
Rich Townsend • Professor of Astronomy
Astronomy Department • University of Wisconsin-Madison
Phone: 608-262-1752 • E-mail: rhtownsend at wisc.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1638 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20240527/42d58b3d/attachment.p7s>
More information about the Mesa-users
mailing list