You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for f in ag xhip $BUILD_DIR -l
do
sed -i 's/^(C_FLAGS.) -xhip --cuda-gpu-arch=gfx906 --cuda-gpu-arch=gfx926(.)/\1 --gpu-max-threads-per-block=1024 \2/g' $f
sed -i 's/^(CXX_FLAGS.*)/\1 --gpu-max-threads-per-block=1024/g' $f
done
cmake --build build --config Release -- -j 8
echo "build done..."
What operating system are you seeing the problem on?
No response
Relevant log output
/usr/bin/ld: CMakeFiles/llama-minicpmv-cli.dir/minicpmv-cli.cpp.o: infunction`main':
minicpmv-cli.cpp:(.text+0x599): undefined reference to `avformat_open_input'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x5ad): undefined reference to `avformat_find_stream_info'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x61f): undefined reference to `avcodec_find_decoder'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x639): undefined reference to `avcodec_alloc_context3'
/usr/bin/ld: minicpmv-cli.cpp:(.text+0x670): undefined reference to `avcodec_parameters_to_context'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x685): undefined reference to `avcodec_open2'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x69e): undefined reference to `av_frame_alloc'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x6ba): undefined reference to `av_frame_alloc'
/usr/bin/ld: minicpmv-cli.cpp:(.text+0x6ee): undefined reference to `av_image_get_buffer_size'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x70a): undefined reference to `av_malloc'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x73d): undefined reference to `av_image_fill_arrays'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x776): undefined reference to `sws_getContext'
/usr/bin/ld: minicpmv-cli.cpp:(.text+0x976): undefined reference to `avformat_close_input'/usr/bin/ld: minicpmv-cli.cpp:(.text+0xc31): undefined reference to `avformat_close_input'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x1de8): undefined reference to `avcodec_free_context'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x1ec3): undefined reference to `av_frame_free'
/usr/bin/ld: minicpmv-cli.cpp:(.text+0x1ed0): undefined reference to `av_frame_free'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x1edd): undefined reference to `avcodec_free_context'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x1ee7): undefined reference to `avformat_close_input'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x20ce): undefined reference to `av_packet_unref'
/usr/bin/ld: minicpmv-cli.cpp:(.text+0x20db): undefined reference to `av_read_frame'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x2100): undefined reference to `avcodec_send_packet'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x216d): undefined reference to `avcodec_receive_frame'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x21da): undefined reference to `sws_scale'
/usr/bin/ld: minicpmv-cli.cpp:(.text+0x236a): undefined reference to `av_free'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x2377): undefined reference to `av_frame_free'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x2384): undefined reference to `av_frame_free'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x2391): undefined reference to `avcodec_free_context'
/usr/bin/ld: minicpmv-cli.cpp:(.text+0x239b): undefined reference to `avformat_close_input'/usr/bin/ld: minicpmv-cli.cpp:(.text+0x23a8): undefined reference to `sws_freeContext'clang-15: error: linker command failed with exit code 1 (use -v to see invocation)make[2]: *** [examples/llava/CMakeFiles/llama-minicpmv-cli.dir/build.make:110: bin/llama-minicpmv-cli] Error 1make[1]: *** [CMakeFiles/Makefile2:2767: examples/llava/CMakeFiles/llama-minicpmv-cli.dir/all] Error 2make: *** [Makefile:146: all] Error 2
The text was updated successfully, but these errors were encountered:
What happened?
包是全的,pkg-config输出也都是正常的,编译会报未定义的错。
Name and Version
ubuntu22.04.5 LTS
使用的编译脚本:
#!/bin/bash
cmake -S . -B build -DCMAKE_POSITION_INDEPENDENT_CODE=on -DLLAMA_CCACHE=OFF -DLLAMA_NATIVE=off -DLLAMA_AVX=on -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off -DCMAKE_BUILD_TYPE=Release -DLLAMA_SERVER_VERBOSE=off -DLLAMA_HIPBLAS=on -DCMAKE_C_COMPILER=/opt/dtk/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/dtk/llvm/bin/clang++ '-DAMDGPU_TARGETS=gfx906;gfx926' '-DGPU_TARGETS=gfx906;gfx926'
echo "build step2..."
for f in
ag xhip $BUILD_DIR -l
do
sed -i 's/^(C_FLAGS.) -xhip --cuda-gpu-arch=gfx906 --cuda-gpu-arch=gfx926(.)/\1 --gpu-max-threads-per-block=1024 \2/g' $f
sed -i 's/^(CXX_FLAGS.*)/\1 --gpu-max-threads-per-block=1024/g' $f
done
cmake --build build --config Release -- -j 8
echo "build done..."
What operating system are you seeing the problem on?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: