Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Build broken on Fedora 34 #330

Open
dwillmore opened this issue Mar 1, 2022 · 4 comments
Open

Build broken on Fedora 34 #330

dwillmore opened this issue Mar 1, 2022 · 4 comments

Comments

@dwillmore
Copy link

This is likely user error, but I'm completely new to Teacup and I'm probably holding it wrong.

I'm following the Simple Installation instructions.

I cloned the repo and fired up the config tool. I selected the CNCv3 shield as the board and a Mendel as the printer--I just have a UNO with a CNC shield that I want to work with and there is no printer involved. After saving config.h, I went to build and I get the error:

/usr/lib/gcc/avr/10.2.0/../../../../avr/bin/ld: /home/willmore/src_new/Teacup_Firmware/build/mendel.o (symbol from plugin): in function init':
(.text+0x0): multiple definition of err_codes'; /home/willmore/src_new/Teacup_Firmware/build/intercom.o (symbol from plugin):(.text+0x0): first defined here lto-wrapper: warning: Options to Xassembler do not match: -adhlns=/home/willmore/src_new/Teacup_Firmware/build/display_ssd1306.al, -adhlns=/home/willmore/src_new/Teacup_Firmware/build/delay.al, dropping all -Xassembler and -Wa options. collect2: error: ld returned 1 exit status RC = 1 - Build terminated Link terminated abnormally.

I can't find any references to err_codes in the source, so I'm not sure where it's picking that up. Any advice would be welcome.

@phord
Copy link
Collaborator

phord commented Mar 8, 2022

Hm. err_codes is defined in the intercom.h file, and also in the extruder/intercom.h file. I wonder if your model is including both of them somewhere.

Can you try renaming one of them and see if it helps? The actual type doesn't seem to be used explicitly anywhere, so the name of the enum is unimportant.

@dwillmore
Copy link
Author

dwillmore commented Mar 9, 2022 via email

@phord
Copy link
Collaborator

phord commented Mar 9, 2022

That's common in C. The enumerated values are often the only part that matters. In this case, it's ERROR_BAD_CRC.

@dwillmore
Copy link
Author

dwillmore commented Oct 11, 2022 via email

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

No branches or pull requests

2 participants