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

在docker中运行./build.sh失败 #202

Open
micropuma opened this issue Dec 13, 2024 · 0 comments
Open

在docker中运行./build.sh失败 #202

micropuma opened this issue Dec 13, 2024 · 0 comments

Comments

@micropuma
Copy link

我根据readme通过docker构建项目,

docker pull sophgo/tpuc_dev:latest  

上述的命令失败,我通过下述方法获取docker镜像。

wget https://sophon-file.sophon.cn/sophon-prod-s3/drive/24/06/14/12/sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz
docker load -i sophgo-tpuc_dev-v3.2_191a433358ad.tar.gz

但是在该docker容器中运行

cd tpu-mlir
source ./envsetup.sh
./build.sh

构建报错:

BUILD_PATH: /workspace/tpu-mlir/build
INSTALL_PATH: /workspace/tpu-mlir/install
-- variable_test NPU_NUM_test_fp16=8, default=8
-- variable_test IC_PARALLEL_test_fp16=4, default=4
-- variable_test EU_NUM_test_fp16=8, default=8
-- variable_test LOCAL_MEM_SHIFT=17, default=17
-- The CXX compiler identification is Clang 14.0.0
-- The C compiler identification is Clang 14.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - 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/clang - 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") 
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.13") 
-- Using MLIRConfig.cmake in: /usr/local/lib/cmake/mlir
-- Using LLVMConfig.cmake in: /usr/local/lib/cmake/llvm
-- Linker detection: GNU ld
-- Using LLVM_INCLUDE_DIRS in: /usr/local/include
-- Using MLIR_INCLUDE_DIRS in: /usr/local/include
-- Found OpenMP_C: -fopenmp=libomp (found version "5.0") 
-- Found OpenMP_CXX: -fopenmp=libomp (found version "5.0") 
-- Found OpenMP: TRUE (found version "5.0")  
-- tpu-mlir version: 2a0df931c-20241213
-- CMAKE_CXX_FLAGS: -O2 -fopenmp=libomp -fPIC -Werror -Wno-unused-result -Wreturn-type -Wunused-variable
-- To compile fbs files /workspace/tpu-mlir/include/tpu_mlir/Builder/BM168x/bmodel.fbs for bmodel_generated.h
-- 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
In intergrated.cmake
-- 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
-- Performing Test HAS_FLTO_THIN
-- Performing Test HAS_FLTO_THIN - Success
-- Found pybind11: /usr/local/include (found version "2.11.1")
-- Found pybind11: /usr/local/include (found version "2.11.1")
-- Found pybind11: /usr/local/include (found version "2.11.1")
-- Found Python3: /usr/bin/python3.10 (found version "3.10.12") found components: Interpreter Development.Module NumPy 
-- Found python include dirs: /usr/include/python3.10
-- Found python libraries: 
-- Found numpy v1.24.3: /usr/local/lib/python3.10/dist-packages/numpy/core/include
-- Using explicit pybind11 cmake directory: /usr/local/share/cmake/pybind11 (-Dpybind11_DIR to change)
-- Found pybind11: /usr/local/include (found version "2.11.1")
-- Found pybind11 v2.11.1: /usr/local/include
-- Python prefix = '', suffix = '', extension = '.cpython-310-x86_64-linux-gnu.so
-- Found python include dirs: /usr/include/python3.10
-- Found python libraries: 
-- Found numpy v1.24.3: /usr/local/lib/python3.10/dist-packages/numpy/core/include
-- Using explicit pybind11 cmake directory: /usr/local/share/cmake/pybind11 (-Dpybind11_DIR to change)
-- Found pybind11: /usr/local/include (found version "2.11.1")
-- Found pybind11 v2.11.1: /usr/local/include
-- Python prefix = '', suffix = '', extension = '.cpython-310-x86_64-linux-gnu.so
-- Configuring done
-- Generating done
-- Build files have been written to: /workspace/tpu-mlir/build
[1103/1529] Building CXX object tools...alOptimization.dir/CollapseDims.cpp.o
FAILED: tools/tpuc-opt-experiment/GlobalOptimization/CMakeFiles/obj.MLIRGlobalOptimization.dir/CollapseDims.cpp.o 
/usr/bin/ccache /usr/bin/clang++ -DEU_NUM_test_fp16=8 -DGTEST_HAS_RTTI=0 -DIC_PARALLEL_test_fp16=4 -DLOCAL_MEM_SHIFT=17 -DMLIR_VERSION=\"2a0df931c-20241213\" -DNPU_NUM_test_fp16=8 -I/workspace/tpu-mlir/include -I/workspace/tpu-mlir/build/include -I/workspace/tpu-mlir/install/include -I/workspace/tpu-mlir/third_party/cnpy -I/workspace/tpu-mlir/third_party/nntoolchain/include -I/workspace/tpu-mlir/third_party/CV18xx/include -I/workspace/tpu-mlir/third_party/progressbar/include -I/workspace/tpu-mlir/third_party/customlayer/include/kernel -I/workspace/tpu-mlir/third_party/customlayer/include -I/workspace/tpu-mlir/third_party/or-tools/include -I/workspace/tpu-mlir/tools/tpuc-opt-experiment -I/workspace/tpu-mlir/tools/tpuc-opt-experiment/include -I/workspace/tpu-mlir/build/tools/tpuc-opt-experiment -O2 -fopenmp=libomp -fPIC -Werror -Wno-unused-result -Wreturn-type -Wunused-variable  -fno-exceptions -funwind-tables -fno-rtti -std=gnu++17 -MD -MT tools/tpuc-opt-experiment/GlobalOptimization/CMakeFiles/obj.MLIRGlobalOptimization.dir/CollapseDims.cpp.o -MF tools/tpuc-opt-experiment/GlobalOptimization/CMakeFiles/obj.MLIRGlobalOptimization.dir/CollapseDims.cpp.o.d -o tools/tpuc-opt-experiment/GlobalOptimization/CMakeFiles/obj.MLIRGlobalOptimization.dir/CollapseDims.cpp.o -c /workspace/tpu-mlir/tools/tpuc-opt-experiment/GlobalOptimization/CollapseDims.cpp
[1104/1529] Building CXX object tools...version.dir/AutoInputConversion.cpp.o
FAILED: tools/tpuc-opt-experiment/InputConversion/CMakeFiles/obj.MLIRInputConversion.dir/AutoInputConversion.cpp.o 
/usr/bin/ccache /usr/bin/clang++ -DEU_NUM_test_fp16=8 -DGTEST_HAS_RTTI=0 -DIC_PARALLEL_test_fp16=4 -DLOCAL_MEM_SHIFT=17 -DMLIR_VERSION=\"2a0df931c-20241213\" -DNPU_NUM_test_fp16=8 -I/workspace/tpu-mlir/include -I/workspace/tpu-mlir/build/include -I/workspace/tpu-mlir/install/include -I/workspace/tpu-mlir/third_party/cnpy -I/workspace/tpu-mlir/third_party/nntoolchain/include -I/workspace/tpu-mlir/third_party/CV18xx/include -I/workspace/tpu-mlir/third_party/progressbar/include -I/workspace/tpu-mlir/third_party/customlayer/include/kernel -I/workspace/tpu-mlir/third_party/customlayer/include -I/workspace/tpu-mlir/third_party/or-tools/include -I/workspace/tpu-mlir/tools/tpuc-opt-experiment -I/workspace/tpu-mlir/tools/tpuc-opt-experiment/include -I/workspace/tpu-mlir/build/tools/tpuc-opt-experiment -O2 -fopenmp=libomp -fPIC -Werror -Wno-unused-result -Wreturn-type -Wunused-variable  -fno-exceptions -funwind-tables -fno-rtti -std=gnu++17 -MD -MT tools/tpuc-opt-experiment/InputConversion/CMakeFiles/obj.MLIRInputConversion.dir/AutoInputConversion.cpp.o -MF tools/tpuc-opt-experiment/InputConversion/CMakeFiles/obj.MLIRInputConversion.dir/AutoInputConversion.cpp.o.d -o tools/tpuc-opt-experiment/InputConversion/CMakeFiles/obj.MLIRInputConversion.dir/AutoInputConversion.cpp.o -c /workspace/tpu-mlir/tools/tpuc-opt-experiment/InputConversion/AutoInputConversion.cpp

上述错误是符合v3.2这个版本有关?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant