Back
[03:03:42] <CIA-2> EMC: 03jepler 07master * r7f7cd53f2119 10/src/libnml/os_intf/ (_sem.c _sem.h sem.cc sem.hh): fix key_t vs char* confusion
[03:03:46] <CIA-2> EMC: 03jepler 07master * r60ba0961cb85 10/src/hal/classicladder/spy_vars_gtk.c: classicladder: quiet a compiler warning
[03:03:46] <CIA-2> EMC: 03jepler 07master * r69007e6a81e7 10/src/emc/usr_intf/keystick.cc: keystick: quiet a warning
[03:03:51] <CIA-2> EMC: 03jepler 07master * r7a804c982258 10/src/emc/sai/driver.cc: sai: check return values
[03:03:55] <CIA-2> EMC: 03jepler 07master * r6486e155c664 10/src/rtapi/sim_rtapi_app.cc: sim: improve error handling
[03:03:57] <CIA-2> EMC: 03jepler 07master * r1154029496e8 10/src/emc/nml_intf/emcargs.cc: libnml: fix compiler warning
[03:03:58] <CIA-2> EMC: 03jepler 07master * r76b1e19f6594 10/src/hal/utils/scope_horiz.c: halscope: check return value of system()
[03:06:41] <jepler> 'night all
[03:19:41] <NTU> night :)
[03:26:26] <qq-> make get >
http://paste.debian.net/95969/ , any ideas ? but rtai_shm.h is in /usr/include , and mlocate find it too
[03:27:16] <NTU> make sure ./configure is set correctly?
[03:27:31] <qq-> mlocate rtai_shm.h >/usr/include/rtai/rtai_shm.h and /usr/include/rtai/asm-i386/rtai_shm.h
[03:27:48] <qq-> ./configure exit correct
[03:29:20] <qq-> get same error on 2.4.3 / 2.4.4 / 2.4.5
[03:29:44] <NTU> hmm i never got that
[03:29:49] <NTU> let me lurk more into it..
[03:29:50] <qq-> kernel is rtai too
[03:29:58] <NTU> userspace compiled?
[03:30:31] <qq-> means what ?
[03:30:42] <NTU> also the default for rtai userspace is in /usr/realtime/include
[03:30:52] <NTU> so in emc try specifiying rtai include dir manually
[03:31:12] <NTU> rtai userspace is the modules and such
[03:31:16] <NTU> not kernel
[03:32:48] <qq-> default in ubuntu ? i'm on debian ..
[03:32:59] <NTU> no default in upstream
[03:33:15] <NTU> ./configure installes userland to /usr/realtime
[03:33:36] <qq-> so not here ..
[03:33:41] <NTU> what do you mean?
[03:33:50] <qq-> no /usr/realtime here
[03:34:04] <NTU> you didnt compile from source.. -_-
[03:34:22] <NTU> now you have to set fancy flags.. 1 sec
[03:34:44] <qq-> what compile from source ?
[03:35:17] <qq-> emc2 ?
[03:35:23] <NTU> no rtai
[03:35:26] <NTU> userspace..
[03:35:59] <qq-> it come from debian ..
[03:36:09] <NTU> ok you need to set CPPFLAGS then
[03:36:29] <NTU> to -I /usr/include i think
[03:37:40] <qq-> on rtai ?
[03:37:44] <NTU> EMC
[03:38:09] <qq-> tied ... not accepted
[03:38:40] <NTU> ./configure CPPFLAGS='-I /usr/include' didnt work?
[03:38:43] <qq-> in make you say ?
[03:38:58] <qq-> recheck ..
[03:40:12] <qq-> nothing changed
[03:40:46] <NTU> can you pastebin config.log ?
[03:40:54] <SWPadnos> qq-, do you have librtai-dev installe
[03:40:56] <SWPadnos> d?
[03:41:07] <SWPadnos> or anything else that starts with rtai and ends with dev
[03:41:38] <SWPadnos> if you only have a debian RTAI package, you may not have the header files and whatever else is needed to actually compile and link against RTAI
[03:41:55] <NTU> SWPadnos: he said mlocate found it though..
[03:42:02] <qq-> http://paste.debian.net/95972/
[03:42:23] <SWPadnos> I didn't see that
[03:42:48] <qq-> SWPadnos, yes librtai-dev 3.8.1-2
[03:43:01] <SWPadnos> ok. good luck then, I'm off to bed :)
[03:43:10] <NTU> haha good night
[03:43:20] <qq-> gn
[03:44:09] <NTU> does /usr/realtime exist?
[03:44:16] <qq-> no
[03:44:28] <NTU> im on arch so its all different here and uses the defaults from upstream
[03:45:14] <qq-> i have /usr/testsuite/ and /usr/calibration/
[03:46:55] <NTU> try CPPFLAGS='-I /usr/include/rtai' ./configure --with-module-dir=/lib/modules/2.6.32-5-686-squeeze-rtai/ --with-realtime=where-rtai-userspace-is
[03:50:58] <NTU> oh if you have /usr/calibration/ and /usr/testsuite.. do you see kern and user folders?
[03:51:03] <NTU> in the testsuite folder?
[03:51:15] <qq-> sure
[03:51:42] <NTU> ok then --with-realtime=/usr
[03:51:51] <qq-> --with-realtime= /usr/testsuite
[03:51:54] <NTU> no
[03:51:59] <qq-> ok
[03:52:28] <NTU> sorry its just a bit tricky since my RTAI / EMC filesystem structure is totally different
[03:52:51] <qq-> me sorry
[03:53:10] <NTU> its totally fine
[03:55:00] <qq-> no changes
[03:55:34] <NTU> nothing? ... wow
[03:55:58] <qq-> nothing at all , exactly same error
[03:55:59] <NTU> i figured something had to happen.. well. i dont have ANY experience with debian w/ RTAI, let alone EMC + debian so..
[03:57:08] <qq-> NTU, i'll reboot in debian kernel , and see
[03:57:18] <NTU> that wont do anything
[03:57:26] <qq-> oh
[03:57:29] <NTU> this is userland related.. not kernel
[03:57:39] <NTU> uname -r says RTAI yes?
[03:57:47] <qq-> sure
[03:58:39] <NTU> ok add --includedir=/usr/include to your ./configure line all the way at the end
[03:58:55] <NTU> then re post config.log if it doesnt work
[03:59:09] <qq-> ok
[04:01:05] <qq-> same , log >
http://paste.debian.net/95976/
[04:02:36] <NTU> :( i dont know
[04:03:13] <qq-> thanks , need sleeps here , later
[04:05:27] <NTU> good night.
[04:05:55] <qq-> thanks , same to you
[14:28:54] <SteveStallings> SteveStallings is now known as steves_logging
[17:46:25] <CIA-2> EMC: 03jepler 07master * r58540e9c85ac 10/src/Makefile: don't hide string constness problems
[17:46:25] <CIA-2> EMC: 03jepler 07master * rf790fb1eceb9 10/src/libnml/ (20 files in 4 dirs): libnml: constify
[17:46:26] <CIA-2> EMC: 03jepler 07master * r16a3350f8af4 10/src/emc/usr_intf/emcsh.cc: emcsh: fix string constness problems
[17:46:27] <CIA-2> EMC: 03jepler 07master * r6d99c82cf604 10/src/libnml/inifile/inifile.hh: libemcini: fix constness warnings
[17:46:47] <CIA-2> EMC: 03jepler 07master * r6c92452c8c43 10/src/emc/motion/ (usrmotintf.cc usrmotintf.h): usrmot: constify usrmotInit
[17:46:48] <CIA-2> EMC: 03jepler 07master * r5453c980c7cd 10/src/emc/usr_intf/halui.cc: halui: fix constness warnings
[17:46:48] <CIA-2> EMC: 03jepler 07master * r60718095c4f2 10/src/emc/usr_intf/axis/extensions/emcmodule.cc: emcmodule: add casts to quiet constness warnings
[17:46:52] <CIA-2> EMC: 03jepler 07master * r28989f38dcea 10/src/emc/ (10 files in 4 dirs): interp: add const to silence warnings
[17:46:53] <CIA-2> EMC: 03jepler 07master * r28f30994473f 10/src/emc/usr_intf/xemc.cc: xemc: fix constness warnings
[17:47:07] <CIA-2> EMC: 03jepler 07master * r4b37e1ea1458 10/src/hal/halmodule.cc: halmodule: add const and casts to silence warnings
[17:47:07] <CIA-2> EMC: 03jepler 07master * reccb83c2df54 10/src/hal/classicladder/files_project.c: classicladder: check result of fgets
[17:47:07] <CIA-2> EMC: 03jepler 07master * re6addae3b13b 10/src/emc/rs274ngc/gcodemodule.cc: gcodemodule: fix const string warnings
[17:56:01] <qq-> any idea off 'my issue' ?
http://paste.debian.net/95969/
[18:04:45] <cradek> rtapi/rtai_ulapi.c:66:48: error: rtai_shm.h: No such file or directory
[18:05:17] <cradek> either you don't have this file, or it's not in your include search path
[18:20:12] <qq-> rtai_shm.h is in /usr/include/rtai/rtai_shm.h and in /usr/include/rtai/asm-i386/rtai_shm.h , so question is what is the 'search path' , system is debian
[18:24:50] <qq-> seen nothing about it in /usr/share/rtai/config-rtai-3.8.1
http://paste.debian.net/96125/
[18:28:40] <cradek> qq-: sounds like you'll have to check the makefile and/or configure
[18:30:02] <qq-> cradek, will try , tanks
[18:30:32] <qq-> thanks, even
[18:39:21] <qq-> cradek, do you think that i run make in '/srv/emc2-2.4.3/src/' directory may be an issue ?
[18:41:06] <cradek> qq-: we have a really great live cd install...
[18:41:19] <cradek> it gives you a correct kernel and rtai configuration for building emc
[18:42:03] <qq-> cradek, tested .. needs to do the same on debian
[18:57:22] <psha> qq-: why not to build packages somewhere else and then just install them?
[18:59:50] <qq-> psha, its exact what i'm trying to do
[18:59:58] <mozmck_work> qq-: I ran into a number of problems with rtai not getting stuff where I wanted it a while back.
[19:00:54] <qq-> mozmck, so rtai is not 'standard' ?
[19:01:03] <mozmck_work> There's a debian directory with the stuff for building rtai packages for emc somewhere. I have the one I used at home that I can send you later.
[19:01:37] <qq-> mozmck, cool , that may help
[19:01:37] <mozmck_work> It should work for debian as well with a few changes in the files.
[19:01:54] <psha> there is script to generate debian/ files
[19:02:04] <mozmck_work> I'm not sure.
[19:02:55] <psha> debian/configure
[19:03:18] <mozmck_work> in rtai? I didn't remember it had that.
[19:03:24] <psha> in emc
[19:03:59] <psha> rtai may be built with standart tools too
[19:04:08] <mozmck_work> oh, yes. But the rtai install may not have things set up correctly.
[19:04:46] <psha> yes, i've not run emc on debian rtai kernel (
[19:04:50] <psha> only latency test
[19:05:43] <psha> i've built kernel simply with kpkg
[19:05:49] <psha> with .config taken from ubuntu one
[19:06:34] <mozmck_work> I see. I built the 10.04 kernel. kpkg is not used in ubuntu any more so I had to learn the ubuntu method.
[19:07:00] <psha> qq-: what kernel are you useing? self-made or ubuntu?
[19:07:02] <qq-> thing is I compile emc on debian last month , but w/o rtai kernel ...
[19:07:11] <mozmck_work> It's not too bad, but does take a bit to figure out.
[19:07:12] <qq-> compiled*
[19:07:42] <qq-> psha, self-made as you made
[19:08:25] <psha> maybe debian kernel package will be usefull too...
[19:08:46] <qq-> --simulate worked on debian kernel
[19:08:59] <psha> simulate works everywhere since it's totaly userspace
[19:09:40] <qq-> psha, ubuntu rtai kernel don't install on debian
[19:09:50] <psha> it only needs one additional package
[19:10:06] <psha> wireless-crda
[19:10:17] <qq-> yeah
[19:10:27] <psha> wich is one udev rule and one bin blob
[19:10:43] <psha> it's no harm in taking it from 10.04
[19:11:49] <qq-> well , here is kernel issue or missing correct rtai /emc directory ?
[19:12:10] <psha> here - where?
[19:12:25] <qq-> in the compile issue
[19:12:49] <psha> i've joined too late :) i've only seen your question about /srv dir :)
[19:13:40] <psha> logger_dev: bookmark
[19:13:40] <psha> Just this once .. here's the log:
http://www.linuxcnc.org/irc/irc.freenode.net:6667/emcdevel/2010-10-13.txt
[19:14:38] <qq-> 19:56<qq-> any idea off 'my issue' ?
http://paste.debian.net/95969/ rtai_shm.h is in /usr/include/rtai/rtai_shm.h and in /usr/include/rtai/asm-i386/rtai_shm.h , so question is what is the 'search path' , system is debian
[19:16:00] <qq-> nice thing is emc/debian/configure say 'MODULE_PATH=usr/realtime-$1/modules/emc2' , but who make that folder ?
[19:16:25] <psha> it's from realtime-modules package in ubuntu
[19:16:28] <qq-> i means /usr/realtime-blablah
[19:16:51] <psha> debian fhs states that it must be /lib/modules/$(uname -r)/....
[19:17:09] <qq-> it is missing on debian, yeah
[19:17:25] <psha> where are your rtai_*.ko modules installed?
[19:17:36] <qq-> /lib/modules/$(uname -r)/rtai
[19:17:55] <psha> so your module path have to be same to be consistent with everything around
[19:19:12] <qq-> psha, yes , now the question is why emc need to use 'unstandard' module path ... ?
[19:19:59] <psha> it don't 'need'
[19:20:43] <psha> why this part and not fhs-compliant? i don't know :)
[19:20:50] <psha> s/part/path/
[19:20:50] <qq-> hehe, so , back to 'normal' is shorter
[19:21:32] <psha> there are some places where direct module paths are used but as i recall if /lib/modules is used that you don't need to give full paths
[19:21:44] <psha> just call modprobe and it's do what you need
[19:25:46] <qq-> back to original question " where emc search rtai_shm.h ? "
[19:27:16] <qq-> don't tell me they are searched in ubuntu ... ;)
[19:27:28] <cradek> look in the makefile!
[19:27:39] <CIA-2> EMC: 03cradek 07master * r57d84a2a7f09 10/src/emc/usr_intf/axis/scripts/axis.py: remove debug output
[19:28:43] <cradek> ./rtapi/rtai_rtapi.c:#include <rtai_shm.h>
[19:28:57] <cradek> figure out the cflags for building this file - check the include path - if it is wrong for your system, fix it
[19:29:19] <cradek> it may come originally from configure
[19:29:30] <psha> cradek: what is ULAPI?
[19:30:18] <cradek> * Description: rtai_ulapi.c
[19:30:18] <cradek> * This file, 'rtai_ulapi.c', implements the nonrealtime
[19:30:18] <cradek> * portion of the API for the RTAI platform.
[19:30:26] <psha> thanks
[19:30:48] <cradek> stands for userland I bet
[19:31:01] <psha> i'd suspected it :)
[19:31:25] <psha> qq-: also if you remove @ sign before $(CC) in Makefile you'll whole command executed
[19:31:38] <psha> src/Makefile
[19:31:46] <psha> lines 181 and 186
[19:32:32] <psha> @ suppresses output of command
[19:33:48] <psha> cradek: maybe it'll be useful to add verbose/silent flags like in kernel makefile?
[19:35:25] <cradek> psha: I wish make had a commandline flag for ignore @
[19:36:39] <psha> kernel has if statement to define Q var to @ or not
[19:36:49] <psha> and then use just $(Q) instead of @
[19:36:52] <cradek> yeah
[19:37:01] <cradek> only slightly icky
[19:37:09] <psha> but useful :)
[19:37:25] <psha> maybe i'll try to add this to some commands?
[19:37:32] <cradek> ok
[19:38:03] <qq-> psha, remove @ , change nothing
[19:38:10] <cradek> jepler: it still runs - other than that I have no idea how to check your changes
[19:38:33] <cradek> jepler: much of that stuff I'm sure I don't use
[19:39:31] <psha> it must show your commands
[19:44:11] <andypugh> Does anyone know of an elegant way to pause a HAL component (Hostmot2 driver) for 10mS? This is how long the 8i20 takes to wake up.
[19:44:51] <cradek> there's no such thing - but you can count how many times you've been run (how many thread invocations) and do nothing for that many of them.
[19:45:19] <qq-> ./rtapi/rtai_rtapi.c:#include </usr/include/rtai/rtai_shm.h> get
http://paste.debian.net/96152/
[19:45:46] <andypugh> This is in the config code, so not actually attached to a thread.
[19:46:44] <cradek> oh, hmmmm
[19:46:59] <cradek> so it's at loadrt time?
[19:47:20] <andypugh> Aye
[19:47:36] <andypugh> 10mS in a realtime thread would be madness.
[19:48:04] <cradek> can you just poll it for some kind of readiness?
[19:48:11] <andypugh> Apparently not :-(
[19:48:37] <cradek> doubt you can call usleep in the kernel :-)
[19:49:01] <andypugh> Well, I could wait for the connected devices to report back, but then if there is no connected device, that will be a long wait.
[19:50:58] <andypugh> I hate the idea of running trhough a loop a billion times as a time-out..
[19:50:59] <jepler> if it's in setup code, you can call kernel APIs that will help you pass the time. If it's in realtime code, you can't.
[19:54:38] <jepler> so maybe in this case msleep() is what you want.
http://www.linux-australia.lkams.kernel.org/linux-mandocs/2.6.12.6/msleep.html
[19:55:42] <andypugh> Well, it compiles...
[20:00:42] <psha> cradek:
http://psha.org.ru/git?p=psha/emc2.git;a=commitdiff;h=8785ec16f0a831792313afe8a8caacb5af9c0ca2
[20:03:37] <psha> qq-: you have no -I/usr/include/rtai in compile line
[20:09:56] <qq-> psha, tried too , same things , looking in ubuntu they have all rtai things in /usr/realtime , include/ , testsuite/ , calibration/ etc ..
[20:10:41] <qq-> as it stated in emc/debian/configure
[20:11:11] <psha> wait, i mean pass -I/usr/include/rtai to compiler
[20:11:22] <psha> so it'll find everything it needs
[20:12:10] <qq-> psha, put that where exactly ?
[20:12:34] <qq-> in ./configure don't help
[20:13:29] <psha> INCLUDES=/usr/include/rtai make
[20:13:38] <psha> i think this'll help
[20:13:49] <qq-> let's see
[20:14:48] <qq-> rtapi/rtai_ulapi.c:66:48: error: rtai_shm.h: No such file or directory
[20:15:43] <psha> digging :)
[20:17:17] <qq-> so next question is emc who have to create /usr/realtime ?
[20:17:51] <psha> maybe you'll install in /lib/modules/$(uname -r)/emc?
[20:18:01] <psha> if your rtai stuff is already there?
[20:18:54] <qq-> there are only modules , not headers
[20:19:37] <psha> yes, but emc installs only modules to /realtime as i recall
[20:21:07] <qq-> so it search for headers in /realtime too, ding ..
[20:24:47] <psha> qq-: try make INCLUDES='/usr/include/rtai .'
[20:25:06] <psha> searching is not a problem when solved :)
[20:26:43] <qq-> http://paste.debian.net/96158/ new things but ..
[20:27:42] <psha> you forgot dot
[20:27:48] <psha> '/usr/include/rtai .'
[20:28:00] <psha> quotes are needed too
[20:30:45] <qq-> http://paste.debian.net/96160/
[20:31:32] <psha> rtapi_errno
[20:31:38] <psha> last lines
[20:31:40] <psha> where it is?
[20:32:30] <qq-> /srv/emc2-2.4.5/src/rtapi/rtapi_errno.h
[20:42:22] <psha> add rtapi to the list of INCLUDES
[20:46:25] <psha> qq-: there is something bad with INCLUDES...
[20:47:13] <psha> i've gave you very bad advice...)
[20:47:26] <psha> it totaly kills all needed includes :0
[20:57:42] <cradek> psha: is "make V=1" supposed to give me verbose?
[20:57:57] <psha> yes
[20:58:03] <psha> or export BUILD_VERBOSE
[20:58:04] <cradek> hmm, doesn't seem to
[20:58:15] <psha> i've only added Q to compile parts
[20:58:21] <psha> not to depends
[20:58:28] <cradek> oh ok
[20:58:31] <psha> they are noisy and useless
[21:02:35] <CIA-2> EMC: 03cradek 07master * r47c65fa88a90 10/src/Makefile: makefile: Add flag to enable verbose output
[21:03:18] <psha> i've also fixed two '@echo' statements
[21:03:34] <psha> replaced them with $(ECHO) to respect 's' flag
[21:05:15] <qq-> psha, make INCLUDES='/usr/include/rtai .' INCLUDES='/srv/emc2-2.4.5/src/rtapi/ . /srv/emc2-2.4.5/src/objects/ . /srv/emc2-2.4.5/src/hal/ . /srv/emc2-2.4.5/src/hal/components/ . /srv/emc2-2.4.5/src/libnml/inifile/ . ' helps , but make stop now at >
http://paste.debian.net/96173/
[21:06:12] <psha> qq-: it's a way of the samurai :)
[21:06:35] <qq-> i'm a samurai ..
[21:08:00] <psha> I bet there is more simple way...
[21:11:21] <qq-> me too ..
[21:12:15] <qq-> it seems INCLUDES don't get it recursively in /srv/emc2-2.4.5/src/
[21:13:13] <qq-> permissions issue , maybe
[21:14:04] <psha> INCLUDES is set from Submakefile's
[21:20:47] <psha> qq-: add '/usr/include/rtai' to INCLUDES variable in Makefile :)
[21:20:56] <psha> so it won't be overriden
[21:21:13] <psha> line 97
[21:21:47] <psha> or in Makefile.in
[21:22:11] <psha> oh, there is no makefile.in
[21:22:53] <qq-> maybe add /srv/emc2-2.4.5/src/ too ?
[21:25:48] <psha> it's '.'
[21:25:51] <psha> not needed
[21:26:21] <qq-> yes
[21:27:21] <qq-> but maybe we source BASEPWD ...
[21:27:43] <qq-> it seems to be ignored by compiler
[21:31:09] <psha> cradek: he is building on debian with rtai headers installed in /usr/include/rtai
[21:31:28] <psha> cradek: sorry for spam :)))
[21:33:21] <psha> qq-: what's current state?
[21:33:49] <qq-> thinking ..
[21:34:50] <qq-> why BASEPWD aka /srv/emc2-2.4.5/src/ isn't use for searching headers ..
[21:35:02] <qq-> used*
[21:35:23] <psha> how you've changed Makefile?
[21:35:24] <psha> show diff
[21:35:48] <qq-> added INCLUDES ='/usr/include/rtai'
[21:36:55] <psha> and you killed '.' )
[21:37:01] <qq-> sure
[21:37:03] <psha> correct line would be
[21:37:17] <psha> INCLUDES := . /usr/include/rtai
[21:37:34] <qq-> ok ...
[21:39:35] <qq-> now compile ..
[21:43:14] <qq-> it liked the new INCLUDES ..
[21:44:32] <qq-> You now need to run 'sudo make setuid' in order to run in place. < !!!
[21:45:35] <psha> nothing strange
[21:45:56] <psha> but may be avoidable though
[21:50:32] <cradek> can't install kernel modules without some kind of setuidness
[21:52:28] <psha> right, missed that it need to load modules on start
[22:02:13] <qq-> psha, cradek , thanks very much
[23:58:39] <CIA-2> EMC: 03jepler 07master * r00b30e7aad71 10/src/modsilent: build: no need to support very old python versions
[23:58:39] <CIA-2> EMC: 03jepler 07master * r18196887c0f7 10/ (4 files in 2 dirs): build: install Module.symvers
[23:58:40] <CIA-2> EMC: 03jepler 07master * r3c43065d8283 10/src/Makefile.modinc.in: build: use Module.symvers when building external components
[23:58:48] <CIA-2> EMC: 03jepler 07master * rd67495de94df 10/debian/configure: packaging: we know about this kernel
[23:58:50] <CIA-2> EMC: 03jepler 07master * rebcc345c2eb1 10/src/Makefile: build: make kbuild aware of rtai symbols
[23:58:51] <CIA-2> EMC: 03jepler 07master * rf1f0abca5669 10/src/modsilent: build: no need for modsilent to suppress undefined symbol warnings