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失败 #70

Open
dan999666 opened this issue Nov 5, 2024 · 0 comments
Open

docker脚本build失败 #70

dan999666 opened this issue Nov 5, 2024 · 0 comments

Comments

@dan999666
Copy link

➜ KuiperInfer git:(main) docker build -t kuiperinfer:latest .
[+] Building 5.3s (20/38)
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from dockerfile 0.0s
=> => transferring dockerfile: 1.78kB 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:22.04 0.8s
=> [ 1/35] FROM docker.io/library/ubuntu:22.04@sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97 0.0s
=> CACHED [ 2/35] RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list 0.0s
=> CACHED [ 3/35] RUN apt -y update 0.0s
=> CACHED [ 4/35] RUN apt -y upgrade 0.0s
=> CACHED [ 5/35] RUN apt install -y build-essential cmake git gfortran wget 0.0s
=> CACHED [ 6/35] RUN git clone https://github.com/xianyi/OpenBLAS.git 0.0s
=> CACHED [ 7/35] RUN mkdir OpenBLAS/build 0.0s
=> CACHED [ 8/35] RUN cmake OpenBLAS/ -B OpenBLAS/build/ -DUSE_OPENMP=ON 0.0s
=> CACHED [ 9/35] RUN make -C OpenBLAS/build/ -j$(nproc) 0.0s
=> CACHED [10/35] RUN make install -C OpenBLAS/build/ 0.0s
=> CACHED [11/35] RUN apt install -y liblapack-dev libarpack2-dev libsuperlu-dev 0.0s
=> CACHED [12/35] RUN wget https://sourceforge.net/projects/arma/files/armadillo-12.6.3.tar.xz 0.0s
=> CACHED [13/35] RUN tar -vxf armadillo-12.6.3.tar.xz 0.0s
=> CACHED [14/35] RUN mkdir armadillo-12.6.3/build 0.0s
=> CACHED [15/35] RUN cmake armadillo-12.6.3/ -B armadillo-12.6.3/build/ 0.0s
=> CACHED [16/35] RUN cmake armadillo-12.6.3 -B armadillo-12.6.3/build/ 0.0s
=> ERROR [17/35] RUN make -C armadillo-12.6.3/build -j$(nproc) 4.4s

[17/35] RUN make -C armadillo-12.6.3/build -j$(nproc):
#0 0.164 make: Entering directory '/armadillo-12.6.3/build'
#0 0.177 make[1]: Entering directory '/armadillo-12.6.3/build'
#0 0.178 make[2]: Entering directory '/armadillo-12.6.3/build'
#0 0.184 make[2]: Leaving directory '/armadillo-12.6.3/build'
#0 0.185 make[2]: Entering directory '/armadillo-12.6.3/build'
#0 0.190 [ 20%] Building CXX object CMakeFiles/armadillo.dir/src/wrapper1.cpp.o
#0 0.191 [ 40%] Building CXX object CMakeFiles/armadillo.dir/src/wrapper2.cpp.o
#0 0.703 [ 60%] Linking CXX shared library libarmadillo.so
#0 1.005 make[2]: Leaving directory '/armadillo-12.6.3/build'
#0 1.011 [ 60%] Built target armadillo
#0 1.012 make[2]: Entering directory '/armadillo-12.6.3/build'
#0 1.017 make[2]: Leaving directory '/armadillo-12.6.3/build'
#0 1.018 make[2]: Entering directory '/armadillo-12.6.3/build'
#0 1.023 [ 80%] Building CXX object tests1/CMakeFiles/smoke_test.dir/smoke_test.cpp.o
#0 4.335 [100%] Linking CXX executable smoke_test
#0 4.398 /usr/bin/ld: ../libarmadillo.so.12.6.3: undefined reference to omp_set_lock' #0 4.398 /usr/bin/ld: ../libarmadillo.so.12.6.3: undefined reference to omp_get_num_places'
#0 4.398 /usr/bin/ld: ../libarmadillo.so.12.6.3: undefined reference to omp_get_thread_num' #0 4.398 /usr/bin/ld: ../libarmadillo.so.12.6.3: undefined reference to omp_get_num_threads'
#0 4.398 /usr/bin/ld: ../libarmadillo.so.12.6.3: undefined reference to omp_get_place_num_procs' #0 4.398 /usr/bin/ld: ../libarmadillo.so.12.6.3: undefined reference to omp_in_parallel'
#0 4.398 /usr/bin/ld: ../libarmadillo.so.12.6.3: undefined reference to GOMP_parallel' #0 4.398 /usr/bin/ld: ../libarmadillo.so.12.6.3: undefined reference to omp_get_max_threads'
#0 4.399 /usr/bin/ld: ../libarmadillo.so.12.6.3: undefined reference to omp_init_lock' #0 4.399 /usr/bin/ld: ../libarmadillo.so.12.6.3: undefined reference to omp_unset_lock'
#0 4.401 collect2: error: ld returned 1 exit status
#0 4.403 make[2]: *** [tests1/CMakeFiles/smoke_test.dir/build.make:102: tests1/smoke_test] Error 1
#0 4.403 make[2]: Leaving directory '/armadillo-12.6.3/build'
#0 4.403 make[1]: *** [CMakeFiles/Makefile2:126: tests1/CMakeFiles/smoke_test.dir/all] Error 2
#0 4.403 make[1]: Leaving directory '/armadillo-12.6.3/build'
#0 4.403 make: *** [Makefile:146: all] Error 2
#0 4.403 make: Leaving directory '/armadillo-12.6.3/build'


dockerfile:26

24 | RUN cmake armadillo-12.6.3/ -B armadillo-12.6.3/build/
25 | RUN cmake armadillo-12.6.3 -B armadillo-12.6.3/build/
26 | >>> RUN make -C armadillo-12.6.3/build -j$(nproc)
27 | RUN make install -C armadillo-12.6.3/build
28 |

ERROR: failed to solve: process "/bin/sh -c make -C armadillo-12.6.3/build -j$(nproc)" did not complete successfully: exit code: 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