-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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] Build errors on STM32F103RC_btt when SEGMENT_LEVELED_MOVES disabled #19431
Comments
Issue is not board dependent only has issues with AUTO_BED_LEVELING_BILINEAR other leveling methods works fine. |
Removing the & operator in front of Changed from:
To:
|
This issue has had no activity in the last 30 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 7 days. |
I can confirm the above fix by @shitcreek bypasses the build errors on 2.0.7.1. Do we know exactly what the impact is of removing the pointer? |
Well, it's a reference not a pointer, but looking at the typedef it looks like it's just a simple float. If we were just running on run-of-the-mill CPUs I'd say passing it by value probably shouldn't be much of an issue. However, I'm not familiar enough with all the microcontrollers Marlin supports to be able to say whether passing a float by value (possibly many times) is going to result in memory or stack issues on some of the more constrained hardware. The implications are: Without the ampersand it will need to allocate whatever sizeof(float) is on the underlying platform for each call. It certainly shouldn't be an issue on any of the beefier boards. |
It's preferred to pass I have been considering adding a new type, if needed, to pass |
This appears to be resolved. After updating the original configs enough to build against bugfix the only warnings came from external libraries. Closing. |
* Don't define IS_ULTIPANEL empty * Fix HAL/STM32 FastIO for analog pins (MarlinFirmware#19735) * Fix SAMD Serial name macro (MarlinFirmware#19765) * Marlin 2.0.7.2 * Update "Bug Report" template (MarlinFirmware#19906) * Fix bilinear_line_to_destination definition See MarlinFirmware#19431 * Fix extraneous Linear Advance DIR change (MarlinFirmware#20131) * Fix bad SET_FAST_PWM_FREQ calls (MarlinFirmware#20227) * Set "lcd_move_e" index to fix the label (MarlinFirmware#20263) * Help hosts when password-locked (MarlinFirmware#20348) * Fix TMC_HOME_PHASE divide by zero (MarlinFirmware#20368) * Fix TEMP_0_TR_ENABLE Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> Co-authored-by: Serhiy-K <52166448+Serhiy-K@users.noreply.github.com> Co-authored-by: Jason Smith <jason.inet@gmail.com> Co-authored-by: Scott Lahteine <github@thinkyhead.com> Co-authored-by: phcay <58492957+phcay@users.noreply.github.com> Co-authored-by: Simone Primarosa <simonepri@outlook.com> Co-authored-by: ellensp <ellensp@hotmail.com> Co-authored-by: Luu Lac <45380455+shitcreek@users.noreply.github.com>
* Don't define IS_ULTIPANEL empty * Fix HAL/STM32 FastIO for analog pins (MarlinFirmware#19735) * Fix SAMD Serial name macro (MarlinFirmware#19765) * Marlin 2.0.7.2 * Update "Bug Report" template (MarlinFirmware#19906) * Fix bilinear_line_to_destination definition See MarlinFirmware#19431 * Fix extraneous Linear Advance DIR change (MarlinFirmware#20131) * Fix bad SET_FAST_PWM_FREQ calls (MarlinFirmware#20227) * Set "lcd_move_e" index to fix the label (MarlinFirmware#20263) * Help hosts when password-locked (MarlinFirmware#20348) * Fix TMC_HOME_PHASE divide by zero (MarlinFirmware#20368) * Fix TEMP_0_TR_ENABLE Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> Co-authored-by: Serhiy-K <52166448+Serhiy-K@users.noreply.github.com> Co-authored-by: Jason Smith <jason.inet@gmail.com> Co-authored-by: Scott Lahteine <github@thinkyhead.com> Co-authored-by: phcay <58492957+phcay@users.noreply.github.com> Co-authored-by: Simone Primarosa <simonepri@outlook.com> Co-authored-by: ellensp <ellensp@hotmail.com> Co-authored-by: Luu Lac <45380455+shitcreek@users.noreply.github.com>
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug Description
A slew of overloading and narrowing errors are produced while compiling
abl.cpp
whenSEGMENT_LEVELED_MOVES
is disabled inConfiguration.h
. Build output is included in the ZIP file with my config files. Target board isSTM32F103RC_btt_512K_USB
, though similar errors are produced when building for both the non-USB and non-512K variety as well.My Configurations
Configs_and_Build_Logs.zip
Steps to Reproduce
SEGMENT_LEVELED_MOVES
andLEVELED_SEGMENT_LENGTH
inConfiguration.h
STM32F103RC_btt_512K_USB
Expected behavior: Build succeeds and produces a valid firmware binary.
Actual behavior: Several screens worth of C++ errors pertaining to overloading and narrowing are output and the build fails.
Additional Information
Branch used: bugfix-2.0.x as of 2020-09-18, commit 648269e
With the two defines uncommented the build succeeds, albeit with a few odd warnings. These have been included at the end of the build output file in the ZIP.
The text was updated successfully, but these errors were encountered: