CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] Errors building addr2line (https://www.cfd-online.com/Forums/openfoam-installation/248040-errors-building-addr2line.html)

tonytx05 February 21, 2023 16:11

Errors building addr2line
 
I am building OpenFOAM-v2212 on macOS Ventura, and can't fix the error below that occurs when trying to build addr2line. I was trying to build this separately, because when I run Allwmake from my foam directory, I get errors about addr2line.o missing. Any help would be much appreciated.

Code:

anthony@Tony-MacBook-Pro OpenFOAM-v2212 % ./applications/utilities/miscellaneous/OSspecific/Allwmake
==> Darwin-specific utilities
wmake addr2line
clang++ -std=c++14 -m64 -pthread -ftrapping-math -DOPENFOAM=2212 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-undefined-var-template -Wno-unknown-warning-option -O3  -DNoRepository -ftemplate-depth-100  -iquote. -IlnInclude -I/Users/anthony/OpenFOAM/OpenFOAM-v2212/src/OpenFOAM/lnInclude -I/Users/anthony/OpenFOAM/OpenFOAM-v2212/src/OSspecific/POSIX/lnInclude  -fPIC -Wl,-execute,-undefined,dynamic_lookup  /Users/anthony/OpenFOAM/OpenFOAM-v2212/build/darwin64ClangDPInt64Opt/applications/utilities/miscellaneous/OSspecific/addr2line/addr2line.o -L/Users/anthony/OpenFOAM/OpenFOAM-v2212/platforms/darwin64ClangDPInt64Opt/lib \
            -lOpenFOAM -ldl  \
            -lm -o /Users/anthony/OpenFOAM/OpenFOAM-v2212/platforms/darwin64ClangDPInt64Opt/bin/addr2line
ld: library not found for -lOpenFOAM
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/anthony/OpenFOAM/OpenFOAM-v2212/platforms/darwin64ClangDPInt64Opt/bin/addr2line] Error 1



All times are GMT -4. The time now is 10:02.