-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Ubuntu 18.04 mis-compiles Klipper arm binaries #443
Comments
Returned to a stable version of Arduino Due does not respond =( |
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! |
That’s normal... Exchange the fan and extruder heater output. In this Case next Time just tue fan goes on instead of the heater. |
Nothing normal. Normally everything is compiled under Ubuntu 16.04. |
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 |
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'. |
Just going through the issues and noticed this. What expansion shield did you use? |
I modified ramps 1.4. There is a heating problem in the absence of power supply at the Arduino DUE. |
So, should this be closed then? (I haven't had a chance to test Ubuntu 18.04 myself.) -Kevin |
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. |
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. |
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 |
This is very bad. I installed almost in all computers lubuntu 18.04 =) |
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 |
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 |
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
The text was updated successfully, but these errors were encountered: