building linuxcnc-dev on ubuntu 16.04 preempt-rt kernel

More
02 Jan 2023 14:42 #260769 by akg1904
Hi guys,
I am back

Seems like i have hit a road block yet again.

I managed to build a RIP installation of linuxCNC from the 2.9 branch.
When I run LinuxCNC in terminal I successfully get the "LinuxCNC Configuration Selector".
I have tried selecting the axis_mm configuration to start up a simulation however I get the following error.

LINUXCNC - 2.9.0~pre1
Machine configuration directory is '/home/abhishek/linuxcnc-dev/configs/sim/axis'
Machine configuration file is 'axis_mm.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
<commandline>:0: execv(/home/abhishek/linuxcnc-dev/bin/rtapi_app): Permission denied
<commandline>:0: waitpid failed /home/abhishek/linuxcnc-dev/bin/rtapi_app tpmod
<commandline>:0: /home/abhishek/linuxcnc-dev/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for tpmod failed, returned -1
<commandline>:0: execv(/home/abhishek/linuxcnc-dev/bin/rtapi_app): Permission denied
<commandline>:0: waitpid failed /home/abhishek/linuxcnc-dev/bin/rtapi_app homemod
<commandline>:0: /home/abhishek/linuxcnc-dev/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for homemod failed, returned -1
Found file(lib): /home/abhishek/linuxcnc-dev/lib/hallib/core_sim.hal
/home/abhishek/linuxcnc-dev/lib/hallib/core_sim.hal:5: execv(/home/abhishek/linuxcnc-dev/bin/rtapi_app): Permission denied
/home/abhishek/linuxcnc-dev/lib/hallib/core_sim.hal:5: waitpid failed /home/abhishek/linuxcnc-dev/bin/rtapi_app trivkins
/home/abhishek/linuxcnc-dev/lib/hallib/core_sim.hal:5: /home/abhishek/linuxcnc-dev/bin/rtapi_app exited without becoming ready
/home/abhishek/linuxcnc-dev/lib/hallib/core_sim.hal:5: insmod for trivkins failed, returned -1
Shutting down and cleaning up LinuxCNC...
/home/abhishek/linuxcnc-dev/scripts/realtime: line 194: /home/abhishek/linuxcnc-dev/bin/rtapi_app: Permission denied
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/abhishek/linuxcnc_debug.txt
and
    /home/abhishek/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

This is the log from 'linuxcnc_debug.txt':

42855
Stopping realtime threads
Unloading hal components


and this from 'linuxcnc_print.txt':

RUN_IN_PLACE=yes
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/abhishek/linuxcnc-dev/bin
LINUXCNC_TCL_DIR=/home/abhishek/linuxcnc-dev/tcl
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/home/abhishek/linuxcnc-dev/rtlib
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/home/abhishek/linuxcnc-dev/src/objects
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
INIFILE=/home/abhishek/linuxcnc-dev/configs/sim/axis/axis_mm.ini
VERSION=1.1
PARAMETER_FILE=sim_mm.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Anyone faced anything like this before? Am I doing something wrong?

 

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

More
02 Jan 2023 23:09 #260811 by rodw
I'm seeing permission denied there which is the roadblock.
At a guess, you have used sudo make not just make so only root has access.

I would delete the linuxcnc-dev folder and start again. You may need sudo. 
something like: sudo rm -r linuxcnc-dev 
My syntax may be wrong.
The following user(s) said Thank You: akg1904

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

Time to create page: 0.311 seconds
Powered by Kunena Forum