cancel
Showing results for 
Search instead for 
Did you mean: 

Compiler error - Syntax

Hachim
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
Hachim
Associate

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

 

Thanks to all for the reply.

View solution in original post

9 REPLIES 9
KnarfB
Principal III

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

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



 


@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.

@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.

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

This sounds like you talk about a commercial environment.
Can't you get hold of your colleague's PC and try to build it there ?
And perhaps correct project/file export or versioning system issues ?

While makefile issues should be relatively easy to fix, it might only be the start.

 

 

Hachim
Associate

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

 

Thanks to all for the reply.

Done!