On Mon, 6 Apr 2020 at 00:56, andy pugh <bodge...@gmail.com> 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/linuxcnc-dev/include/ -DULAPI  -H thermistor.c

Seems OK (up to the point that it can't find HAL). It finds stddef /
stddarg / spawn with no difficulty.

However, same system, same file

andypugh@rm-one:~/linuxcnc-dev/src/hal/user_comps$ halcompile
--compile thermistor.comp

gcc -Os -g -I. -I/usr/realtime-4.14.174-rtai-amd64/include -I.
-I/usr/realtime-4.14.174-rtai-amd64/include -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=2 -O2 -march=x86-64 -fomit-frame-pointer -pipe
-D__IN_RTAI__ -mcmodel=kernel -nostdinc -ffreestanding -fno-pic
-fno-builtin -fno-common -fno-unwind-tables
-fno-asynchronous-unwind-tables -fexcess-precision=standard
-frounding-math -fsignaling-nans -mieee-fp -mhard-float
-mpreferred-stack-boundary=4 -mstackrealign -mfpmath=sse -msse -msse2
-DRTAI=5 -fno-fast-math -mieee-fp -fno-unsafe-math-optimizations
-DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__
-I/home/andypugh/linuxcnc-dev/include -Wframe-larger-than=2560 -URTAPI
-U__MODULE__ -DULAPI -H -Os  -o thermistor /tmp/tmpM2Lxkj/thermistor.c
-Wl,-rpath,/home/andypugh/linuxcnc-dev/lib
-L/home/andypugh/linuxcnc-dev/lib -llinuxcnchal -lm
. /home/andypugh/linuxcnc-dev/include/rtapi.h
In file included from /tmp/tmpM2Lxkj/thermistor.c:2:
/home/andypugh/linuxcnc-dev/include/rtapi.h:69:10: fatal error:
stddef.h: No such file or directory

Do any of those compiler flags overwrite or remove the standard gcc paths?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to