2025-04-02 4:36 AM - edited 2025-04-02 4:37 AM
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
Solved! Go to Solution.
2025-04-02 6:07 AM
Hi I finally solved it by copying the post-build of a clean project into mine!
Thanks to all for the reply.
2025-04-02 4:41 AM
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
2025-04-02 4:48 AM
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
2025-04-02 4:52 AM
@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.
2025-04-02 4:59 AM
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 want to program this: https://www.b-plus.com/fileadmin/data_storage/Data_Storage/1_Main_Navigation/1_Portfolio/09_Mobile_Automation/Mobile_Steuerungen/Datenblaetter/Datasheet_b-CANCubeMini_Sealed_en_V1.3.pdf with bCANCubeX.
What i read was this post: https://community.st.com/t5/stm32-mcus-products/compiler-error-syntax-error/td-p/584568
2025-04-02 5:43 AM
@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.
2025-04-02 5:50 AM
> 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.
2025-04-02 6:07 AM
Hi I finally solved it by copying the post-build of a clean project into mine!
Thanks to all for the reply.
2025-04-02 6:11 AM
Well done!
Now please mark the solution:
https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256
2025-04-02 10:29 PM
Done!