算子无法编译
收藏回复举报
算子无法编译
t('forum.solved') 已解决
新人帖
发表于2025-07-06 11:11:38
0 查看

Preset CMake variables:


  ASCEND_COMPUTE_UNIT:STRING="ascend310b;ascend910b"

  ASCEND_PYTHON_EXECUTABLE:STRING="python3"

  CMAKE_BUILD_TYPE:STRING="Release"

  CMAKE_CROSS_PLATFORM_COMPILER:PATH="/usr/bin/aarch64-linux-gnu-g++"

  CMAKE_INSTALL_PREFIX:PATH="/home/ma-user/work/SigmoidCustom/SigmoidCustom/build_out"

  ENABLE_BINARY_PACKAGE:BOOL="True"

  ENABLE_CROSS_COMPILE:BOOL="False"

  ENABLE_SOURCE_PACKAGE:BOOL="True"

  ENABLE_TEST:BOOL="True"

  vendor_name:STRING="customize"


-- The C compiler identification is GNU 7.3.0

-- The CXX compiler identification is GNU 7.3.0

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - failed

-- Check for working C compiler: /usr/bin/cc

-- Check for working C compiler: /usr/bin/cc - broken

CMake Error at /home/ma-user/work/cmake-3.28.3-linux-aarch64/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):

  The C compiler


    "/usr/bin/cc"


  is not able to compile a simple test program.


  It fails with the following output:


    Change Dir: '/home/ma-user/work/SigmoidCustom/SigmoidCustom/build_out/CMakeFiles/CMakeScratch/TryCompile-Is6E6V'

   

    Run Build Command(s): /home/ma-user/work/cmake-3.28.3-linux-aarch64/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_c8474/fast

    /usr/bin/gmake  -f CMakeFiles/cmTC_c8474.dir/build.make CMakeFiles/cmTC_c8474.dir/build

    gmake[1]: Entering directory '/home/ma-user/work/SigmoidCustom/SigmoidCustom/build_out/CMakeFiles/CMakeScratch/TryCompile-Is6E6V'

    Building C object CMakeFiles/cmTC_c8474.dir/testCCompiler.c.o

    /usr/bin/cc    -o CMakeFiles/cmTC_c8474.dir/testCCompiler.c.o -c /home/ma-user/work/SigmoidCustom/SigmoidCustom/build_out/CMakeFiles/CMakeScratch/TryCompile-Is6E6V/testCCompiler.c

    Linking C executable cmTC_c8474

    /home/ma-user/work/cmake-3.28.3-linux-aarch64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c8474.dir/link.txt --verbose=1

    /usr/bin/cc CMakeFiles/cmTC_c8474.dir/testCCompiler.c.o -o cmTC_c8474

    collect2: fatal error: cannot find 'ld'

    compilation terminated.

    gmake[1]: *** [CMakeFiles/cmTC_c8474.dir/build.make:99: cmTC_c8474] Error 1

    gmake[1]: Leaving directory '/home/ma-user/work/SigmoidCustom/SigmoidCustom/build_out/CMakeFiles/CMakeScratch/TryCompile-Is6E6V'

    gmake: *** [Makefile:127: cmTC_c8474/fast] Error 2

   

   


 


  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

  CMakeLists.txt:2 (project)



-- Configuring incomplete, errors occurred!

gmake: Makefile: No such file or directory

gmake: *** No rule to make target 'Makefile'.  Stop.

本帖最后由 匿名用户 于 2025/07/07 09:24:46 编辑

我要发帖子