[Emc-developers] halcompile problems

2020-04-05 Thread andy pugh
On my Buster / RTAI test machine I can't get halcompile to work on _userspace_ components. it can't find stddef.h, stdarg.h or spawn,h (included in rtapi.h) It also fails on a standard Buster install with the test debs applied to install RTAI and LinuxCNC. However, trying it on a Pi4 running Ras

Re: [Emc-developers] halcompile problems

2020-04-05 Thread andy pugh
On Mon, 6 Apr 2020 at 00:56, andy pugh wrote: > 1) Does anyone else see this problem, on Buster x86 preempt-rt for example? > 2) Where does gcc get those paths from? Further oddness, trying with thermistor.comp in user_comps, first with plain gcc and minimal options: gcc -I/home/andypugh/linuxc

Re: [Emc-developers] halcompile problems

2020-04-05 Thread Reinhard
On Montag, 6. April 2020, 02:20:34 CEST andy pugh wrote: > Further oddness, trying with thermistor.comp in user_comps, first with > plain gcc and minimal options: > > gcc -I/home/andypugh/linuxcnc-dev/include/ -DULAPI -H thermistor.c > > Seems OK (up to the point that it can't find HAL). It find

Re: [Emc-developers] halcompile problems

2020-04-06 Thread andy pugh
On Mon, 6 Apr 2020 at 05:26, Reinhard wrote: > I guess, its the "-nostdinc" option. That seems very likely, and was introduced by a recent update in RTAI https://github.com/NTULINUX/RTAI/commit/1609a05f346bcba8946f7c5aa48c9b3920afd112#diff-67e997bcfdac55191033d57a16d1408a Which probably explain

Re: [Emc-developers] halcompile problems

2020-04-06 Thread Reinhard
On Montag, 6. April 2020, 13:20:08 CEST andy pugh wrote: > ... I doubt that there are many people trying to halcompile userspace hal > components with an RTAI install that is that recent. Oh, I didn't know, that that should be possible. I tried to work out userspace hal component (which in my way

Re: [Emc-developers] halcompile problems

2020-04-06 Thread andy pugh
On Mon, 6 Apr 2020 at 13:10, Reinhard wrote: > I tried to work out userspace hal component (which in my way of thinking could > be started without the use of halcmd), but all crashed direct after start. Userspace HAL components are those that are started with "halcmd loadusr" rather than "halcmd

Re: [Emc-developers] halcompile problems

2020-04-06 Thread Reinhard
On Montag, 6. April 2020, 14:53:48 CEST andy pugh wrote: > On Mon, 6 Apr 2020 at 13:10, Reinhard wrote: > > I tried to work out userspace hal component (which in my way of thinking > > could be started without the use of halcmd), but all crashed direct after > > start. > Userspace HAL components