Errors linking a CMake project

Sysprogs forums Forums VisualGDB Errors linking a CMake project

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13284
    tapwus
    Participant

    Hi,

    We’re trying to build a CMake project with VisualGDB using arm-none-eabi-gcc (ver 4.9.3) compiler for the nrf52 board.

    The build stage completes, but then immediately fails in the linking stage for 2 files.

    “arm-none-eabi-gcc.exe: error: <filename> No such file or directory”

    Looking at the file name, we noticed it prints out a wrong name, meaning it removed a letter and looks for the path without that letter.

    For instance: “nRF5_SDK_14”  turns into “nRF5_DK_14”, and “GCC_Embedded.dir/” turns into “GCC_Embedded.di/”

    However, while looking in the CMake directory in the build.make file, the file name and path seem to be fine.

    When we change the order in the list of source files  in the CMakeLists.txt file, different file names appear.

    Would appreciate any help with the issue, thanks.

     

    #13289
    support
    Keymaster

    Hi,

    This looks like one of your CMake configuration files is corrupt. We would advise creating the project from scratch and then adding all source files to it.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.