Skip to main content
LBrov
Associate
May 16, 2019
Question

When i Build the proyect the next error occur. make: *** [makefile:42: test_02_adc_00.elf] Error 1 The complete error is on capture I had attached by character limit.

  • May 16, 2019
  • 3 replies
  • 1202 views

I am working on STM32CubeIDE and i try to compiling STemWin for first time.

When i Build the proyect the next error occur.

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:42: test_02_adc_00.elf] Error 1

The complete error is on capture (phat_and_symbols_04.jpeg) or below

13:25:53 **** Incremental Build of configuration Debug for project test_02_adc_00 ****
make -j4 all 
arm-none-eabi-gcc -o "test_02_adc_00.elf" @"objects.list" -l"C:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/GUI_X.c" -l"C:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/GUIConf.c" -l"C:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/ILI9328.c" -l"C:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/LCDConf.c" -l"C:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Debug/Drivers/STemWin/Config/GUI_X.c" -mcpu=cortex-m3 -T"C:\Users\leoab\STM32CubeIDE\test_02\test_02_adc_00\STM32F103C8TX_FLASH.ld" --specs=nosys.specs -Wl,-Map="test_02_adc_00.map" -Wl,--gc-sections -static -L"C:\Users\leoab\STM32CubeIDE\test_02\test_02_adc_00\Debug\Drivers\STemWin\Config" -L"C:\Users\leoab\STM32CubeIDE\test_02\test_02_adc_00\Drivers\STemWin\Config" --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/GUI_X.c
c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/GUIConf.c
c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/ILI9328.c
c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/LCDConf.c
c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Debug/Drivers/STemWin/Config/GUI_X.c
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:42: test_02_adc_00.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
 
13:25:55 Build Failed. 1 errors, 0 warnings. (took 2s.90ms)

0690X000008vzMzQAI.jpg0690X000008vzMuQAI.jpg0690X000008vzMpQAI.jpg0690X000008vzMkQAI.jpg

In the Propieties-> Path and Symbols I was try to configure but not work.

The what i do wrong?

thank in advance..!

The target system is a STM32F103C8 

My OS is Win10.

And work with ST-LINK 

This topic has been closed for replies.

3 replies

AMaha.2
Associate
April 8, 2020

Hi,

I am getting similar kind of error.

Any help with it would be appreaciated

Thank you,

TDK
April 8, 2020

Those files are not libraries, they are source files. You'll need to mark the directory as a source directory, or similar, so they are compiled along with everything else. Alternatively, move them into your source directory.

"If you feel a post has answered your question, please click ""Accept as Solution""."
AMaha.2
Associate
April 8, 2020

Attached screenshot of my error logs.

0693W000000VZnyQAG.jpg

The path has already been added. Attached the screenshot below

0693W000000VZp1QAG.jpg

Thank you for the help!!