Closed
Description
On macOS 15.4.1 with a Homebrew-installed LLVM 20.1.4, flang-new --version
yields
Homebrew flang version 20.1.4
Target: arm64-apple-darwin24.4.0
Thread model: posix
InstalledDir: /opt/homebrew/Cellar/flang/20.1.4/libexec
Configuration file: /opt/homebrew/Cellar/flang/20.1.4/libexec/flang.cfg
Configuration file: /opt/homebrew/etc/clang/arm64-apple-darwin24.cfg
which isn't recognized by Caffeine's install.sh
script. I just created PR #226 to address this. After fixing that issue, the next error that I encounter is
exec /Users/rouson/.local/bin/fpm build --profile debug --flag '-g -O3 -DASSERT_MULTI_IMAGE -DASSERT_PARALLEL_CALLBACKS -DASSERTIONS -O3 -g' --compiler /opt/homebrew/Cellar/flang/20.1.4/libexec/flang-new --c-compiler /opt/homebrew/Cellar/llvm/20.1.4/bin/clang --c-flag '-O3 -Wno-unused -Wunused-result -Wno-unused-parameter -Wno-address -D_GNU_SOURCE=1 -DGASNET_SEQ -I/Users/rouson/.local/include -I/Users/rouson/.local/include/smp-conduit' --link-flag '-O3 -Wno-unused -Wunused-result -Wno-unused-parameter -Wno-address -L/Users/rouson/.local/lib'
[ 0%] caffeine.c
[ 2%] caffeine.c done.
././src/caffeine/caffeine.c:15:10: fatal error: 'ISO_Fortran_binding.h' file not found
15 | #include <ISO_Fortran_binding.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
<ERROR> Compilation failed for object " src_caffeine_caffeine.c.o "
<ERROR> stopping due to failed compilation
STOP 1
From what I can tell, I have two copies of ISO_Fortran_binding.h
installed with LLVM 20:
/opt/homebrew/Cellar/flang/20.1.4/include/flang/ISO_Fortran_binding.h
/opt/homebrew/Cellar/flang/20.1.4/lib/clang/20/include/ISO_Fortran_binding.h
Metadata
Metadata
Assignees
Labels
No labels