Problems compiling a skin program

Hans-J. Ude ude at npn-gmbh.de
Wed Dec 22 10:33:20 CET 2004


Am Montag, 20. Dezember 2004 21:08 schrieben Sie:

 > Hans-Jürgen Ude wrote:
 >  > the central errors are reported from
 >  > $FUSION/include/nucleus/intr.h:97: parse error before 
"xnintr_affinity"
 >  > $FUSION/include/nucleus/intr.h:97: parse error before
 >  > "xnintr_xnarch_cpumask_t"
 >  >
 >  > Followed by hundreds of others, like an include file is missing. But
 >  > i've got no clue which one. Can someone give me a direction here? 
Fusion
 >  > version is 0.6.7. When trying Posix, similar or same things happen.
 >
 > The missing typedef is xnarch_cpumask_t, which should come from
 > the nucleus/asm/system.h corresponding to the system you are
 > compiling for.
 >
 > What is strange is that you should see a warning about asm/system.h not
 > found. What system are you trying to compile for ? kernel space ? user
 > space ? user space simulator ?


I wanted to compile for user space on a x86 based system. I've put some 
text output in nucleus/asm/system.h, so I can see that it is included. 
There will probably be a conditional compile which causes the problem. 
This is my makefile.

# Makefile

INCLUDES = -I${FUSION}/include/
CFLAGS   = -g -Wall -mcpu=i586 ${INCLUDES}

CC   = gcc ${CFLAGS}
LIBS = -lpthread /opt/etx/fusion/lib/libvxworks.a
EXE  = vxchain
OBJS = vx.o

$(EXE): $(OBJS)
	$(CC) -o $(EXE) $(OBJS) $(LIBS)

%.o:    %.c
	$(CC) -o $*.o -c $*.c

# End of Makefile

regards,
Hans











More information about the Rtai mailing list