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

Ubuntu 18.04 mis-compiles Klipper arm binaries #443

Closed
khseal opened this issue Jun 30, 2018 · 15 comments
Closed

Ubuntu 18.04 mis-compiles Klipper arm binaries #443

khseal opened this issue Jun 30, 2018 · 15 comments

Comments

@khseal
Copy link

khseal commented Jun 30, 2018

Updated to the latest version of the Klipper.
The extruder itself began to heat up.
Klipper is not connected to the microcontroller.
Add out folder and log.
klippy.log

out.zip

@khseal khseal closed this as completed Jun 30, 2018
@khseal khseal reopened this Jun 30, 2018
@khseal
Copy link
Author

khseal commented Jun 30, 2018

Returned to a stable version of Arduino Due does not respond =(

@khseal
Copy link
Author

khseal commented Jun 30, 2018

The problem is solved. Klipper is compiled without errors on Ubuntu 18.04 but does not work. Attention, the extruder is heated after flash the firmware!

@StefanMeGit
Copy link

That’s normal... Exchange the fan and extruder heater output. In this Case next Time just tue fan goes on instead of the heater.

@khseal
Copy link
Author

khseal commented Jul 1, 2018

Nothing normal. Normally everything is compiled under Ubuntu 16.04.
Problem in Ubuntu 18.04

@KevinOConnor
Copy link
Collaborator

Just so I understand, you're saying the micro-controller code compiles okay on Ubuntu 16.04, but is being mis-compiled on Ubuntu 18.04? If so, I'll take a look, but it will be some time before I can setup everything to test that. I do regularly test with newer versions of the toolchain (specifically the gcc versions that ship with Fedora) and I have not seen any problems.

-Kevin

@khseal
Copy link
Author

khseal commented Jul 1, 2018

Yes, you understood me correctly. Compile in Ubuntu 18.04 passed without errors and warnings, but the firmware does not work correctly. I attached my folder 'out'.
My version GCC 7.3.0

@khseal khseal changed the title Last version. Fire in the hole! Problem firmware for Arduino Due. Problem in Ubuntu 18.04. Fire in the hole! Problem firmware for Arduino Due. Jul 1, 2018
@PreownedFIN
Copy link

Just going through the issues and noticed this.

What expansion shield did you use?
It is a known problem with all mass manufactured RAMPS-FD shields that if the DUE doesn't have power, the heaters get turned on.
None of the sub-2.0 versions should be used anymore.
Due to the V1.0, 1.1 and 1.2 having the fatal problem, the 2.0 revision was never implemented and pretty much all RAMPS-FDs on the market have the problem.

bobc/bobc_hardware#19

@khseal
Copy link
Author

khseal commented Sep 8, 2018

I modified ramps 1.4. There is a heating problem in the absence of power supply at the Arduino DUE.

@KevinOConnor
Copy link
Collaborator

So, should this be closed then? (I haven't had a chance to test Ubuntu 18.04 myself.)

-Kevin

@khseal
Copy link
Author

khseal commented Sep 9, 2018

I will check the firmware on Ubuntu 18.04 in the near future. Initially, the problem was still because of the problem firmware. Heating the printer is a consequence of the configuration hardware and problem of firmware.

@khseal
Copy link
Author

khseal commented Sep 11, 2018

The problem with the firmware in version 18.04 is still present. I tried to flash on two laptops, as a result, after firmware, the microcontroller does not respond to requests.

@KevinOConnor
Copy link
Collaborator

I got a chance to install Ubuntu 18.04 and I can confirm that Klipper does not build arm binaries correctly on that OS. It appears the Ubuntu 18.04 gcc-arm-none-eabi and/or libnewlib-arm-none-eabi packages are linking in the wrong version of the libc functions. Instead of getting the thumb armv7-m C library we're getting a library for some other arm instruction set.

This does not appear to be a Klipper issue. It's not clear to me how to prevent Ubuntu from miscompiling Klipper. I recommend not compiling Klipper on Ubuntu 18.04.

Separately, I was able to build regular AVR binaries without issue. So, this appears limited to the arm toolset.

-Kevin

@KevinOConnor KevinOConnor changed the title Problem in Ubuntu 18.04. Fire in the hole! Problem firmware for Arduino Due. Ubuntu 18.04 mis-compiles Klipper arm binaries Oct 15, 2018
@khseal
Copy link
Author

khseal commented Oct 18, 2018

This is very bad. I installed almost in all computers lubuntu 18.04 =)

@KevinOConnor
Copy link
Collaborator

As of commit 50e9c67, Klipper will attempt to detect the broken compiler in Ubuntu 18.04 and produce an error message. It looks like there is an Ubuntu issue for it at: https://bugs.launchpad.net/ubuntu/+source/newlib/+bug/1767223

-Kevin

@KevinOConnor
Copy link
Collaborator

I'm going to close this issue as I think the recently added build time error checking addresses this (at least as best as we can).

-Kevin

@mkuf mkuf mentioned this issue Mar 27, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2021
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

4 participants