Complete HOW-TO Linux Mint 18.1 32/64 RTAI or PREEMPT with RIP install or deb

More
11 Apr 2017 11:16 - 11 Apr 2017 13:37 #91174 by cncnoob1979
Probamo,

You need to go into options in the terminal. Then select unlimited buffer. Attach the entire session as a text file so I can see the entire build process and your commands.

Run a make clean in the source code directory prior to attempting another build. Anytime you have a failed build wether a program or kernel; you must run a make clean to remove the previous configuration.

Please attach as a text file. Don't just paste here in the forum because it will be quite long. Go through the entire process again.

Check build dependencies prior then;
Run these in the source directory.
make clean
git pull
git checkout 2.7


make[2]: Entering directory '/usr/src/linux-headers-3.4-9-rtai-686-pae'
CC [M] /home/dejan/linuxcnc-dev/src/emc/kinematics/5axiskins.o
/usr/src/linux-headers-3.4-9-common-rtai/scripts/Makefile.build:307: recipe for target '/home/dejan/linuxcnc-dev/src/emc/kinematics/5axiskins.o' failed



EDIT: Did you install the 3.4.9 kernel headers?
Last edit: 11 Apr 2017 13:37 by cncnoob1979.

Please Log in or Create an account to join the conversation.

More
11 Apr 2017 15:49 #91188 by probamo
Hereafter are two files. One related building kernel, the other one git linuxcnc according to Post 3. The same termination occurred :(

File Attachment:

File Name: Git-Linuxc...11-2.txt
File Size:138 KB

File Attachment:

File Name: Text1-kern...11-2.txt
File Size:10 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
11 Apr 2017 16:16 - 11 Apr 2017 16:18 #91189 by cncnoob1979
probamo,

Do this please: Only run these commands one time - do not repeat them.

1)Delete linuxcnc-dev folder and everything inside of it

2)Reboot the machine

3)Open a new terminal and issue these commands from your home folder:
git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev

4)
sudo apt-get update
cd linuxcnc-dev
cd debian 
./configure -r
cd .. 
dpkg-checkbuilddeps

5)Do nothing else and post the txt file like you did before.

6) Post the image file of your sources listed in synaptic package manager. You have multiple entries listed in there; should only have one "deb linuxcnc.org/ precise base 2.7-rtai"
Last edit: 11 Apr 2017 16:18 by cncnoob1979.

Please Log in or Create an account to join the conversation.

More
11 Apr 2017 17:11 #91192 by probamo
@cncnoob

here are the files according to last recommendation. I deleted linuxcnc-dev, rebooted system, use recommended commands in Terminal.

File Attachment:

File Name: Recomm_1.txt
File Size:2 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
11 Apr 2017 17:25 - 11 Apr 2017 17:33 #91195 by cncnoob1979
Thanks!

Please open a new terminal and post the output as before. Do not do anything else. We have to trouble shoot what's going on here :)

Now remove the additional repository you have there. *delete it* (Kernel listing)

Execute these one at a time please.
sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-key 3cb9fd148f374fef
sudo add-apt-repository "deb http://linuxcnc.org/ precise base 2.7-rtai"
sudo apt-get update
sudo apt-get install linux-headers-3.4-9-rtai-686-pae 
sudo apt-get install rtai-modules-3.4-9-rtai-686-pae
sudo apt-get dist-upgrade

Then inside the linuxcnc-dev/src directory execute:
git checkout 2.7
debuild -uc -us
Last edit: 11 Apr 2017 17:33 by cncnoob1979.

Please Log in or Create an account to join the conversation.

More
11 Apr 2017 17:38 #91197 by probamo
Made the first set of commands. Enclosed is outcome. Now I am running the second set of commands and coma back as soon as process is finished.


File Attachment:

File Name: Part-1.txt
File Size:2 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
11 Apr 2017 17:41 #91199 by cncnoob1979
This is on your currently running pc right? Not a Virtual machine?

Please Log in or Create an account to join the conversation.

More
11 Apr 2017 17:43 #91200 by probamo
No on Virtual machine. I am on PC LMint 18.1 MATE, recently upgraded from 17.3. Does make any change if I would be in Cinnamon? With RTAI kernel in place, Cinnamon was not able to be loaded fully, but reporting an error. With Mate in place, no error was reported with mention kernel!

Please Log in or Create an account to join the conversation.

More
11 Apr 2017 17:46 #91202 by probamo
Terminated again :(

File Attachment:

File Name: Part-2.txt
File Size:130 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
11 Apr 2017 17:47 #91203 by cncnoob1979
I have not tested this on Cinnamon but should work for you. I had trouble on a VM. I would suggest that we do not build a deb in that case. If: this build fails, lets see if we can do a RIP on it.

I do not believe it will be successful on a VM. But if you want to try it again Install a clean version of 18.1 x32. Then try the process again.

Please Log in or Create an account to join the conversation.

Time to create page: 0.270 seconds
Powered by Kunena Forum