Hello FLUKA Forum,
I had FLUKA/FLAIR running on my Macbook with no issue, until I had to update my operating system. After the transition to Sonoma, my FLUKA /FLAIR installation was broken. I removed both directories and attempted a clean install. I followed the directions provided on the website, and have run into some errors. During this process I have made sure to update my Xcode Tools, and install the latest MacPorts version, as well as allowing that to update all of its ports. In attempting to “make” FLUKA, I received the following error:
(base) RJacob@rjacob-m17 src % make
gfortran -o /Users/RJacob/fluka4-4.0//bin/fluka -fuse-ld=bfd -L/Users/RJacob/fluka4-4.0//lib -lfluka -lstdc++ -lz
ld: unsupported tapi file type ‘!tapi-tbd’ in YAML file ‘/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libz.tbd’ for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [/Users/RJacob/fluka4-4.0//bin/fluka] Error 1
In perusing the user forums for help I ran the following command: export PATH=/opt/local/bin:/opt/local/sbin:$PATH
After running this command, the error message following “make” has become:
(base) RJacob@rjacob-m17 src % make
gfortran -o /Users/RJacob/fluka4-4.0//bin/fluka -fuse-ld=bfd -L/Users/RJacob/fluka4-4.0//lib -lfluka -lstdc++ -lz
-macosx_version_min has been renamed to -macos_version_min
ld: warning: ignoring duplicate libraries: ‘-lSystem’, ‘-lgcc’, ‘-lgcc_ext.10.5’
ld: unsupported mach-o filetype (only MH_OBJECT and MH_DYLIB can be linked) in ‘/usr/local/Cellar/gcc/11.2.0/lib/gcc/11/libgcc_ext.10.5.dylib’
collect2: error: ld returned 1 exit status
make: *** [/Users/RJacob/fluka4-4.0//bin/fluka] Error 1
Note, I have tried to install GCC 10 using MacPorts, but it fails every time. Any insight or assistance with this matter would be greatly appreciated.
Update: I updated HomeBrew and upgraded all of its packages. This allowed the “make” command to run, but the error is now:
(base) RJacob@rjacob-m17 src % make
Compiling: tools
gcc -c -o usbmax.o -I/Users/RJacob/fluka4-4.0//include -g -O3 -DNDEBUG -Wpacked -malign-double -mpreferred-stack-boundary=8 usbmax.c
clang: error: unknown argument: ‘-mpreferred-stack-boundary=8’
make[1]: *** [usbmax.o] Error 1
make: *** [tools] Error 2
Update Another attempt to make FLUKA has resulted in the following error message:
(base) RJacob@rjacob-m17 src % make
Compiling: tools
gfortran -o /Users/RJacob/fluka4-4.0//bin/atmloc atmloc.o -L/Users/RJacob/fluka4-4.0//lib -lfluka -lstdc++ -lz
ld: unsupported tapi file type ‘!tapi-tbd’ in YAML file ‘/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/lib/libz.tbd’ for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: *** [/Users/RJacob/fluka4-4.0//bin/atmloc] Error 1
make: *** [tools] Error 2
Thank you,
Robert