[mcstas-users] Version 2.4.1 on High Sierra (10.13.3)

Andrew Jackson andrew.jackson at esss.se
Mon Mar 19 16:33:34 CET 2018


Hi Christoph

Are you running at the command line or using the GUI?

I saw the same error on my High Sierra machine because I was running from the bare bash shell, rather than the mcstas-2.4.1-environment.

Best
Andrew
______________________________________
Andrew Jackson
Instrument Scientist - Small Angle Scattering
Deputy Head of Neutron Instruments Division
European Spallation Source, P.O Box 176, SE-221 00 Lund, Sweden

Adjunct Associate Professor (Adjungerad Lektor)
Physical Chemistry, Lund University, P.O. Box 124, SE-221 00, Lund, Sweden

Phone: +46 46 888 3015
Mobile: +46 72 179 2015
E-mail: andrew.jackson at esss.se

www.esss.se

From: mcstas-users <mcstas-users-bounces at mcstas.org> on behalf of "Wildgruber, Christoph U." <wildgrubercu at ornl.gov>
Date: Monday, 19 March 2018 at 16:14
To: "mcstas-users at mcstas.org" <mcstas-users at mcstas.org>
Subject: [mcstas-users] Version 2.4.1 on High Sierra (10.13.3)


Hi,

I saw on the mcstas website that 2.4.1 is running on OS 10.13 …
When trying it on my MBP I’ll get pretty far but the C-compiler crashes with the following message:


Instrument opened: topaz_asbuilt.instr
INFO: No output directory specified (--dir)
INFO: Using directory: "topaz_asbuilt_20180319_111039"
INFO: Recompiling: ./topaz_asbuilt.out
INFO: Using existing c-file: ./topaz_asbuilt.c
mccode-r.h:39:18: fatal error: math.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcgui/../mccodelib/../../../bin/../tools/Python/mcrun/mcrun.py", line 362, in <module>
main()
File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcgui/../mccodelib/../../../bin/../tools/Python/mcrun/mcrun.py", line 284, in main
mcstas.prepare(options)
File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcrun/mccode.py", line 173, in prepare
Process(options.cc<http://options.cc>).run(args)
File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcrun/mccode.py", line 80, in run
raise ProcessException(self.executable, args, retval)
mccode.ProcessException: Got exit status 1 from "gcc -o ./topaz_asbuilt.out ./topaz_asbuilt.c -lm -UUSE_MPI -g -O2 -lm -headerpad_max_install_names “


I tried to find out what’s wrong but failed…

Any suggestion how to fix that problem?



Thanks,

 Uli

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20180319/3e8d9e1b/attachment-0001.html>


More information about the mcstas-users mailing list