run this command in the sophgo/tpuc_dev:latest docker
cd tpu-mlirgit checkout v1.0source ./envsetup.sh./build.sh
/workspace/tpu-mlir# ./build.sh
BUILD_PATH: /workspace/tpu-mlir/build
INSTALL_PATH: /workspace/tpu-mlir/install
BUILD_FLAG: -DCMAKE_CXX_FLAGS=-O2
/workspace/tpu-mlir/build /workspace/tpu-mlir
-- The CXX compiler identification is GNU 11.4.0
-- The C compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /usr/lib/x86_64-linux-gnu/libtinfo.so
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Using MLIRConfig.cmake in: /workspace/tpu-mlir/third_party/llvm/lib/cmake/mlir
-- Using LLVMConfig.cmake in: /workspace/tpu-mlir/third_party/llvm/lib/cmake/llvm
-- Linker detection: GNU ld
-- Using LLVM_INCLUDE_DIRS in: /workspace/tpu-mlir/third_party/llvm/include
-- Using MLIR_INCLUDE_DIRS in: /workspace/tpu-mlir/third_party/llvm/include
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- tpu-mlir version: v1.0.v1.0-20230825
-- CMAKE_CXX_FLAGS: -O2 -fopenmp -fPIC -Werror -Wno-unused-result -Wreturn-type -Wunused-variable
-- FLATBUFFERS_PATH: /workspace/tpu-mlir/third_party/flatbuffers
-- To compile fbs files /workspace/tpu-mlir/include/tpu_mlir/Builder/BM168x/bmodel.fbs for bmodel_generated.h
-- FLATBUFFERS_PATH: /workspace/tpu-mlir/third_party/flatbuffers
-- To compile fbs files /workspace/tpu-mlir/include/tpu_mlir/Builder/CV18xx/proto/cvimodel.fbs for cvimodel_generated.h
-- To compile fbs files /workspace/tpu-mlir/include/tpu_mlir/Builder/CV18xx/proto/parameter.fbs for parameter_generated.h
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so (found suitable version "3.10.12", minimum required is "3")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found pybind11: /usr/local/include (found version "2.11.1")
-- Found pybind11: /usr/local/include (found version "2.11.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /workspace/tpu-mlir/build
[560/899] Building CXX object lib/Dialect/Tpu/CMakeFiles/TPUMLIRTpu.dir/Transforms/CV18xx/CVAddressAssign.cpp.o
FAILED: lib/Dialect/Tpu/CMakeFiles/TPUMLIRTpu.dir/Transforms/CV18xx/CVAddressAssign.cpp.o
/usr/bin/ccache /usr/bin/c++ -DMLIR_VERSION=\"v1.0.v1.0-20230825\" -I/workspace/tpu-mlir/third_party/llvm/include -I/workspace/tpu-mlir/include -I/workspace/tpu-mlir/build/include -I/workspace/tpu-mlir/install/include -I/workspace/tpu-mlir/third_party/oneDNN/include -I/workspace/tpu-mlir/third_party/cnpy -I/workspace/tpu-mlir/third_party/flatbuffers/include -I/workspace/tpu-mlir/third_party/nntoolchain/include -I/workspace/tpu-mlir/third_party/CV18xx/include -I/workspace/tpu-mlir/third_party/progressbar/include -O2 -fopenmp -fPIC -Werror -Wno-unused-result -Wreturn-type -Wunused-variable -std=gnu++17 -MD -MT lib/Dialect/Tpu/CMakeFiles/TPUMLIRTpu.dir/Transforms/CV18xx/CVAddressAssign.cpp.o -MF lib/Dialect/Tpu/CMakeFiles/TPUMLIRTpu.dir/Transforms/CV18xx/CVAddressAssign.cpp.o.d -o lib/Dialect/Tpu/CMakeFiles/TPUMLIRTpu.dir/Transforms/CV18xx/CVAddressAssign.cpp.o -c /workspace/tpu-mlir/lib/Dialect/Tpu/Transforms/CV18xx/CVAddressAssign.cpp
/workspace/tpu-mlir/lib/Dialect/Tpu/Transforms/CV18xx/CVAddressAssign.cpp:25:10: fatal error: openssl/md5.h: No such file or directory
25 | #include <openssl/md5.h>
| ^~~~~~~
compilation terminated.
[567/899] Building CXX object lib/Dialect/Tpu/CMakeFiles/TPUMLIRTpu.dir/Transforms/BM168x/WeightReorder.cpp.o
ninja: build stopped: subcommand failed.
Since the code has not been changed, I don't know how to solve this.
run this command in the sophgo/tpuc_dev:latest docker
cd tpu-mlir
git checkout v1.0
source ./envsetup.sh
./build.sh
Since the code has not been changed, I don't know how to solve this.