2024-03-21 07:50 AM - edited 2024-03-21 03:26 PM
I work on a project that is managed via Tortoise SVN (not sure if it is relevant).
On my own machine - I have no problem compiling and building (and of course, debugging).
I cloned the repository to a new machine, but I cannot get the code to compile, I keep getting "make" errors.
16:28:09 **** Build of configuration Debug for project PROJECT_NAME ****
make -j16 all
touch ../Core/Src/fileName.c
make[1]: *** [makefile:103: pre-build] Error -1
make: *** [makefile:71: all] Error 2
"make -j16 all" terminated with exit code 2. Build might be incomplete.
16:28:09 Build Failed. 2 errors, 0 warnings. (took 687ms)
There's a custom 'touch' command to update some build timestamps. However, even when it's disabled via project properties, I still get errors.
I did verify that make.exe is located in a folder pointed by PATH in the project properties.
I did try clean and rebuild project, with no success.
Any ideas on what's going on? What should I try?
2024-03-21 03:21 PM
Hi,
You wrote that the "touch" command is disabled via project properties - but, as you see in the output, it runs. So, please check the project properties. Do you build the desired configuration?
2024-03-21 03:24 PM
I should've phrased myself better (will edit original post) - event when disabling the 'touch', I still get these errors.
2024-03-21 03:37 PM
Sorry I'm out of ideas...
> I did verify that make.exe is located in a folder pointed by PATH in the project properties.
Normally CubeIDE adds the path to its make and other host side tools automatically when it starts build. There's no need to add anything to PATH. Even opposite, adding wrong stuff to PATH can break build.