Makefile problem with windows crosscompiler

Sysprogs forums Forums VisualGDB Makefile problem with windows crosscompiler

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #32397
    Lonko
    Participant

    Dear,

    tried creating a helo world example with a crosscompiler that i got from the manufacturer. Crosscompiler is on windows, i am seeing some makefile problems:

    Run “C:\xxx\Linux\Compiler\4.2.0\bin\make.exe CONFIG=Debug clean” in directory “C:\Users\xxxx\source\repos\LinuxProject2” on local computer
    C:\xxx\Linux\Compiler\4.2.0\bin\make.exe CONFIG=Debug clean
    makefile:29: no file name for `include’
    makefile:60: Extraneous text after `else’ directive
    makefile:64: Extraneous text after `else’ directive
    makefile:64: *** only one `else’ per conditional. Stop.
    ————————————————————-
    Command exited with code 2

     

    It fails on line:

    29: include $(ADDITIONAL_MAKE_FILES)

     

    ifeq ($(TOOLCHAIN_SUBTYPE),iar)
    CC_DEPENDENCY_FILE_SPECIFIER := –dependencies=m
    ASM_DEPENDENCY_FILE_SPECIFIER := && echo >
    CXXFLAGS += –c++
    COMMONFLAGS += –silent

    60: else ifeq ($(TOOLCHAIN_SUBTYPE),armcc)
    CC_DEPENDENCY_FILE_SPECIFIER := –depend
    ASM_DEPENDENCY_FILE_SPECIFIER := –depend
    USING_KEIL_TOOLCHAIN := 1
    64: else ifeq ($(TOOLCHAIN_SUBTYPE),armclang)
    CC_DEPENDENCY_FILE_SPECIFIER := -MD -MF
    ASM_DEPENDENCY_FILE_SPECIFIER := –depend
    USING_KEIL_TOOLCHAIN := 1
    else
    CC_DEPENDENCY_FILE_SPECIFIER := -MD -MF
    ASM_DEPENDENCY_FILE_SPECIFIER := -MD -MF
    endif

    Am i doing something wrong or ?

    #32398
    support
    Keymaster

    Hi,

    This looks like an issue of a specific demo project, and not a VisualGDB bug. Please note that if the project doesn’t build from command line, importing it into VisualGDB will not automatically fix the build errors, since VisualGDB would be using exactly the same command line producing the same result.

    #32419
    Lonko
    Participant

    Dear

     

    thank you for your response, the demo project is a default visualgdb linux console project that has helloworld inside

    i did not take any other project or sources.

     

    br

    #32420
    support
    Keymaster

    Thanks for clarifying this. In this case, your toolchain likely contains a very old make executable that does not support some commands. Please consider replacing it with a make.exe from the VisualGDB directory. It should not affect the rest of the toolchain (e.g. the compiler) and should fix the problems with the Makefiles.

    #32422
    Lonko
    Participant

    Dear

    Yep that was it… changed the makefile to visualgdbs and it works

    Thank you!

    BR

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