Re: [fluka-discuss]: FLUKA on Mac OS: Illegal instruction in rfluka

From: aferrari <alfredo.ferrari_at_mi.infn.it>
Date: Mon, 25 Nov 2024 17:24:43 +0100

Hi

There are several reports (not only for Fluka) that on the latest Mac OS
versions, due to a problem in Xcode, the is a BUS error running code
with weak linker symbol.

Do you have any other message related to the error, for example
something like:

"Program received signal SIGBUS: Access to an undefined portion of a
memory object"

If so, please try relinking using the script in attachment (rename it
lfluka and substitute to the one in $FLUPRO/flutil before linking the
Fluka executable again*). It should fix (temporarily) the issue by
invoking the old linker. In case this is indeed the problem, I
understand there is a newer version of Xcode on the Apple developer site
which fixes the issue. Invoking the old linker is an option deprecated
by Apple and it will not work forever, however it is worth a try since
it will put you back in operation immediately and it is much simpler
than upgrading Xcode.

* $FLUPRO/fluka -m fluka -o flukahp

Please let us know if indeed this is your issue, and if so, if the
enclosed script works.

Ciao
Alfredo

On 2024-11-25 14:05, Bauer, Johannes wrote:
> I am running into problems with FLUKA on a MacBook Pro with M1 Max
> chip running Sequoia 15.0.1.
>
> Here are my steps:
>
> * Via brew, I installed GNU Fortran (Homebrew GCC 14.2.0_1) 14.2.0.
> (confirmation via gfortran --version)
> * I downloaded fluka2024.1-macm123-gfor64bit-14.2-AA.tar.gz, which
> should work for Mac Silicon M1 chips and gfortran 14.2.
> * I also downloaded fluka2024.1-data.tar.gz.
> * FLUPRO is pointing to the directory where I untarred the
> fluka2024... tar.gz file.
> * FLUFOR is pointing to the above-mentioned gfortran.
> * The command "make" worked and created flukahp.
> * However, when I ran, I got the following crash:
>
> ================================ Running FLUKA for cycle # 1
> =============================================
>
> /Users/bauerj/fluka/fluka2024.1-macm123-gfor64bit-14.2-AA/flutil/rfluka:
> line 381: 45460 Illegal instruction: 4 ${EXE} 2> $LOGF > $LOGF
>
> Any suggestion how to proceed? Thanks!
>
> --- Johannes


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info

Received on Mon Nov 25 2024 - 19:02:06 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 25 2024 - 19:02:07 CET