SyReNN icon indicating copy to clipboard operation
SyReNN copied to clipboard

I meet some problems, can you help me?

Open shao12138 opened this issue 2 years ago • 3 comments

CMake Error at cmake/prebuild.cmake:352 (MESSAGE): Compiling getarch_2nd failed Change Dir: /root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/bazel-out/k8-fastbuild/bin/external/openblas/openblas.build_tmpdir/getarch2_build/CMakeFiles/CMakeTmp

Run Build Command(s):/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/bazel-out/k8-fastbuild/bin/external/rules_foreign_cc/toolchains/make/bin/make -f Makefile cmTC_9c818/fast && /root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/bazel-out/k8-fastbuild/bin/external/rules_foreign_cc/toolchains/make/bin/make -f CMakeFiles/cmTC_9c818.dir/build.make CMakeFiles/cmTC_9c818.dir/build

make[1]: Entering directory '/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/bazel-out/k8-fastbuild/bin/external/openblas/openblas.build_tmpdir/getarch2_build/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_9c818.dir/getarch_2nd.c.o

/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__=""redacted"" -D__TIMESTAMP__=""redacted"" -D__TIME__=""redacted"" -fopenmp -lpthread -march=native -O3 -m64 -DGEMM_MULTITHREAD_THRESHOLD=4 -DNO_PARALLEL_MAKE=0 -I/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/bazel-out/k8-fastbuild/bin/external/openblas/openblas.build_tmpdir/getarch2_build -I"/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas" -I"/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/bazel-out/k8-fastbuild/bin/external/openblas/openblas.build_tmpdir" -o CMakeFiles/cmTC_9c818.dir/getarch_2nd.c.o -c /root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c: In function 'main':

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:12:35: error: 'SGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function); did you mean 'XGEMM_DEFAULT_UNROLL_M'?

 12 |     printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
    |                                   ^~~~~~~~~~~~~~~~~~~~~~
    |                                   XGEMM_DEFAULT_UNROLL_M

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:12:35: note: each undeclared identifier is reported only once for each function it appears in

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:13:35: error: 'SGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function); did you mean 'QGEMM_DEFAULT_UNROLL_N'?

 13 |     printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
    |                                   ^~~~~~~~~~~~~~~~~~~~~~
    |                                   QGEMM_DEFAULT_UNROLL_N

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:14:35: error: 'DGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function); did you mean 'XGEMM_DEFAULT_UNROLL_M'?

 14 |     printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
    |                                   ^~~~~~~~~~~~~~~~~~~~~~
    |                                   XGEMM_DEFAULT_UNROLL_M

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:15:35: error: 'DGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function); did you mean 'QGEMM_DEFAULT_UNROLL_N'?

 15 |     printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
    |                                   ^~~~~~~~~~~~~~~~~~~~~~
    |                                   QGEMM_DEFAULT_UNROLL_N

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:19:35: error: 'CGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function); did you mean 'XGEMM_DEFAULT_UNROLL_M'?

 19 |     printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
    |                                   ^~~~~~~~~~~~~~~~~~~~~~
    |                                   XGEMM_DEFAULT_UNROLL_M

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:20:35: error: 'CGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function); did you mean 'QGEMM_DEFAULT_UNROLL_N'?

 20 |     printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
    |                                   ^~~~~~~~~~~~~~~~~~~~~~
    |                                   QGEMM_DEFAULT_UNROLL_N

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:21:35: error: 'ZGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function); did you mean 'XGEMM_DEFAULT_UNROLL_M'?

 21 |     printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
    |                                   ^~~~~~~~~~~~~~~~~~~~~~
    |                                   XGEMM_DEFAULT_UNROLL_M

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:22:35: error: 'ZGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function); did you mean 'QGEMM_DEFAULT_UNROLL_N'?

 22 |     printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
    |                                   ^~~~~~~~~~~~~~~~~~~~~~
    |                                   QGEMM_DEFAULT_UNROLL_N

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:69:50: error: 'SGEMM_DEFAULT_Q' undeclared (first use in this function)

 69 |     printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 *  sizeof(float)));
    |                                                  ^~~~~~~~~~~~~~~

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:70:50: error: 'DGEMM_DEFAULT_Q' undeclared (first use in this function)

 70 |     printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 *  sizeof(double)));
    |                                                  ^~~~~~~~~~~~~~~

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:71:50: error: 'CGEMM_DEFAULT_Q' undeclared (first use in this function)

 71 |     printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 *  sizeof(float)));
    |                                                  ^~~~~~~~~~~~~~~

/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/external/openblas/getarch_2nd.c:72:50: error: 'ZGEMM_DEFAULT_Q' undeclared (first use in this function)

 72 |     printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 *  sizeof(double)));
    |                                                  ^~~~~~~~~~~~~~~

make[1]: *** [CMakeFiles/cmTC_9c818.dir/build.make:78: CMakeFiles/cmTC_9c818.dir/getarch_2nd.c.o] Error 1

make[1]: Leaving directory '/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/bazel-out/k8-fastbuild/bin/external/openblas/openblas.build_tmpdir/getarch2_build/CMakeFiles/CMakeTmp'

make: *** [Makefile:127: cmTC_9c818/fast] Error 2

Call Stack (most recent call first): cmake/system.cmake:141 (include) CMakeLists.txt:62 (include)

-- Configuring incomplete, errors occurred! See also "/root/.cache/bazel/_bazel_root/799be1c7b2d740446315781c141b8b5d/sandbox/linux-sandbox/2/execroot/SyReNN/bazel-out/k8-fastbuild/bin/external/openblas/openblas.build_tmpdir/CMakeFiles/CMakeOutput.log". _____ END BUILD LOGS _____ rules_foreign_cc: Build wrapper script location: bazel-out/k8-fastbuild/bin/external/openblas/openblas_foreign_cc/wrapper_build_script.sh rules_foreign_cc: Build script location: bazel-out/k8-fastbuild/bin/external/openblas/openblas_foreign_cc/build_script.sh rules_foreign_cc: Build log location: bazel-out/k8-fastbuild/bin/external/openblas/openblas_foreign_cc/CMake.log

Target //syrenn_server:server failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 10.503s, Critical Path: 4.35s INFO: 58 processes: 16 internal, 42 linux-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully make: *** [Makefile:12:start_server] 错误 1

shao12138 avatar May 20 '22 11:05 shao12138

Hello,

Seems to be the same error as https://github.com/xianyi/OpenBLAS/issues/2769 where you're on a CPU arch not detectable by the version of openBLAS we're using.

Per instructions there, suggest to either pass something like TARGET=HASWELL to the build or use a newer version of OpenBLAS. The former approach would probably involve modifying https://github.com/95616ARG/SyReNN/blob/master/external/openblas.BUILD while the later approach would probably involve modifying https://github.com/95616ARG/SyReNN/blob/master/WORKSPACE#L39 (and maybe the build script if things start failing with the newer version of openBLAS, but hopefully not ...)

Hope that helps! Matthew

matthewsot avatar May 23 '22 07:05 matthewsot