Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Build Project fails with ERROR 258(Can't build a project: an open emphesis "(" stops execution)
Build Project fails with ERROR 258 [message #1752209] Thu, 19 January 2017 21:41 Go to next message
Rolf Suessbrich is currently offline Rolf SuessbrichFriend
Messages: 1
Registered: January 2017
Junior Member

using for STM32 the AC6 environment I've finished the first coding but I can't succeed.

The Build Project fails with

make: *** [Src/main.o] Error 258

The reason is:

/usr/make/sh: -c: line 0: syntax error near unexpected token `('
/usr/make/sh: -c: line 0: `arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -D__weak=__attribute__((weak)) -D__packed=__attribute__((__packed__)) -DUSE_HAL_DRIVER -DSTM32F103xB -I"D:/Data/STM32Nucleo2/RolfCube2/Inc" -I"D:/Data/STM32Nucleo2/RolfCube2/Drivers/STM32F1xx_HAL_Driver/Inc" -I"D:/Data/STM32Nucleo2/RolfCube2/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy" -I"D:/Data/STM32Nucleo2/RolfCube2/Drivers/CMSIS/Device/ST/STM32F1xx/Include" -I"D:/Data/STM32Nucleo2/RolfCube2/Drivers/CMSIS/Include" -I"D:/Data/STM32Nucleo2/RolfCube2/Inc" -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF"Src/main.d" -MT"Src/main.o" -o "Src/main.o" "../Src/main.c"'

It can't be an issue of the arm...gcc, because the command line run explicitly in a cmd-window compiles the project sucessfully:

set aa

%aa% -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -D__weak=__attribute__((weak)) -D__packed=__attribute__((__packed__)) -DUSE_HAL_DRIVER -DSTM32F103xB -I"D:/Data/STM32Nucleo2/RolfCube2/Inc" -I"D:/Data/STM32Nucleo2/RolfCube2/Drivers/STM32F1xx_HAL_Driver/Inc" -I"D:/Data/STM32Nucleo2/RolfCube2/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy" -I"D:/Data/STM32Nucleo2/RolfCube2/Drivers/CMSIS/Device/ST/STM32F1xx/Include" -I"D:/Data/STM32Nucleo2/RolfCube2/Drivers/CMSIS/Include" -I"D:/Data/STM32Nucleo2/RolfCube2/Inc" -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF"Src/main.d" -MT"Src/main.o" -o "Src/main.o" "../Src/main.c"

I assume the items in italic raise the issue for a process unknown for me, but I have no control about the processing.

Any idea?

Re: Build Project fails with ERROR 258 [message #1752290 is a reply to message #1752209] Fri, 20 January 2017 16:25 Go to previous message
David VavraFriend
Messages: 1415
Registered: October 2012
Senior Member
Make (or the shell) is encountering a syntax error trying to link.
Specifically: syntax error near unexpected token `('
You'll need to find out where it is specifically then fix it.
My guess it's the __attribute__((weak)) and others.

This isn't a CDT issue but you may be able to fix it within Eclipse:

The following also may help:!topic/hugin-ptx/0ztbwkqtpms

Previous Topic:CDT: Empty paths in "Includes" entry within "Project Explorer" view
Next Topic:Project selection in NEOS2 runs wrong project.
Goto Forum:

Current Time: Tue Jan 25 21:14:31 GMT 2022

Powered by FUDForum. Page generated in 0.01753 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top