Each time I run Flair, I have to once again manually input the location of the FLUKA directory, and I would like to simply leave a default location so that I don’t have to do this every time I boot up Flair.
Dear @hramm,
This is indeed a strange behavior which shouldn’t happen. It hints at some installation issue.
How did you install FLUKA and Flair? Which packages did you download? Which OS are you using?
I’m trying to run the “basic” program in FLUKA/Flair for the first time. When I open it from the “New>Basic” option, the input file updates, but when I click on the geometry tab, nothing is updating- I still get the default toroidal detector geometry which always is displayed in Flair as a “demo” geometry.
This means that you did not correctly install the geoviewer.
Which is matching with your other posts about installation problems.
Hey- trying to compile geoviewer using make, but I get an error message:
clang: error: no input files
when it tries to find the
d2layer.cc
file. But I have confirmed that it is in fact present in the /viewer subdirectory of my geoviewer folder. So for some reason, my compiler just can’t find d2layer.cc during the “make” process, but seems to be able to find everything else just fine.
Hi @amario -
Yep- definitely a problem with Geoviewer! The problem seems to be with the latest release for Mac, which produces compile problems (Flair and FLUKA now functioning OK) but for some reason, when I call the “make” command on Geoviewer, the compiler isn’t finding some of the necessary files, whose existence I have confirmed by going through all the directories in the Geoviewer package.
There is another post where someone else is having the same problem.
Ok, so the problem seems to be with the makefile
in the viewer subdirectory- for whatever reason, whatever the first entry in the SOURCES
variable is will not compile:
SOURCES = \
d2layer.cc \
d3layer.cc \
decorationlayer.cc \
exportlayer.cc \
imagelayer.cc \
latticelayer.cc \
layer.cc \
nox.cc \
palettelayer.cc \
userdumplayer.cc \
usrbinlayer.cc \
viewer.cc \
voxellayer.cc \
i.e. if I change the positions of d3layer.cc and d2layer.cc, the compiler can find d2layer.cc
but not d3layer.cc
. If I put some other file at the top of the list, it’s the same problem with whatever file I put there. I’ve checked for leading/trailing whitespaces- doesn’t seem that there is any. But basically there’s some problem with how the makefile
is processing the SOURCES
variable.
Hello @hramm,
I noticed you’ve posted in a few different threads about this issue, and it’s become a bit difficult to follow your requests. To help me understand the situation, could you please provide the output of the following commands?
sw_vers -productVersion
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
gfortran -v
g++ -v
echo $PATH
Is this your first time installing Flair, or did it stop working after an update?
Also, could you verify that you followed the Installation Instructions for Mac OSX.
Best regards, Luigi
sw_vers -productVersion
14.5
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
pkg
version: 16.1.0.0.1.1729049160
volume: /
location: /
install-time: 1731438353
gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/aarch64-apple-darwin23/12.4.0/alto-wrapper
Target: aarch64-apple-darwin23
Configured with: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc12/gcc12/work/gcc-12.4.0/configure --prefix=/opt/local --build=aarch64-apple-darwin23 --enable-languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc12 --includedir=/opt/local/include/gcc12 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-12 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-12 --with-gxx-include-dir=/opt/local/include/gcc12/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-classic --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/gcc12/libc++/include/c++/v1 --with-pkgversion='MacPorts gcc12 12.4.0_1+stdlib_flag' --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.4.0 (MacPorts gcc12 12.4.0_1+stdlib_flag)
g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/aarch64-apple-darwin23/12.4.0/lto-wrapper
Target: aarch64-apple-darwin23
Configured with: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc12/gcc12/work/gcc-12.4.0/configure --prefix=/opt/local --build=aarch64-apple-darwin23 --enable-languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc12 --includedir=/opt/local/include/gcc12 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-12 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-12 --with-gxx-include-dir=/opt/local/include/gcc12/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-classic --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/gcc12/libc++/include/c++/v1 --with-pkgversion='MacPorts gcc12 12.4.0_1+stdlib_flag' --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.4.0 (MacPorts gcc12 12.4.0_1+stdlib_flag)
echo $PATH
/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/Library/Frameworks/Python.framework/Versions/3.13/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/local/bin:/opt/local/sbin:/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:/usr/local/share/dotnet:~/.dotnet/tools
Yes, I have followed the installation instructions. This is the first time I have installed Flair. There has been no update. Also, Flair itself works. The only problem is when I run the make
command in my Geoviewer directory, i.e. I have build errors (as described above in this thread), which means I can’t run the make install DESTDIR=/path/to/flair
command.
Dear @hramm,
After the upgrade to Sequoia, you will need to upgrade MacPorts as well. The gcc12 compiler is known to fail in your current environment.
The instructions to migrate are here:
https://trac.macports.org/wiki/Migration
If you don’t have many other ports installed, I would suggest a fresh installation of MacPorts. You can do this by following the instructions at the top of the page linked above, and then following the instructions on the Flair website.
I apologize for this inconvenience. Unfortunately, these issues are due to external factors beyond our control.
Please let me know if this helps.
Best, Luigi