Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on MacOS #19

Open
sussyboiiii opened this issue Apr 12, 2024 · 8 comments
Open

Build on MacOS #19

sussyboiiii opened this issue Apr 12, 2024 · 8 comments

Comments

@sussyboiiii
Copy link

Build on MacOS fails.

user@MBP-von-user vesc_bms_fw % make
Linking build/vesc_bms.elf
/Applications/ArmGNUToolchain/13.2.Rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: /Applications/ArmGNUToolchain/13.2.Rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libg.a(libc_a-signalr.o): in function `_getpid_r':
signalr.c:(.text._getpid_r+0x0): warning: _getpid is not implemented and will always fail
/Applications/ArmGNUToolchain/13.2.Rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: /Applications/ArmGNUToolchain/13.2.Rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libg.a(libc_a-signalr.o): in function `_kill_r':
signalr.c:(.text._kill_r+0x12): warning: _kill is not implemented and will always fail
lto-wrapper: warning: Options to '-Xassembler' do not match: -alms=build/lst/crt1.lst, -alms=build/lst/hal.lst, dropping all '-Xassembler' and '-Wa' options.
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
/Applications/ArmGNUToolchain/13.2.Rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: /Applications/ArmGNUToolchain/13.2.Rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/thumb/v7e-m+fp/hard/libgcc.a(unwind-arm.o): in function `get_eit_entry':
unwind-arm.c:(.text.get_eit_entry+0x90): undefined reference to `__exidx_start'
/Applications/ArmGNUToolchain/13.2.Rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld: unwind-arm.c:(.text.get_eit_entry+0x94): undefined reference to `__exidx_end'
collect2: error: ld returned 1 exit status
make: *** [build/vesc_bms.elf] Error 1
@sussyboiiii
Copy link
Author

Do I need to setup some special dependencies or what may be the issue? Ty

@andyshinn
Copy link

It looks like it is maybe too large with gdb enabled. Try with the -ggdb removed from the USE_OPT of the Makefile.

@sussyboiiii
Copy link
Author

It looks like it is maybe too large with gdb enabled. Try with the -ggdb removed from the USE_OPT of the Makefile.

First of all thank you for helping,

I have tried it again and there seems to be no change with or without the flag.

I now encounter this error:

user@MBP-von-user vesc_bms_fw % make
Compiling crt0_v7m.S
Compiling vectors.S
Compiling chcoreasm_v7m.S
Compiling crt1.c
Compiling hal.c
Compiling hal_st.c
Compiling hal_buffers.c
Compiling hal_queues.c
Compiling hal_flash.c
Compiling hal_mmcsd.c
Compiling hal_adc.c
Compiling hal_can.c
Compiling hal_pal.c
Compiling hal_pwm.c
Compiling hal_rtc.c
Compiling hal_serial.c
Compiling hal_serial_usb.c
Compiling hal_usb.c
Compiling nvic.c
Compiling stm32_isr.c
Compiling hal_lld.c
Compiling hal_efl_lld.c
Compiling hal_adc_lld.c
Compiling hal_can_lld.c
Compiling stm32_dma.c
Compiling stm32_exti.c
Compiling hal_pal_lld.c
Compiling hal_usb_lld.c
Compiling hal_rtc_lld.c
Compiling hal_st_lld.c
Compiling hal_pwm_lld.c
Compiling hal_serial_lld.c
Compiling osal.c
Compiling chsys.c
Compiling chdebug.c
Compiling chtrace.c
Compiling chvt.c
Compiling chschd.c
Compiling chthreads.c
Compiling chtm.c
Compiling chregistry.c
Compiling chsem.c
Compiling chmtx.c
Compiling chcond.c
Compiling chevents.c
Compiling chmsg.c
Compiling chdynamic.c
Compiling chmboxes.c
Compiling chmemcore.c
Compiling chmemheaps.c
Compiling chmempools.c
Compiling chpipes.c
Compiling chobjcaches.c
Compiling chdelegates.c
Compiling chfactory.c
Compiling chcore.c
Compiling chcore_v7m.c
Compiling stm32l4xx_hal_flash.c
Compiling stm32l4xx_hal_flash_ex.c
Compiling hal_functions.c
Compiling stm32l4xx_hal_flash_ramfunc.c
Compiling ltc6813.c
Compiling hdc1080.c
Compiling sht30.c
Compiling shtc3.c
Compiling bme280_if.c
Compiling bme280.c
Compiling bm_if.c
Compiling swdptap.c
Compiling timing.c
Compiling platform.c
Compiling exception.c
Compiling swdptap_generic.c
Compiling target.c
Compiling adiv5_swdp.c
Compiling adiv5.c
Compiling cortexm.c
Compiling nrf51.c
blackmagic/target/nrf51.c:42:24: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   42 |         {"erase_mass", (cmd_handler)nrf51_cmd_erase_all, "Erase entire flash memory"},
      |                        ^
blackmagic/target/nrf51.c:47:18: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   47 |         {"help", (cmd_handler)nrf51_cmd_read_help, "Display help for read commands"},
      |                  ^
blackmagic/target/nrf51.c:48:18: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   48 |         {"hwid", (cmd_handler)nrf51_cmd_read_hwid, "Read hardware identification number"},
      |                  ^
blackmagic/target/nrf51.c:49:18: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   49 |         {"fwid", (cmd_handler)nrf51_cmd_read_fwid, "Read pre-loaded firmware ID"},
      |                  ^
blackmagic/target/nrf51.c:50:22: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   50 |         {"deviceid", (cmd_handler)nrf51_cmd_read_deviceid, "Read unique device ID"},
      |                      ^
blackmagic/target/nrf51.c:51:24: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   51 |         {"deviceaddr", (cmd_handler)nrf51_cmd_read_deviceaddr, "Read device address"},
      |                        ^
blackmagic/target/nrf51.c:349:24: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
  349 |         {"erase_mass", (cmd_handler)nrf51_mdm_cmd_erase_mass, "Erase entire flash memory"},
      |                        ^
Compiling minilzo.c
Compiling syscalls.c
Compiling main.c
Compiling usbcfg.c
Compiling pwr.c
Compiling utils.c
Compiling board.c
Compiling comm_can.c
Compiling crc.c
Compiling hw.c
Compiling buffer.c
Compiling comm_usb.c
Compiling commands.c
commands.c: In function 'commands_process_packet':
commands.c:106:17: warning: 'strncpy' output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation]
  106 |                 strncpy((char*)(send_buffer + ind), HW_NAME, num_name_chars);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling packet.c
Compiling bms_if.c
Compiling i2c_bb.c
Compiling confparser.c
Compiling confxml.c
Compiling mempools.c
Compiling terminal.c
Compiling flash_helper.c
Compiling conf_general.c
Compiling timeout.c
Compiling sleep.c
Compiling comm_uart.c
Compiling selftest.c
In file included from selftest.c:20:
selftest.h:27:1: error: unknown type name 'int32_t'
   27 | int32_t selftest_serialize_result(uint8_t *buffer, uint32_t buffer_size);
      | ^~~~~~~
selftest.h:24:1: note: 'int32_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
   23 | #include <stdio.h>
  +++ |+#include <stdint.h>
   24 | 
selftest.h:27:35: error: unknown type name 'uint8_t'
   27 | int32_t selftest_serialize_result(uint8_t *buffer, uint32_t buffer_size);
      |                                   ^~~~~~~
selftest.h:27:35: note: 'uint8_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
selftest.h:27:52: error: unknown type name 'uint32_t'
   27 | int32_t selftest_serialize_result(uint8_t *buffer, uint32_t buffer_size);
      |                                                    ^~~~~~~~
selftest.h:27:52: note: 'uint32_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
make: *** [build/obj/selftest.o] Error 1

@andyshinn
Copy link

Hmm, as the error suggests that one seems to be a missing #include <stdint.h> in selftest.h. Try adding that.

@sussyboiiii
Copy link
Author

Hmm, as the error suggests that one seems to be a missing #include <stdint.h> in selftest.h. Try adding that.

It appears I had done this before as now the error is the same as in my original issue.

Removing the ggdb flag did not change the error it only removed the printing (or compiling i don't know) of the stuff it compiled before the error

Linking build/vesc_bms.elf
/Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld: /Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libg.a(libc_a-signalr.o): in function `_getpid_r':
signalr.c:(.text._getpid_r+0x0): warning: _getpid is not implemented and will always fail
/Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld: /Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libg.a(libc_a-signalr.o): note: the message above does not take linker garbage collection into account
/Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld: /Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libg.a(libc_a-signalr.o): in function `_kill_r':
signalr.c:(.text._kill_r+0x12): warning: _kill is not implemented and will always fail
/Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld: /Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libg.a(libc_a-signalr.o): note: the message above does not take linker garbage collection into account
lto-wrapper: warning: Options to '-Xassembler' do not match: -alms=build/lst/crt1.lst, -alms=build/lst/hal.lst, dropping all '-Xassembler' and '-Wa' options.
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
/Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld: build/vesc_bms.elf section `.rodata' will not fit in region `flash0'
/Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld: region `flash0' overflowed by 24204 bytes
/Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld: /Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/libgcc.a(unwind-arm.o): in function `get_eit_entry':
unwind-arm.c:(.text.get_eit_entry+0x90): undefined reference to `__exidx_start'
/Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld: unwind-arm.c:(.text.get_eit_entry+0x94): undefined reference to `__exidx_end'
collect2: error: ld returned 1 exit status
make: *** [build/vesc_bms.elf] Error 1

@andyshinn
Copy link

OK, this went down a bit of a rabbit hole. See if #20 gets it working for you.

@sussyboiiii
Copy link
Author

Using your pull request actually build and completed. I've got some warnings compiling but it worked!

Thanks a lot!

user@MBP-von-user  vesc_bms_fw-ashinn-chibios-20-3-4 % make
Compiler Options
arm-none-eabi-gcc -c -mcpu=cortex-m4 -mthumb -Os -ggdb -fomit-frame-pointer -falign-functions=16 -D_GNU_SOURCE -DBOARD_OTG_NOVBUSSENS -ffunction-sections -fdata-sections -fno-common -flto -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Wall -Wextra -Wundef -Wstrict-prototypes -Wa,-alms=build/lst/ -DCORTEX_USE_FPU=TRUE -MD -MP -MF .dep/build.d -I. -IChibiOS_20.3.4/os/license -IChibiOS_20.3.4/os/common/portability/GCC -IChibiOS_20.3.4/os/common/startup/ARMCMx/compilers/GCC -IChibiOS_20.3.4/os/common/startup/ARMCMx/devices/STM32L4xx -IChibiOS_20.3.4/os/common/ext/ARM/CMSIS/Core/Include -IChibiOS_20.3.4/os/common/ext/ST/STM32L4xx -IChibiOS_20.3.4/os/hal/include -IChibiOS_20.3.4/os/hal/ports/common/ARMCMx -IChibiOS_20.3.4/os/hal/ports/STM32/STM32L4xx -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/ADCv3 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/CANv1 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/CRYPv1 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/DACv1 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/DMAv1 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/EXTIv1 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/GPIOv3 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/I2Cv2 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/OTGv1 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/QUADSPIv1 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/RNGv1 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/RTCv2 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/SDMMCv1 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/SPIv2 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/TIMv1 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/USARTv2 -IChibiOS_20.3.4/os/hal/ports/STM32/LLD/xWDGv1 -IChibiOS_20.3.4/os/hal/osal/rt-nil -IChibiOS_20.3.4/os/rt/include -IChibiOS_20.3.4/os/oslib/include -IChibiOS_20.3.4/os/common/ports/ARMCMx -IChibiOS_20.3.4/os/common/ports/ARMCMx/compilers/GCC -Ist_hal -Idrivers -Idrivers/bme280_driver -Iblackmagic -Iblackmagic/target -Icompression -Ihwconf -Iconfig -Ist_hal -Idrivers main.c -o main.o

Compiling crt0_v7m.S
Compiling vectors.S
Compiling chcoreasm_v7m.S
Compiling crt1.c
Compiling hal.c
Compiling hal_st.c
Compiling hal_buffers.c
Compiling hal_queues.c
Compiling hal_flash.c
Compiling hal_mmcsd.c
Compiling hal_adc.c
Compiling hal_can.c
Compiling hal_pal.c
Compiling hal_pwm.c
Compiling hal_rtc.c
Compiling hal_serial.c
Compiling hal_serial_usb.c
Compiling hal_usb.c
Compiling nvic.c
Compiling stm32_isr.c
Compiling hal_lld.c
Compiling hal_efl_lld.c
Compiling hal_adc_lld.c
Compiling hal_can_lld.c
Compiling stm32_dma.c
Compiling stm32_exti.c
Compiling hal_pal_lld.c
Compiling hal_usb_lld.c
Compiling hal_rtc_lld.c
Compiling hal_st_lld.c
Compiling hal_pwm_lld.c
Compiling hal_serial_lld.c
Compiling osal.c
Compiling chsys.c
Compiling chdebug.c
Compiling chtrace.c
Compiling chvt.c
Compiling chschd.c
Compiling chthreads.c
Compiling chtm.c
Compiling chregistry.c
Compiling chsem.c
Compiling chmtx.c
Compiling chcond.c
Compiling chevents.c
Compiling chmsg.c
Compiling chdynamic.c
Compiling chmboxes.c
Compiling chmemcore.c
Compiling chmemheaps.c
Compiling chmempools.c
Compiling chpipes.c
Compiling chobjcaches.c
Compiling chdelegates.c
Compiling chfactory.c
Compiling chcore.c
Compiling chcore_v7m.c
Compiling stm32l4xx_hal_flash.c
Compiling stm32l4xx_hal_flash_ex.c
Compiling hal_functions.c
Compiling stm32l4xx_hal_flash_ramfunc.c
Compiling ltc6813.c
Compiling hdc1080.c
Compiling sht30.c
Compiling shtc3.c
Compiling bme280_if.c
Compiling bme280.c
Compiling bm_if.c
Compiling swdptap.c
Compiling timing.c
Compiling platform.c
Compiling exception.c
Compiling swdptap_generic.c
Compiling target.c
Compiling adiv5_swdp.c
Compiling adiv5.c
Compiling cortexm.c
Compiling nrf51.c
blackmagic/target/nrf51.c:42:24: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   42 |         {"erase_mass", (cmd_handler)nrf51_cmd_erase_all, "Erase entire flash memory"},
      |                        ^
blackmagic/target/nrf51.c:47:18: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   47 |         {"help", (cmd_handler)nrf51_cmd_read_help, "Display help for read commands"},
      |                  ^
blackmagic/target/nrf51.c:48:18: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   48 |         {"hwid", (cmd_handler)nrf51_cmd_read_hwid, "Read hardware identification number"},
      |                  ^
blackmagic/target/nrf51.c:49:18: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   49 |         {"fwid", (cmd_handler)nrf51_cmd_read_fwid, "Read pre-loaded firmware ID"},
      |                  ^
blackmagic/target/nrf51.c:50:22: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   50 |         {"deviceid", (cmd_handler)nrf51_cmd_read_deviceid, "Read unique device ID"},
      |                      ^
blackmagic/target/nrf51.c:51:24: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
   51 |         {"deviceaddr", (cmd_handler)nrf51_cmd_read_deviceaddr, "Read device address"},
      |                        ^
blackmagic/target/nrf51.c:349:24: warning: cast between incompatible function types from '_Bool (*)(target *)' {aka '_Bool (*)(struct target_s *)'} to '_Bool (*)(target *, int,  const char **)' {aka '_Bool (*)(struct target_s *, int,  const char **)'} [-Wcast-function-type]
  349 |         {"erase_mass", (cmd_handler)nrf51_mdm_cmd_erase_mass, "Erase entire flash memory"},
      |                        ^
Compiling minilzo.c
Compiling syscalls.c
Compiling main.c
Compiling usbcfg.c
Compiling pwr.c
Compiling utils.c
Compiling board.c
Compiling comm_can.c
Compiling crc.c
Compiling hw.c
Compiling buffer.c
Compiling comm_usb.c
Compiling commands.c
commands.c: In function 'commands_process_packet':
commands.c:106:17: warning: 'strncpy' output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation]
  106 |                 strncpy((char*)(send_buffer + ind), HW_NAME, num_name_chars);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling packet.c
Compiling bms_if.c
Compiling i2c_bb.c
Compiling confparser.c
Compiling confxml.c
Compiling mempools.c
Compiling terminal.c
Compiling flash_helper.c
Compiling conf_general.c
Compiling timeout.c
Compiling sleep.c
Compiling comm_uart.c
Compiling selftest.c
Linking build/vesc_bms.elf
lto-wrapper: warning: Options to '-Xassembler' do not match: -alms=build/lst/crt1.lst, -alms=build/lst/hal.lst, dropping all '-Xassembler' and '-Wa' options.
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
Creating build/vesc_bms.hex
Creating build/vesc_bms.bin
Creating build/vesc_bms.dmp

   text	   data	    bss	    dec	    hex	filename
  77648	   4876	  93840	 176364	  2b0ec	build/vesc_bms.elf
Creating build/vesc_bms.list

Done
dennisruff@MBP-von-Dennis vesc_bms_fw-ashinn-chibios-20-3-4 % make
Linking build/vesc_bms.elf
lto-wrapper: warning: Options to '-Xassembler' do not match: -alms=build/lst/crt1.lst, -alms=build/lst/hal.lst, dropping all '-Xassembler' and '-Wa' options.
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
Creating build/vesc_bms.hex
Creating build/vesc_bms.bin
Creating build/vesc_bms.dmp

   text	   data	    bss	    dec	    hex	filename
  77648	   4876	  93840	 176364	  2b0ec	build/vesc_bms.elf
Creating build/vesc_bms.list

Done

@andyshinn
Copy link

I think it's still got some potentially broken stuff in it (for example, prio may actually need to be realprio instead, not sure). So, use with caution. But hopefully they will pull in latest versions to get these fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants