- Posts: 5
- Thank you received: 0
compile error on Kubuntu 16.04
First, I would like to sincerely thank all LinuxCNC contributors for this awesome software.
I installed Kubuntu 16.04 a couple of days ago, and gave a try at building LinuxCNC 2.7.4 on a self-compiled RT-PREEMPT Kernel (4.1.20-rt23).
Unfortunately, I ran into errors :
Thanks,
Chris
Please Log in to join the conversation.
- jepler
- New Member
-
- Thank you received: 0
that source file includes <math.h> and uses unqualified isnan. adding an inclusion of <cmath> and using std::isnan instead may resolve the problem.
If you get it working, please submit a patch.
Please Log in to join the conversation.
i'll try to fix it tomorrow, and inform you about the result.
Thanks a lot !
Please Log in to join the conversation.
Your fix made the building process successful. Thanks a lot.
When running Axis, I got an error :
So, the attached patch (I'm not a developer, so I hope it is good ) makes LinuxCNC 2.7.4 compile on Kubuntu 16.04.
Chris
Attachment not found
Please Log in to join the conversation.
- jepler
- New Member
-
- Thank you received: 0
Please Log in to join the conversation.
Patch attached.
Attachment not found
Please Log in to join the conversation.
Thanks for the patch.
I don't know why I didn't get this problem when compiling LinuxCNC myself ?
BTW, does your Preempt kernel work good for you ?
I have compiled several preempt kernels this past year, and always get some desktop freezes ( 10 to 15 seconds duration ) happening a couple of times in an hour.
All my machining work well, but that's pretty annoying.
I am not at all a computer expert, so I am wondering if I do something wrong with my kernel config.
Would you post your kernel config, please, so that I can give a try at it ?
Thanks,
Chris
Please Log in to join the conversation.
- cncnoob1979
- Offline
- Platinum Member
-
- Posts: 403
- Thank you received: 0
What graphics are you using? Intel HD?
If so I was experiencing this with a Kepler Arch CPU. It is a known bug with the accelerated graphics accelerator. UXA vs SNA.
wiki.archlinux.org/index.php/Intel_graphics#SNA_issues
I experienced this with Linux Mint LMDE2 and Jessie. I decided to go with Linux Mint 17.3 Mate instead and not use the Intel Drivers Changing from SNA to UXA did not help with my issue however.
Please Log in to join the conversation.
No, i'm using the radeonsi driver ( radeon HD 7750 ).
But, indeed, i suspect these freezes to be related to graphic driver since they seem to happen especially (but not only) when I hover an app in the taskbar and the thumbnail appears ...
Chris
Please Log in to join the conversation.
tomate wrote: Hi,
Thanks for the patch.
I don't know why I didn't get this problem when compiling LinuxCNC myself ?
BTW, does your Preempt kernel work good for you ?
I have compiled several preempt kernels this past year, and always get some desktop freezes ( 10 to 15 seconds duration ) happening a couple of times in an hour.
All my machining work well, but that's pretty annoying.
I am not at all a computer expert, so I am wondering if I do something wrong with my kernel config.
Would you post your kernel config, please, so that I can give a try at it ?
Thanks,
Chris
There's a couple of reasons the errors may have arisen. It could the version of the c library that I'm using or it could be that cmath was included before math.h. Either way, the correct implementation explicitly defines the namespace.
As for how well preempt_rt is working, I've gotten jitter down to around 40 and 60 microseconds for servo and base thread respectively using isolcpu. This is on a pretty beefy server I had lying around. I've been messing around with the bios settings and can't seem to improve on that.
I've ordered a low power industrial computer that might work okay. I'm going to try that. In either case, I don't plan to do any soft-stepping. If I did, I'd probably try RTAI.
I might do that just for giggles anyway.
Please Log in to join the conversation.
