Flair-3.4 expecting x86_64 for geoviewer on arm64 Mac

Versions

Please provide the used software versions.

FLUKA:
Flair:3.4
Operating system:MacOS Sequoia 15.5, Apple M2 Max

After many iterations I finally got geoviewer to compile and install on my Mac. geoviewer.so was moved to the flair directory as were fonts to the proper folder, etc. But when I opened a new terminal and issued the flair command, flair did open up with the following error message. I struggled to get my Mac configured properly to build all the code for my arm64 processors, and then it appears that flair itself is expecting them to be for x86_64. I downloaded the latest version of Flair … how can I resolve this?

flair-3.4 expecting x86_64 for geoviewer on arm64 Mac

w> Warning: Geometry Viewer not found
e> ERROR: dlopen(/Users/mehlhorn/Codes/flair-3.4/geoviewer.so, 0x0002): tried: ‘/Users/mehlhorn/Codes/flair-3.4/geoviewer.so’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/mehlhorn/Codes/flair-3.4/geoviewer.so’ (no such file), ‘/Users/mehlhorn/Codes/flair-3.4/geoviewer.so’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64’))

Input files

there is no data or files to upload - I’m just trying to initiate the app without error.

Please upload all relevant files. (FLUKA input file, Flair project file, user routines, and data files)

Hi @thmehlho,

I assume you’ve been following the instructions to install Flair in this page under Mac OS.

To help us troubleshoot, could you please provide the output of these commands?

  • pkgutil —pkg-info=com.apple.pkg.CLTools_Executables
  • xcodebuild -version
  • gfortran -v
  • echo $PATH
  • port echo requested
  • port select —summary

Best, Luigi

(base) mehlhorn@ppdmehlhornlap flair-geoviewer-3.4 % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

package-id: com.apple.pkg.CLTools_Executables

version: 16.4.0.0.1.1747106510

volume: /

location: /

install-time: 1748888984

(base) mehlhorn@ppdmehlhornlap flair-geoviewer-3.4 % xcodebuild -version

Xcode 16.4

Build version 16F6

(base) mehlhorn@ppdmehlhornlap flair-geoviewer-3.4 % gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/aarch64-apple-darwin24/14.2.0/lto-wrapper
Target: aarch64-apple-darwin24
Configured with: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc14/gcc14/work/gcc-14.2.0/configure --prefix=/opt/local --build=aarch64-apple-darwin24 --enable-languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc14 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-14 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-14 --with-gxx-include-dir=/opt/local/include/gcc14/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --with-zstd=/opt/local --enable-checking=release --disable-multilib --enable-lto --enable-libstdcxx-time --with-build-config=bootstrap-debug --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --enable-host-shared --with-darwin-extra-rpath=/opt/local/lib/libgcc --with-libiconv-prefix=/opt/local --disable-tls --with-gxx-libcxx-include-dir=/opt/local/libexec/gcc14/libc++/include/c++/v1 --with-pkgversion=‘MacPorts gcc14 14.2.0_3+stdlib_flag’ --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.0 (MacPorts gcc14 14.2.0_3+stdlib_flag)
(base) mehlhorn@ppdmehlhornlap flair-geoviewer-3.4 % echo $PATH
/Users/mehlhorn/Codes/flair-3.4:/Users/mehlhorn/Codes/fluka4-5.0/bin:/Users/mehlhorn/anaconda3/bin:/Users/mehlhorn/anaconda3/condabin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin::
(base) mehlhorn@ppdmehlhornlap flair-geoviewer-3.4 % port echo requested
Warning: No default port source specified in /opt/local/etc/macports/sources.conf, using last source as default
gcc14 @14.2.0_3+stdlib_flag
ghostscript @10.05.1_0+x11
gnuplot @6.0.3_0+aquaterm+luaterm+pangocairo+qt5+wxwidgets
py311-tkinter @3.11.13_0
python311 @3.11.13_0+lto+optimizations
tk @8.6.16_0+x11
xorg @20090316_0
xorg-server @1.20.11_1
xterm @398_0

(base) mehlhorn@ppdmehlhornlap flair-geoviewer-3.4 % port echo requested
Warning: No default port source specified in /opt/local/etc/macports/sources.conf, using last source as default
gcc14 @14.2.0_3+stdlib_flag
ghostscript @10.05.1_0+x11
gnuplot @6.0.3_0+aquaterm+luaterm+pangocairo+qt5+wxwidgets
py311-tkinter @3.11.13_0
python311 @3.11.13_0+lto+optimizations
tk @8.6.16_0+x11
xorg @20090316_0
xorg-server @1.20.11_1
xterm @398_0

(base) mehlhorn@ppdmehlhornlap flair-geoviewer-3.4 % port select -summary
Warning: No default port source specified in /opt/local/etc/macports/sources.conf, using last source as default
Usage: port
[-bcdfknNopqRstuvy] [-D portdir|portname] [-F cmdfile] action [actionflags]
[[portname|pseudo-portname|port-url] [@version] [±variant]… [option=value]…]…

“port help” or “man 1 port” for more information.

Thanks for your help, Tom

Hi @thmehlho ,

I see two issues in your setup.

  1. You need to select the ports for gcc and python. Refer to the Instruction web page for more information.
  2. Your PATH variable has anaconda at the beginning, which can cause conflicting Python modules from different Python installations. I recommend setting the environment variables in your shell configuration file. You can get inspiration from this thread.

Please let us know if you’ve solved the issue.
Best, Luigi