找不到有关编译器抱怨的标志“ -mL2 =“的任何信息,它有什么作用?

时间:2019-02-22 08:23:58

标签: build 32-bit riscv

按照here中的说明尝试为讲稿器创建构建文件夹。

这样做时,我得到一个标志,即“ -mL2 =“,编译器会抱怨该标志未设置。当我尝试将其设置为“ -mL2 =”时,它抱怨说(很可能是)缺少参数。但是我不知道它想要什么。

我在浆粕GCC或GCC-7.1.1中找不到有关此标志的任何信息。知道它做什么的人吗?输出如下:

-- The C compiler identification is GNU 7.1.1
-- The CXX compiler identification is GNU 7.1.1
-- The ASM compiler identification is GNU
-- Found assembler: /opt/pulp-riscv/bin/riscv32-unknown-elf-gcc
System is unknown to cmake, create:
Platform/Linux-CXX to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that file to cmake@www.cmake.org.
-- Check for working C compiler: /opt/pulp-riscv/bin//riscv32-unknown-elf-gcc
System is unknown to cmake, create:
Platform/Linux-CXX to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Check for working C compiler: /opt/pulp-riscv/bin//riscv32-unknown-elf-gcc -- broken
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/opt/pulp-riscv/bin//riscv32-unknown-elf-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/*****/Desktop/Kandidatarbete/pulpino/sw/build/CMakeFiles/CMakeTmp

    Run Build Command:"/usr/bin/gmake" "cmTC_b8c5f/fast"
    /usr/bin/gmake -f CMakeFiles/cmTC_b8c5f.dir/build.make CMakeFiles/cmTC_b8c5f.dir/build
    gmake[1]: Entering directory '/home/****/Desktop/Kandidatarbete/pulpino/sw/build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_b8c5f.dir/testCCompiler.c.o
    /opt/pulp-riscv/bin//riscv32-unknown-elf-gcc   -O3 -m32 -g    -o CMakeFiles/cmTC_b8c5f.dir/testCCompiler.c.o   -c /home/ludblom/Desktop/Kandidatarbete/pulpino/sw/build/CMakeFiles/CMakeTmp/testCCompiler.c
    riscv32-unknown-elf-gcc: error: unrecognized command line option '-m32'; did you mean '-mL2='?
    CMakeFiles/cmTC_b8c5f.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_b8c5f.dir/testCCompiler.c.o' failed
    gmake[1]: *** [CMakeFiles/cmTC_b8c5f.dir/testCCompiler.c.o] Error 1
    gmake[1]: Leaving directory '/home/*****/Desktop/Kandidatarbete/pulpino/sw/build/CMakeFiles/CMakeTmp'
    Makefile:126: recipe for target 'cmTC_b8c5f/fast' failed
    gmake: *** [cmTC_b8c5f/fast] Error 2




  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:20 (enable_language)


-- Configuring incomplete, errors occurred!

编辑1:

发现,如果我仅删除标志和“ -m32”,它将停止抱怨。但是它正在尝试在/opt/pulp-riscv/riscv32-unknown-elf/bin/ld上找到一个名为riscv.ld的目录。问题在于,在/bin的那个位置,链接器文件是ld,而不是在带有文件ld的名为riscv.ld的文件夹中。

0 个答案:

没有答案