[mcstas-users] Version 2.4.1 on High Sierra (10.13.3)
Peter Willendrup
p at willendrup.org
Mon Mar 19 17:12:56 CET 2018
Hi both,
Andrew is right, this could easily be the issue.
(These days, to come around rare numerical issues with the Apple-provided “gcc”/clang, I have enclosed what is supposed to be a “full” gcc inside the McStas application bundle. For this reason the recommended way to run a command-line environment is via mcstas-2.4.1-environment.)
If the problem persists / is something else Christoph, you may also experiment by changing which compiler is used - easiest via File -> Preferences in mcgui. Setting it to /usr/bin/gcc will run the system-default gcc.
Best,
Peter
> On 19 Mar 2018, at 16:33 , Andrew Jackson <andrew.jackson at esss.se> wrote:
>
> 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 <mailto:andrew.jackson at esss.se>
>
> www.esss.se <http://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
>
> _______________________________________________
> mcstas-users mailing list
> mcstas-users at mcstas.org
> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20180319/f7dfdc2a/attachment.html>
More information about the mcstas-users
mailing list