building linuxcnc-dev on ubuntu 16.04 preempt-rt kernel

More
8 years 6 months ago #109315 by rodw
Grotius, When you type uname -a do you see PREEMPT-RT?

Thats where I think the problem is. Somehow you've got the build environment making a .deb for RTAI not PREEMPT-RT so its looking for a dependency that does not exist for your kernel.
More
8 years 6 months ago - 8 years 6 months ago #109316 by Grotius
Hi Rodw,

Yes i always see the rt kernel.
Yes you are right. It had to do with a configuration that was not compatible. With the use of uspace everything is compatible.

I solved the problem just second's ago, from this document : linuxcnc.org/docs/devel/html/code/building-linuxcnc.html

> git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-dev
> cd linuxcnc-dev/debian
> ./configure uspace
> cd ..
> dpkg-buildpackage -b -uc

No complaining about rt kernels....

It has to do with this tekst : uspace

Uspace : Configure the Debian package for Preempt-RT realtime or for non-realtime (these two are compatible).

My feeling is that i can try to make every possible combination now with everything working.
At least, that is what i think at the moment. :lol:
Last edit: 8 years 6 months ago by Grotius.
More
8 years 6 months ago #109318 by rodw
Glad I could help!
More
5 years 3 months ago #216227 by jin_Technoaccord
Replied by jin_Technoaccord on topic building linuxcnc-dev on ubuntu 16.04 preempt-rt kernel
Im running kernel version 4.15.0 on my desktop, but I cant find a patch of my version from the list. Can I use 4.16 or 4.14 instead?
Following is the link to the preempt set up page.
wiki.linuxfoundation.org/realtime/docume...ions/preemptrt_setup
More
5 years 3 months ago #216573 by andypugh

Im running kernel version 4.15.0 on my desktop, but I cant find a patch of my version from the list. Can I use 4.16 or 4.14 instead?
Following is the link to the preempt set up page.
wiki.linuxfoundation.org/realtime/docume...ions/preemptrt_setup
Just don't. If you want preempt-rt then just get the latest kernel in the package manager with the same major version number. Any 4.N.N kernel will work. 

Just do step 4 here:  linuxcnc.org/docs/2.8/html/getting-start...th_preempt_rt_kernel
 
The following user(s) said Thank You: rodw
More
3 years 10 months ago - 3 years 10 months ago #260230 by akg1904
Hi,
I was following the guide but I am facing errors when I try to build LinuxCNC.
The step at which I see an error is when I give the 'make -j4' command.

Below is the error I am getting.

Reading 0/207 dependency files
Done reading dependencies
/bin/sh: 1: Syntax error: "(" unexpected (expecting "then")
Reading 0/250 realtime dependency files
Done reading realtime dependencies
Compiling libnml/inifile/inifile.cc
Compiling libnml/inifile/inivar.cc
Compiling libnml/posemath/_posemath.c
Compiling libnml/posemath/posemath.cc
/bin/sh: 1: Syntax error: "(" unexpected
make: *** [Makefile:286: objects/libnml/inifile/inifile.o] Error 2
make: *** Waiting for unfinished jobs....
/bin/sh: 1: Syntax error: "(" unexpected
make: *** [Makefile:285: objects/libnml/inifile/inivar.o] Error 2
/bin/sh: 1: Syntax error: "(" unexpected
make: *** [Makefile:278: objects/libnml/posemath/_posemath.o] Error 2
/bin/sh: 1: Syntax error: "(" unexpected
make: *** [Makefile:286: objects/libnml/posemath/posemath.o] Error 2

Even at the 'make clear' step I get an error

Reading 0/207 dependency files
Done reading dependencies
/bin/sh: 1: Syntax error: "(" unexpected (expecting "then")
Reading 0/250 realtime dependency files
Done reading realtime dependencies
make: *** No rule to make target 'clear'.  Stop.

Anyone know what the problem might be?
Last edit: 3 years 10 months ago by akg1904.
Time to create page: 0.261 seconds
Powered by Kunena Forum