Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF5 SDK build error with GCC under windows

Hello,

I am using SDK5 for my code that builds successfully under Linux, but not under windows.

The error occurs in the SDK, not in the application. I am wondering what modifications are needed to migrate from Linux to Windows, apart from editing MakeFile.Windows?

The details are as follow:

build system: Makefile + GNU tools ARM embedded, version 7.3.1

Windows 7 vs UBUNTU

MakeFile.Windows:

The error shown:

Building nrf52832
C:/Aries/Ares-NRF52/nrf52832/makefile.mak:162: *** empty variable name. Stop.

The mentioned line (MakeFile.mak: 162):

And the macro that is called in the above line:

this macro and subsequent ones look fine, considering that it builds successfully under Linux with the same makefile and GCC version.

I have read and applied all relevant guides and I don't see what is the issue.

As for the last comment, my windows GCC builds our other projects successfully. So, the problem is not in its installation.

Thank you for any idea

Parents
  • Hi,

    Did you create your own makefile instead of using the ones we provide with the SDK? This seems like more of a GCC question than a Nordic question, but if you upload your makefil I can see if i can help you out.

    Have you checked the files for linux specific characters, or made sure there is no whitespaces, etc. that should not be there?

    Best regards,
    Jørgen

Reply
  • Hi,

    Did you create your own makefile instead of using the ones we provide with the SDK? This seems like more of a GCC question than a Nordic question, but if you upload your makefil I can see if i can help you out.

    Have you checked the files for linux specific characters, or made sure there is no whitespaces, etc. that should not be there?

    Best regards,
    Jørgen

Children
  • We have our own makefile that uses the SDK's makefiles, specifically MakeFile.common (SDK dir\components\toolchain\gcc\), where the error occurs. 

    I am not sure about Linux-specific characters. I only considered / and \. Do you possibly have any reference that can forward me?

    I can upload my MakeFile, if it helps and if you please tell me how to upload it.

  • You can upload files in your comments from the 'Insert' menu. If you do not want the file to be shared in public, please let me know. I can then convert the case into a private case.

  • 0434.Makefile.common

    Here are my Makefiles. For some reason, makefile.mak and MakeFile.wondows fail to upload, so I renamed them to makefile-mak.txt and makefile-windows.txt to be able to upload them.

    Thank you very much for your help

  • Your makefile is shorter than line 162. Did you change it? Where have you defined the variables PROJ_DIR and VARIANT on line 3?

    OUTPUT_DIRECTORY := $(PROJ_DIR)/obj/$(VARIANT)

  • Sorry, I should have mentioned that the file had been modified to hide the list of source files. The line in question is at line 111 now.

    Also, in regard to your next question, please go through these new attachments: