Skip to main content
OFati.1
Associate
Question

Hello, i'm trying to build my project using makefile, it works on CMD windows, but doesn't work on STM32CubeIDE, it gives: GIT describing... ../../gitdescribe: line 3: $'\r': command not found, and then build failed. thanks in advance

..

This topic has been closed for replies.

2 replies

Pavel A.

What does the "gitdescribe" command do in your makefile? It is not needed to build and is not a part of the CubeIDE toolchain.

Commands needed to build are compile and link.

-- pa

OFati.1
OFati.1Author
Associate

hello, actually when compiling the first thing the program shows git describe content i solved this problem by calling dos2unix for the gitdescribe file, apparently the file was edited on linux when called on windows it cause this issue.