(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 04 Dec 2020, 01:48
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Real Time Kernel 4.19.25-rt16 for 32 and 64 bit is Available
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 2 of 4 [46 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Sun 24 Nov 2019, 17:56    Post subject:  

Hello Revolverve,

I think I will give compiling LinuxCNC a try. What system are you using? I am going to start with Bionic and go from there!

Last edited by rockedge on Sun 24 Nov 2019, 23:59; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Sun 24 Nov 2019, 23:35    Post subject:  

I found how to get by the error and include the command.

Now I get this far and I've run into a Segmentation Fault

Code:
root-# ./configure
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking boost/lockfree/queue.hpp usability... yes
checking boost/lockfree/queue.hpp presence... yes
checking for boost/lockfree/queue.hpp... yes
checking whether g++ supports C++11 features by default... yes
checking build toplevel... /root/Build/linuxcnc
checking installation prefix... run in place
checking for grep... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking for pkg-config... /usr/bin/pkg-config
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking rpc/rpc.h usability... yes
checking rpc/rpc.h presence... yes
checking for rpc/rpc.h... yes
checking for rtai-config... none
checking for xeno-config... none
checking for realtime API(s) to use... uspace
checking whether to enable userspace PCI access... yes
checking for libudev... yes - version 220
checking for cc version... not specified
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for usability of linux/hidraw.h... yes
checking for usability of rpc/rpc.h... yes
checking for libmodbus3... yes - version 3.0.6
checking for libusb-1.0... yes
checking for module installation directory... configuring for run-in-place
/root/Build/linuxcnc/rtlib
checking for glib... yes - 2.56.3
checking for GTK 2.4.0 or above... yes - 2.24.32
checking for libgnomeprintui-2.2... no -- printing from classicladder will not be possible
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for install... /usr/bin/install
checking for sed... /bin/sed
checking for ps... /bin/ps
checking for kill... /bin/kill
checking for whoami... /usr/bin/whoami
checking for awk... /usr/bin/awk
checking for insmod... /sbin/insmod
checking for rmmod... /sbin/rmmod
checking for lsmod... /bin/lsmod
checking for pidof... /bin/pidof
checking for ipcs... /usr/bin/ipcs
checking for fuser... /bin/fuser
checking for yapps... /usr/bin/yapps
checking for mandb... /usr/bin/mandb
checking for intltool-extract... /usr/bin/intltool-extract
checking for yapps... (cached) /usr/bin/yapps
checking for python... /usr/bin/python
checking whether to build documentation... no
checking sys/io.h usability... yes
checking sys/io.h presence... yes
checking for sys/io.h... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for semtimedop... yes
checking for sincos function... yes
checking for __sincos... no
checking for optreset... no
checking for library containing dlopen... -ldl
checking for library containing clock_nanosleep... none required
checking for tcl... /usr/lib/tclConfig.sh found
Segmentation fault
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Sun 24 Nov 2019, 23:52    Post subject:  

I think it is this error or related to this :
Quote:
The segfault is generated from a call to rtai_malloc


I found this -> https://sourceforge.net/p/emc/mailman/message/21413962/

So it seems there is a call to a rtai patched kernel during the build and I am doing this on a Bionic64-v8 with a
kernel 4.19.25-rt16 SMP PREEMPT RT x86_64 GNU/Linux running.

this can be configured with option
Code:
./configure --with-realtime=uspace


so the calls to the rtai patch are not done.
Back to top
View user's profile Send private message Visit poster's website 
Revolverve


Joined: 08 Nov 2008
Posts: 266
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

PostPosted: Mon 25 Nov 2019, 11:07    Post subject:  

Hey rockedge
You got to the same stage i did,with the same distro.
Code:
./configure --with-realtime=uspace
is what i used.
Its tclConfing.sh that contain the `dpkg-architecture -qDEB_HOST_MULTIARCH` call. Here it did not segfault,it simply loop the error message.
So,my latest search:reading where about why i get the dpkg-architectre command not found error come from as dpkg-dev is in devx bionicpup sfs!!
I did got further once in configure,adding:
--with-tclConfig=/usr/lib/tcl8.6/tlcConfig.sh
editing tclConfing with dpkg-architecture [option...sadly i did not take note of which one..] that correct the tcl error and got a bwidget not found (which was installed)..
Thats in brief where i got to for now.
One good thing ,linuxcnc build instruction do state;Patches to improve portability to new platforms are always welcome....
Thanks for giving in some time!!

_________________
Help mira.ca

Last edited by Revolverve on Mon 25 Nov 2019, 11:42; edited 1 time in total
Back to top
View user's profile Send private message 
Revolverve


Joined: 08 Nov 2008
Posts: 266
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

PostPosted: Mon 25 Nov 2019, 11:30    Post subject:  

Are these options ;
--prefix=/usr CFLAGS="-mtune=generic -O2 -fomit-frame-pointer" CXXFLAGS=$CFLAGS
still could be applied ,or useful in ¨modern puppy¨?
Tried those too in my learning process..it did not ease the pain...nor changed results.

_________________
Help mira.ca
Back to top
View user's profile Send private message 
Revolverve


Joined: 08 Nov 2008
Posts: 266
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

PostPosted: Tue 26 Nov 2019, 16:10    Post subject:  

Tried at compiling git latest machinekit ,linuxcnc pre 2.8 or 2.9 too..it hang on the same looping /usr/lib//tcl8.6/tclConfig.sh: line 2: dpkg-architecture: command not found... start to think linux is secretly sponsored by coffee corps conglomerate.....Smile
_________________
Help mira.ca
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Tue 26 Nov 2019, 17:04    Post subject:  

I just ran across this as well but I found a fix! But I need to go home and look at my notes to share it with you!

I am still stuck just further down the road....
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Thu 28 Nov 2019, 11:03    Post subject:  

Hello Revolverve!

a slightly newer version of a full real time kernel, 4.19.82-rt30 SMP PREEMPT RT

http://www.murga-linux.com/puppy/viewtopic.php?p=1042981#1042981

**
Back to top
View user's profile Send private message Visit poster's website 
Revolverve


Joined: 08 Nov 2008
Posts: 266
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

PostPosted: Thu 28 Nov 2019, 14:20    Post subject:  

Hi rockedge,
it boot, its fast,faster?
got for one machine to compile input-wacom 0.42...peebee latest kernel does to ,i think ,build his now with latest 0.44 which wont enable finger touch on this tablet..
Works now...
Did not read about one success at running linuxcnc uspace on bionic yet...
just hope where not trying to pie in the sky here..
it for sure will be tricky..

And the main features changed are?

Nice work! I've been told its easy to compile kernel with woof-ce kit,i did tried...,so ,plus a rt patch,bravo!

_________________
Help mira.ca
Back to top
View user's profile Send private message 
Revolverve


Joined: 08 Nov 2008
Posts: 266
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

PostPosted: Fri 29 Nov 2019, 02:55    Post subject:  

Hey rockedge,
Step one...it configured finally...
It seems that ./configure completed successfully. #
# This means that RT is properly installed #
No wonder you cant find online the solution i applied to get there!!!
of course make bump in tcl.h... a dozen symlink and it compiled OK
I get the exact same error as with the pet i made from binairies..
but learn some more about compiling ...and wrote notes..

root# linuxcnc
LINUXCNC - 2.7.14
Machine configuration directory is '/mnt/sda6/cnc/linuxcnc-2.7.14.tar.gz.extracted/linuxcnc-2.7.14/configs/sim/axis'
Machine configuration file is 'axis.ini'
Starting LinuxCNC...
Found file(lib): /mnt/sda6/cnc/linuxcnc-2.7.14.tar.gz.extracted/linuxcnc-2.7.14/lib/hallib/core_sim.hal
Refusing to run as root without fallback UID specified
---see zip,but not much more in log ,only pidof error ,yes linuxcncsvr got to be kill...

back to the middle ..of the sea of priviledges..
your rt preempt run fine here!
Whats net.ifnames=0 for?
bionic-linuxc2714test-rt-uspace.tar.gz
Description 
gz

 Download 
Filename  bionic-linuxc2714test-rt-uspace.tar.gz 
Filesize  859 Bytes 
Downloaded  207 Time(s) 

_________________
Help mira.ca
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Fri 29 Nov 2019, 09:03    Post subject:  

Hello Revolverve,

That is good news! I am going to follow your lead and get LinuxCNC as far as you have.

Quote:
Whats net.ifnames=0 for?


what this line does is to make sure that the network devices are named starting with "eth0" and "wlan0". It is optional but when I work with WeeDog (Void Linux) or Bionicpups, the network device names have a different naming system, my scripts that auto-connect the computer to a network are insured to work using the same device name all the time.

Starting with Bionicpup the network card name uses a different naming convention. In Puppy Bionic it is optional but since I copy and paste to the menu.lst and use the same Grub4Dos code over and over again, I just keep the line in the boot menu code.

I am looking forward to a working LinuxCNC on a Bionic64...perhaps making a remaster of a working system for a PuppyCNC64!
Back to top
View user's profile Send private message Visit poster's website 
Revolverve


Joined: 08 Nov 2008
Posts: 266
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

PostPosted: Sat 30 Nov 2019, 11:39    Post subject:  

Hi rockedge,
Quote:
I am looking forward to a working LinuxCNC on a Bionic64...

me too...
Still studying linuxcnc run-in-place dev-environment which is new to me,it may lead me solving some more problems.
There is a lot more learning steps on my side before a puppy of its own will born!! woof-ce being the last one ...but its a long way to there for now.

I am curious, what does in the 10mb stuffing you include in your new rt-preempt make it more linuxcnc friendly ?
edit;oops ,mistmatch rt kernels..your latest is smaller...
Should have ask;did you change latest kernel config?
just asking, they both look stable here.

_________________
Help mira.ca
Back to top
View user's profile Send private message 
Revolverve


Joined: 08 Nov 2008
Posts: 266
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

PostPosted: Mon 02 Dec 2019, 01:46    Post subject:  

Hi rockedge,
Do you mind if ,being dependent of your rtpreempt efforts, i keep the linuxcnc subjet into this topic for a while?

Linuxcnc.pet from binaries +bionicpup64+rtpreempt might get sooner then i expected to a plausible solution simply called ;spot...right before i was tempt "chown'& mess it all...
got a linuxcnc sim to run fine as spot..time to hook it up on cnc-realtime,tomorrow maybe..
Thank for compiling rt kernels.

_________________
Help mira.ca
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Mon 02 Dec 2019, 11:02    Post subject:  

Hello Revolverve,

Yes definitely keep the focus on LinuxCNC! I am very excited about the progress you are making. I still have not had a successful ./configure completion as of yet...but I am keeping at it, using the notes you are providing.

The RT patches were more involved but the configuration changes are basically the same.

I am looking forward to your report on using "spot". We should remember that since I use the spot user or webuser:webgroup (www-data sometimes) to run packages that require anybody but the root user. All my web servers and mysql servers run under other users than root.
Back to top
View user's profile Send private message Visit poster's website 
Revolverve


Joined: 08 Nov 2008
Posts: 266
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

PostPosted: Tue 03 Dec 2019, 15:06    Post subject:  

Hi rockedge,
Reading about spot i found old spot script topic where jamesbond http://murga-linux.com/puppy/viewtopic.php?t=86526 which point a few facts,one state;
Quote:
; If you run a program under spot, then "all-aspects-of-it" will be running under spot. A program that needs to run under multiple-privilege levels (sometimes as root, sometimes as spot) cant' be run as "spot", it must always be run as root first, and it is up to the program to downgrade its access level to a non-root user. There are other ways of achieving this, but until aufs supports extended attribute this alternative method isn't gonig to work on Puppies (or Fatdog, for that matter)

As its the case with linuxcnc, i think,its more tweaks than i am able to fix..now..or in a near future.. well,using a bionicpup64 based one.
You can read a lot on working mint linuxcnc uspace success ,debdog-rtai work great as its a shrink adapted "clone" of the "native" linuxcnc wheezy rtai iso and not at all an all purposes iso ..

Its one thing to be able to get the linuxcnc simulator as spot to run but another when machine hooked to cnc using parport like i do.

An all purpose +linuxcnc-cnc-non-simulation working rtpreempt puppy is one big project,for the "surface scratching end-user" i am..but i will tweak some more, as i dont care breaking everything Wink but i try to keep a slightly more safe mater on priviledges side..

About the "solution" i applied to pass tcl tk ./configure problem come from a redhat tcl8.6-dev rpm,oops,just realize its also in deb package(/usr/lib/x86_64-linux-gnu/tcl8.6/tclConfig.sh)...proof the non-coder i am can try every find..work for compiling run-in-place.
-replace both /usr/lib/tcl8.6/tclConfig.sh and relevant tkConfig.sh (with dpkg-architecture ) for those in /usr/lib/x86_64-linux-gnu/tcl8.6/tclConfig.sh
it should pass tcl/tk configure glitch
-for make, edit for each errors their relevants:
e.g.; hal/utils/halsh.c:20:10: fatal error: tcl.h: No such file or directory
#include <tcl.h>
to
#include <tcl/tcl.h>
I end up creating symlinks, to those not found make complains;objects/hal/utils/halsh.o+ emc/usr_intf/emcsh.cc+/emc/usr_intf/emcsh+ more which i flushed the notes about...my bad,and cannot recreate the errors ,i would have to reload my clean"dev-savefile" to do that,
if you have problems with make i could do that,probably sooner or later i will mess it up and do it anyhow Wink

It still would be interesting to have the point of view of experience spot scripts devs/users/creators about feasibility of a working linuxcnc rtpreempt thing !

Lets test some more..
Glad to see your interest about spot, linuxcnc and rt.

_________________
Help mira.ca
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 4 [46 Posts]   Goto page: Previous 1, 2, 3, 4 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 2.5944s ][ Queries: 12 (2.0659s) ][ GZIP on ]