SIGBUS error on first run

Hello @mrivers ,

I see that you have a mixed environment HomeBrew/MacPorts: this is not a good approach as libraries can be mixed and generate conflicts.

For the installation of FLUKA/Flair, it is recommended to use MacPorts (at the moment we have no working solution with HomeBrew).

Therefore, my recommendation is to use reinstall FLUKA in a Terminal where only MacPorts environments is defined.

To do this, follow these steps:

  1. Define environment switching functions in your shell startup file (in my case ~/.bash_profile). Something like:
set_MacPorts() {
    echo "set MacPorts environment to compile FLUKA"
    export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
}

set_HomeBrew() {
    echo "set HomeBrew environment for the GitLab runner"
    eval "$(/usr/local/bin/brew shellenv)"
}

Make sure that you individuate all existing modifications to the PATH variable to include HomeBrew and MacPorts directory: these shall be included in the functions above.

  1. Open a new terminal

  2. Check that the environment PATH variable does not contain any directories pointing to MacPorts or HomeBrew. If it does, check the previous steps again.

  3. Activate the MacPorts environments: In your terminal, run set_MacPorts

  4. Reinstall FLUKA: run make clean and then make

  5. Test FLUKA

Hope this helps!

Best,
Luigi