Flair installation error: bus error 10

Hi @mosleh

FLUPRO, FLUFOR and GFORFLU are not needed to compile/run FLUKA distributed by CERN.
They are not harmful, but they be removed from the shell files.

Having said that, I would suggest you to reinstall MacPorts from scratch, and Flair/GeoViewer as well.

If this is ok for you, follow these instructions

  1. Remove and install back the Command Line Tools
  2. 2.4. Uninstall MacPorts
  3. 2.2. Install MacPorts
  4. install ONLY these packages via port: gcc10, pkgconfig, python310, py310-tkinter, py310-matplotlib
    (detailed instructions from Flair download page, section Mac OsX)
  5. comment the conda initialisation in your $HOME/.zshrc file
  6. open a new Terminal
  7. delete the old Flair and Geoviewer
  8. download Flair and GeoViewer from the Flair download page, section TAR source code
  9. compile/install GeoViewer, detailed the instructions in Flair download page, section Compile from source)
  10. Inside Flair directory, run Flair with the following command:
    PYTHON=/opt/local/bin/python3 ./flair

Let me know how it proceeds.

Hi, Dear Luigi in meanwhile I unstalled ports I hit an updating for my mac and before finishing, restarted and install new updates. after that, I think macport doesn’t work properly and I try to install some ports but I tackle new errors, by the way, I decided to reinstall Catalina again.

I do everything that you wrote for me in the last massage, thank you again and I will come back early.

Hello Dear Luigig,
I couldn’t believe that I have same problem yet I did everything correctly.

Hi again,
Finally, I solved previous problem when I went to geoviewer folder and I use these commands:

*make clean*
*make PYTHON=python3.10 DESTDIR=FLAIR_Path*
*make PYTHON=python3.10 DESTDIR=FLAIR_Path install*

but now I have another problem with geoviewer ;

Warning: Geometry Viewer not found

e> ERROR: dynamic module does not define module export function (PyInit_geoviewer)

Hello @mosleh
That’s a nice progress!

Could you check that geoviewer.so in present in the Flair directory?
Run this command
ls -l geoviewer.so both in the Flair and GeoViewer directories.

yes, it was big progress for me,

Screen Shot 2021-11-18 at 12.12.00 PM

I’m afraid that the compilation flags you used do not work: they produce a geoviewer.so library with no X window module. This explains why you do not see any geometry viewer in Flair.

Thankfully, this helped to pinpoint the issue to a problem in the compilation of geoviewer.
Please run these commands in Geoviewer folder:
make clean
make >& comp.txt

The last command produces a file named comp.txt.
Could you possibly send it to me?

comp.txt (93.6 KB)

I think this one is more complete.

As follow-up of an off-line discussion, it turns out that the problem is due to compilation optimisation of clang (the concerned flag is yet to be identified).

A compilation in debug mode of GeoViewer module is a temporary workaround:

make clean
make DEBUG=yes
make install DESTDIR=<path to Flair folder>

Thanks @mosleh for your patience.

Cheers Luigi

Thank you for finding my problem Dear @luillo .

Now it works for me.