Syntax Error: "(" unexpected
Hi,
I am trying to use SWSTM32 on Ubuntu (32 bit) 15.04. After generating a project in STMCube32MX I try to compile the project and I get the following error.
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Dweak=attributeweak -Dpacked=attributepacked -DUSE_HAL_DRIVER -DSTM32F401xE -IInc -IDrivers/STM32F4xx_HAL_Driver/Inc -IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32F4xx/Include -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.d” -MT”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o” -o “Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o” “/home/haemish/stm32workspace/DoorUnlocker/DoorUnlocker/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c”
/bin/sh: 1: Syntax error: “(” unexpected
Drivers/STM32F4xx_HAL_Driver/subdir.mk:54: recipe for target ‘Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o’ failed
make: *** Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o Error 2
I have done a little digging and it seems this may have something to do with the fact that I am running 32 bit ubuntu. I have tried installing these as suggested:
sudo apt-get install libc6:i386 lib32ncurses5
I noticed that the lib32ncurses5 does not exist but I did find libx32ncurses5.....I am hoping this is the same thing.
Does anyone have an idea what the problem is here?