No rule to make target error with Raspberry Pi toolchain

Sysprogs forums Forums VisualGDB No rule to make target error with Raspberry Pi toolchain

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34838
    Serjaru
    Participant

    Very strange behavior. When we create a project and run it in debug mode for the first time, everything is fine, it starts, but the second time already gives an error:

    Run "C:\SysGCC\raspberry64\bin\make.exe CONFIG=Debug" in directory "C:\VS\BSH\LinuxProject1" on local computer
    C:\SysGCC\raspberry64\bin\make.exe CONFIG=Debug
    make: *** No rule to make target c\:\sysgcc\raspberry64\aarch64-linux-gnu\sysroot\usr\include/stdc-predef.h', needed byDebug/LinuxProject1.o'. Stop.
    -------------------------------------------------------------
    Command exited with code 2
    Executable: C:\SysGCC\raspberry64\bin\make.exe
    Arguments: CONFIG=Debug
    Directory: C:\VS\BSH\LinuxProject1
    Command-line action failed
    
    ========== Project Build Summary ==========
    LinuxProject1 built in 00:01
    ========== Build: 0 Succeeded, 1 Failed, 0 Skipped ==========

     

    If you do clean, it will start again once in debug mode and then not anymore!

    • This topic was modified 1 year, 1 month ago by support. Reason: formatting
    #34840
    support
    Keymaster

    Hi,

    This is a known issue between GCC and GNU Make. Some GCC variants produce the dependency files with “c\:\xxx\yyy” path syntax that breaks GNU Make when it tries to recompute dependencies (hence it only happens on the second build).

    The workaround is very easy – simply use CMake with Ninja or MSBuild instead, and it will work just fine.

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