Skip to main content
Associate
April 2, 2025
Solved

Compiler error - Syntax

  • April 2, 2025
  • 4 replies
  • 880 views

When I try to compile a inherit project I get this error:

c:/st/stm32cubeide_1.17.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.make.win32_2.2.0.202409170845/tools/bin/sh: syntax error: unexpected "("

make[1]: *** [makefile:92: post-build] Error 2

make: *** [makefile:60: all] Error 2

Can someone please help me? I read that it is something related with the post Build, as I am using b-plus for CAN can it be related?

The error says that there is an unexpected "(" but my IDE is installed in C:// directly

Thank you in advance

Best answer by Hachim

Hi I finally solved it by copying the post-build of a clean project into mine!

 

Thanks to all for the reply.

4 replies

KnarfB
Super User
April 2, 2025

How about your project path and name. Everything should be short and plain ASCII. 

Check the indicated lines in makefile: 92

It says post-build, so check for post-build commands

hth

KnarfB

Andrew Neil
Super User
April 2, 2025

Welcome to the forum.

You need to give more detail - please see: How to write your question to maximize your chances to find a solution.

It seems to be an error with your makefile



 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Lead II
April 2, 2025

@Hachim wrote:

When I try to compile a inherit project


A what?

 


@Hachim wrote:

I get this error:

c:/st/stm32cubeide_1.17.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.make.win32_2.2.0.202409170845/tools/bin/sh: syntax error: unexpected "("



How did you get this error? Please share your project.

 


@Hachim wrote:

I read that it is something related with the post Build, as I am using b-plus for CAN can it be related?


What is a "b-plus"? And where did you read this? Please share a link.


"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
Lead II
April 2, 2025

@Hachim wrote:

A project that wasn't mine it was from a collegue and i tried to build it in my IDE.

https://drive.google.com/drive/folders/1LRpsyV1rNWEywNoENRjYMPrgeIWA8Nf0?usp=sharing

I cannot open the link. I don't have access.

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
HachimAuthorBest answer
Associate
April 2, 2025

Hi I finally solved it by copying the post-build of a clean project into mine!

 

Thanks to all for the reply.

Andrew Neil
Super User
April 2, 2025
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
HachimAuthor
Associate
April 3, 2025

Done!