pichenettes / eurorack

Eurorack modules
2.62k stars 731 forks source link

Make gives `LoopFillZerobss' undefined reference to `main' #22

Closed jpnielsen closed 5 years ago

jpnielsen commented 5 years ago

Noob question, reading your code, trying to learn and build a device for myself. I got the behringer model d, and would like to hook it up to ableton and a novation remote-SL midi keyboard.

after

ln -s ../stmlib stmlib make

I get the error:

~/.../eurorack/yarns >>> stmlib/makefile.inc:503: warning: overriding recipe for target 'upload_combo_jtag_erase_first' stmlib/makefile.inc:487: warning: ignoring old recipe for target 'upload_combo_jtag_erase_first' /opt/gcc-arm/bin/arm-none-eabi-gcc -Wl,-Map=build/yarns/yarns.map -Wl,--gc-sections -T stmlib/linker_scripts/stm32f10x_flash_md_application_small.ld -mcpu=cortex-m3 -mthumb -fno-unroll-loops -I. -DGCC_ARMCM3 -DSTM32F10X_MD -DSTM32F10X -DAPPLICATION -DF_CPU=72000000L -DF_CRYSTAL=8000000L -DHSE_VALUE=8000000L -DUSE_STDPERIPH_DRIVER -DSYSCLK_FREQ_72MHz=72000000L -Istmlib/third_party/STM -Istmlib/third_party/STM/CMSIS/CM3_f10x -Istmlib/third_party/STM/CMSIS/CM3_f10x/startup/gcc -Istmlib/third_party/STM/STM32F10x_StdPeriph_Driver/inc -Lstmlib/third_party/STM -o build/yarns/yarns.elf build/yarns/random.o build/yarns/bootloader_utils.o build/yarns/system_clock.o build/yarns/core_cm3.o build/yarns/system_stm32f10x.o build/yarns/stm32f10x_dma.o build/yarns/stm32f10x_dbgmcu.o build/yarns/stm32f10x_iwdg.o build/yarns/stm32f10x_dac.o build/yarns/stm32f10x_can.o build/yarns/stm32f10x_rtc.o build/yarns/stm32f10x_pwr.o build/yarns/stm32f10x_i2c.o build/yarns/stm32f10x_sdio.o build/yarns/stm32f10x_rcc.o build/yarns/stm32f10x_flash.o build/yarns/stm32f10x_crc.o build/yarns/stm32f10x_usart.o build/yarns/stm32f10x_wwdg.o build/yarns/misc.o build/yarns/stm32f10x_tim.o build/yarns/stm32f10x_adc.o build/yarns/stm32f10x_spi.o build/yarns/stm32f10x_bkp.o build/yarns/stm32f10x_exti.o build/yarns/stm32f10x_fsmc.o build/yarns/stm32f10x_gpio.o build/yarns/startup_stm32f10x_md.o /opt/gcc-arm/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld: build/yarns/startup_stm32f10x_md.o: in function LoopFillZerobss': (.text.Reset_Handler+0x26): undefined reference tomain' collect2: error: ld returned 1 exit status make: *** [stmlib/makefile.inc:330: build/yarns/yarns.elf] Error 1

I found a reference to the same error, but i couldn't figure out what to do next.

https://stackoverflow.com/questions/18137814/loopfillzerobss-has-an-undefined-reference-to-main

I'm on arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 8-2018-q4-major) 8.2.1 20181213 (release) [gcc-8-branch revision 267074] other compiles work OK, i'm following the book with software here: https://github.com/Apress/Beg-STM32-Devel-FreeRTOS-libopencm3-GCC

jpnielsen commented 5 years ago

Success ! followed the instructions here:

https://github.com/pichenettes/mutable-dev-environment