Why do I get these errors when doing a release build but no errors when doing a debug build? A clean before building has no effect..
Build environment:
STM32CubeIDE
Version: 1.6.1
Build: 9958_20210326_1446 (UTC)
Linux Mint 19.2
arm-none-eabi-g++ (15:6.3.1+svn253039-1build1) 6.3.1 20170620
-----------------------------------------------------------------------------------------------------------
21:46:25 **** Incremental Build of configuration Release for project I2S-RXTX-F7 ****
make -j4 all
arm-none-eabi-g++ -o "I2S-RXTX-F7.elf" @"objects.list" -larm_cortexM7lfdp_math -mcpu=cortex-m7 -T"/home/jponko/opt/STM32CubeIDE/workspace/I2S-RXTX-F7/STM32F767ZITX_FLASH.ld" -Wl,-Map="I2S-RXTX-F7.map" -Wl,--gc-sections -static -Wl,--start-group -larm_cortexM7lfdp_math -Wl,--end-group -L"/home/jponko/opt/STM32CubeIDE
/workspace/I2S-RXTX-F7/lib" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb
-Wl,--start-group -lc -lm -lstdc++ -lsupc++ -Wl,--end-group
/opt/st/stm32cubeide_1.6.1/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.linux64_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: Core/Startup/startup_stm32f767zitx.o: in function `LoopFillZerobss':
(.text.Reset_Handler+0x32): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [makefile:80: I2S-RXTX-F7.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
21:46:26 Build Failed. 3 errors, 0 warnings. (took 524ms)