February 21, 2023, 16:11
|
Errors building addr2line
|
#1
|
New Member
Anthony Allison
Join Date: Feb 2023
Posts: 1
Rep Power: 0
|
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
|
|
|