Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: undefined reference to `__fs_log_1' #1567

Open
suranap opened this issue Jan 7, 2025 · 0 comments
Open

Build failure: undefined reference to `__fs_log_1' #1567

suranap opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@suranap
Copy link
Collaborator

suranap commented Jan 7, 2025

This is on a NVIDIA DGX100. When it builds spec_infer I get this linker message complaining it can't find __fs_log_1. It's labeled undefined in libflexflow.so.1. All the CUDA libraries are in the module nvhpc version 24.7.

Solution: I linked /cm/shared/apps/nvhpc/24.7/Linux_x86_64/24.7/compilers/lib/libnvcpumath.so into libflexflow.so.1.

/cm/local/apps/gcc/13.1.0/bin/g++ -std=c++17  -fPIC -UNDEBUG -g CMakeFiles/spec_infer.dir/__/__/src/runtime/cpp_driver.cc.o CMakeFiles/spec_infer.dir/spec_infer.cc.o CMakeFiles/spec_in\
fer.dir/__/models/llama.cc.o CMakeFiles/spec_infer.dir/__/models/opt.cc.o CMakeFiles/spec_infer.dir/__/models/falcon.cc.o CMakeFiles/spec_infer.dir/__/models/mpt.cc.o -o spec_infer   -\
L/cm/shared/apps/nvhpc/24.7/Linux_x86_64/24.7/cuda/12.5/lib64  -Wl,-rpath,/cm/shared/apps/nvhpc/24.7/Linux_x86_64/24.7/cuda/12.5/lib64:/users/suranap/projects/FlexFlow/build-fix-hashes\
:/cm/shared/apps/nvhpc/24.7/Linux_x86_64/24.7/cuda/12.5/lib64/stubs:/cm/shared/apps/nvhpc/24.7/Linux_x86_64/24.7/math_libs/lib64:/cm/shared/apps/nvhpc/24.7/Linux_x86_64/24.7/comm_libs/\
nccl/lib:/users/suranap/projects/FlexFlow/build-fix-hashes/deps/legion/lib: -lrt -ldl -rdynamic -lstdc++fs -Wl,--whole-archive ../../libflexflow.so.1 -Wl,--no-whole-archive /cm/shared/\
apps/nvhpc/24.7/Linux_x86_64/24.7/cuda/12.5/lib64/stubs/libcuda.so /cm/shared/apps/nvhpc/24.7/Linux_x86_64/24.7/math_libs/lib64/libcublas.so /cm/shared/apps/nvhpc/24.7/Linux_x86_64/24.\
7/math_libs/lib64/libcurand.so /cm/shared/apps/cudnn/12-9.3.0.75/lib/libcudnn.so /cm/shared/apps/nvhpc/24.7/Linux_x86_64/24.7/comm_libs/nccl/lib/libnccl.so ../../deps/legion/lib/libleg\
ion.so.1 ../../deps/legion/lib/librealm.so.1 /cm/shared/apps/nvhpc/24.7/Linux_x86_64/24.7/cuda/12.5/lib64/libcudart_static.a /cm/shared/apps/nvhpc/24.7/Linux_x86_64/24.7/cuda/12.5/targ\
ets/x86_64-linux/lib/stubs/libcuda.so /usr/lib/x86_64-linux-gnu/librt.a -latomic ../../tokenizers/libtokenizers_cpp.a ../../tokenizers/debug/libtokenizers_c.a -ldl ../../tokenizers/sen\
tencepiece/src/libsentencepiece.a -lrt -ldl -rdynamic -lstdc++fs
/usr/bin/ld: ../../libflexflow.so.1: undefined reference to `__fs_log_1'
collect2: error: ld returned 1 exit status
make[2]: *** [inference/spec_infer/CMakeFiles/spec_infer.dir/build.make:191: inference/spec_infer/spec_infer] Error 1
@suranap suranap added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant