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

[Bug] avr-gcc/arm-none-eabi-gcc 10 issues #9268

Closed
zvecr opened this issue Jun 2, 2020 · 0 comments
Closed

[Bug] avr-gcc/arm-none-eabi-gcc 10 issues #9268

zvecr opened this issue Jun 2, 2020 · 0 comments
Assignees
Labels

Comments

@zvecr
Copy link
Member

zvecr commented Jun 2, 2020

Describe the Bug

Due to the vast number of issues that seem to be fallout from the recent release, this issue aims to track some of the known issues while they are being worked on. Any potential workarounds or mitigation actions will be added when that detail is available.

multiple definition of `x'; - #9269, #9267

Fixed
Linking: .build/ai03_orbit_default.elf                                                              [ERRORS]
 | 
 | /usr/bin/avr-ld: .build/obj_ai03_orbit_default/keyboards/ai03/orbit/orbit.o:/home/zvecr/qmk_firmware/keyboards/ai03/orbit/orbit.h:59: multiple definition of `current_layer'; .build/obj_ai03_orbit_default/transport.o:/home/zvecr/qmk_firmware/keyboards/ai03/orbit/orbit.h:59: first defined here
 | /usr/bin/avr-ld: .build/obj_ai03_orbit_default/keyboards/ai03/orbit/keymaps/default/keymap.o:/home/zvecr/qmk_firmware/keyboards/ai03/orbit/orbit.h:59: multiple definition of `current_layer'; .build/obj_ai03_orbit_default/transport.o:/home/zvecr/qmk_firmware/keyboards/ai03/orbit/orbit.h:59: first defined here
 | collect2: error: ld returned 1 exit status
 |

LTO - #15115

Fixed
Making lets_split/sockets with keymap default                                                          [WARNINGS]
 | 
 | lto-wrapper: warning: Options to Xassembler do not match: -adhlns=.build/obj_lets_split_sockets_default/keyboards/lets_split/lets_split.lst, -adhlns=.build/obj_lets_split_sockets_default/keyboards/lets_split/sockets/sockets.lst, dropping all -Xassembler and -Wa options.
 |

Teensy eeprom - #12587

Fixed
Making handwired/onekey/teensy_lc with keymap default                                                  [ERRORS]
tmk_core/common/chibios/eeprom_teensy.c: In function 'eeprom_initialize':
tmk_core/common/chibios/eeprom_teensy.c:366:71: error: array subscript 0 is outside array bounds of 'uint32_t[1]' {aka 'long unsigned int[1]'} [-Werror=array-bounds]
  366 |     flashend = (uint32_t)((uint16_t *)SYMVAL(__eeprom_workarea_end__) - 1);
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
tmk_core/common/chibios/eeprom_teensy.c:351:17: note: while referencing '__eeprom_workarea_end__'
  351 | extern uint32_t __eeprom_workarea_end__;
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
 | 
 | 
 | 

TWI lib - #9273

Fixed
Making meira/promicro with keymap default                                                              [ERRORS]
 | 
 | /usr/bin/avr-ld: .build/obj_meira_promicro_default/keyboards/meira/meira.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:45: multiple definition of `TWIInfo'; .build/obj_meira_promicro_default/TWIlib.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:45: first defined here
 | /usr/bin/avr-ld: .build/obj_meira_promicro_default/keyboards/meira/meira.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:28: multiple definition of `RXBuffLen'; .build/obj_meira_promicro_default/TWIlib.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:28: first defined here
 | /usr/bin/avr-ld: .build/obj_meira_promicro_default/keyboards/meira/meira.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:27: multiple definition of `TXBuffLen'; .build/obj_meira_promicro_default/TWIlib.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:27: first defined here
 | /usr/bin/avr-ld: .build/obj_meira_promicro_default/keyboards/meira/meira.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:25: multiple definition of `RXBuffIndex'; .build/obj_meira_promicro_default/TWIlib.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:25: first defined here
 | /usr/bin/avr-ld: .build/obj_meira_promicro_default/keyboards/meira/meira.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:24: multiple definition of `TXBuffIndex'; .build/obj_meira_promicro_default/TWIlib.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:24: first defined here
 | /usr/bin/avr-ld: .build/obj_meira_promicro_default/keyboards/meira/meira.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:22: multiple definition of `TWIReceiveBuffer'; .build/obj_meira_promicro_default/TWIlib.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:22: first defined here
 | /usr/bin/avr-ld: .build/obj_meira_promicro_default/keyboards/meira/meira.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:20: multiple definition of `TWITransmitBuffer'; .build/obj_meira_promicro_default/TWIlib.o:/home/zvecr/qmk_firmware/keyboards/meira/TWIlib.h:20: first defined here
 | collect2: error: ld returned 1 exit status

Drop alt/ctrl

i2c - #9485

Fixed
Making massdrop/ctrl with keymap default                                                               [ERRORS]
 | 
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/config_led.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: multiple definition of `dmac_desc_wb'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/config_led.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: multiple definition of `dmac_desc'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/keyboards/massdrop/ctrl/keymaps/default/keymap.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: multiple definition of `dmac_desc_wb'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/keyboards/massdrop/ctrl/keymaps/default/keymap.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: multiple definition of `dmac_desc'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/common/arm_atsam/suspend.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: multiple definition of `dmac_desc_wb'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/common/arm_atsam/suspend.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: multiple definition of `dmac_desc'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/common/magic.o:/home/zvecr/qmk_firmware/quantum/keycode_config.h:44: multiple definition of `keymap_config'; .build/obj_massdrop_ctrl_default/keyboards/massdrop/ctrl/keymaps/default/keymap.o:(.bss+0x4): first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/adc.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: multiple definition of `dmac_desc_wb'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/adc.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: multiple definition of `dmac_desc'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/clks.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: multiple definition of `dmac_desc_wb'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/clks.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: multiple definition of `dmac_desc'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/i2c_master.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: multiple definition of `dmac_desc_wb'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/i2c_master.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: multiple definition of `dmac_desc'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/led_matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: multiple definition of `dmac_desc_wb'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/led_matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: multiple definition of `dmac_desc'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/main_arm_atsam.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: multiple definition of `dmac_desc_wb'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/main_arm_atsam.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: multiple definition of `dmac_desc'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/spi.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: multiple definition of `dmac_desc_wb'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/spi.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: multiple definition of `dmac_desc'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/usb/usb2422.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: multiple definition of `dmac_desc_wb'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:28: first defined here
 | /usr/lib/gcc/arm-none-eabi/10.1.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/protocol/arm_atsam/usb/usb2422.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: multiple definition of `dmac_desc'; .build/obj_massdrop_ctrl_default/matrix.o:/home/zvecr/qmk_firmware/tmk_core/protocol/arm_atsam/i2c_master.h:27: first defined here
 | collect2: error: ld returned 1 exit status
 | 

keymap_config - #12058

Fixed
Linking: .build/massdrop_ctrl_default.elf                                                           [ERRORS]
 | 
 | /usr/lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: .build/obj_massdrop_ctrl_default/common/magic.o:/home/zvecr/qmk_firmware/tmk_core/common/magic.c:15: multiple definition of `keymap_config'; .build/obj_massdrop_ctrl_default/keyboards/massdrop/ctrl/keymaps/default/keymap.o:/home/zvecr/qmk_firmware/keyboards/massdrop/ctrl/keymaps/default/keymap.c:13: first defined here
 | collect2: error: ld returned 1 exit status
@zvecr zvecr added the bug label Jun 2, 2020
@zvecr zvecr self-assigned this Jun 2, 2020
@qmk qmk locked as off-topic and limited conversation to collaborators Jun 2, 2020
@zvecr zvecr closed this as completed Aug 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant