uv-k5-firmware-custom: compile failed with FMRADIO enabled

compile failed with FMRADIO enabled ··· GIT_HASH = b0794ec arm-none-eabi-gcc -Os -Wall -Werror -mcpu=cortex-m0 -fno-builtin -fshort-enums -fno-delete-null-pointer-checks -std=c11 -MMD -DPRINTF_INCLUDE_CONFIG_H -DGIT_HASH="b0794ec" -DENABLE_FMRADIO -DENABLE_OVERLAY -DENABLE_UART -DENABLE_SMALL_BOLD -DENABLE_VOICE -DENABLE_ALARM -DKEEP_MEM_NAME -DENABLE_WIDE_RX -DENABLE_CTCSS_TAIL_PHASE_SHIFT -DENABLE_MAIN_KEY_HOLD -DENABLE_BOOT_BEEPS -DENABLE_COMPANDER -DENABLE_SHOW_CHARGE_LEVEL -DENABLE_REVERSE_BAT_SYMBOL -DENABLE_NO_SCAN_TIMEOUT -DENABLE_AM_FIX -DENABLE_AM_FIX_SHOW_DATA -DENABLE_AUDIO_BAR -DENABLE_COPY_CHAN_TO_VFO -I /home/uv-k5-firmware-custom -I /home/uv-k5-firmware-custom/external/CMSIS_5/CMSIS/Core/Include/ -I /home/uv-k5-firmware-custom/external/CMSIS_5/Device/ARM/ARMCM0/Include -c version.c -o version.o arm-none-eabi-gcc -mcpu=cortex-m0 -nostartfiles -Wl,-T,firmware.ld start.o init.o sram-overlay.o external/printf/printf.o driver/adc.o driver/aes.o driver/backlight.o driver/bk1080.o driver/bk4819.o driver/crc.o driver/eeprom.o driver/flash.o driver/gpio.o driver/i2c.o driver/keyboard.o driver/spi.o driver/st7565.o driver/system.o driver/systick.o driver/uart.o app/action.o app/app.o app/dtmf.o app/fm.o app/generic.o app/main.o app/menu.o app/scanner.o app/uart.o am_fix.o audio.o bitmaps.o board.o dcs.o font.o frequencies.o functions.o helper/battery.o helper/boot.o misc.o radio.o scheduler.o settings.o ui/battery.o ui/fmradio.o ui/helper.o ui/inputbox.o ui/lock.o ui/main.o ui/menu.o ui/rssi.o ui/scanner.o ui/status.o ui/ui.o ui/welcome.o version.o main.o -o firmware /usr/lib/gcc/arm-none-eabi/10.3.1/…/…/…/arm-none-eabi/bin/ld: app/fm.o: in function FM_Tune': fm.c:(.text+0x190): undefined reference to gScheduleFM’ /usr/lib/gcc/arm-none-eabi/10.3.1/…/…/…/arm-none-eabi/bin/ld: app/fm.o: in function FM_Key_UP_DOWN': fm.c:(.text+0x284): undefined reference to gRequestSaveFM’ /usr/lib/gcc/arm-none-eabi/10.3.1/…/…/…/arm-none-eabi/bin/ld: app/fm.o: in function FM_PlayAndUpdate': fm.c:(.text+0x2b0): undefined reference to SETTINGS_SaveFM’ /usr/lib/gcc/arm-none-eabi/10.3.1/…/…/…/arm-none-eabi/bin/ld: fm.c:(.text+0x2d8): undefined reference to gScheduleFM' /usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: app/fm.o: in function FM_ProcessKeys’: fm.c:(.text+0x5f6): undefined reference to ACTION_FM' /usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: fm.c:(.text+0x67c): undefined reference to gAnotherVoiceID’ /usr/lib/gcc/arm-none-eabi/10.3.1/…/…/…/arm-none-eabi/bin/ld: fm.c:(.text+0x684): undefined reference to `gRequestSaveFM’ collect2: error: ld returned 1 exit status make: *** [Makefile:272: firmware] Error 1 ···

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Call make clean Most probably you have old object files that didn’t get rebuilt.