Re: Comedi CVS (in kernel 2.6.14 + rtai 3.3 + gcc4) failde to compile

still complained about the wrong version but it compiled...

many thanks.

On Thu, 2006-02-16 at 10:58 +0000, Ian Abbott wrote:
> On 15/02/2006 23:56, Richardson Leao wrote:
> > Hi all,
> > 
> > I could not manage to compile Comedi (from CVS) in my comp (fedora 4)
> > kernel 2.6.14 (fresh kernel) + rtai 3.3 + gcc4. When I compile without
> > adding a 'CONFIG_RTHAL=y' line _at_ the .config of the kernel I get the
> > following:
> > 
> > In file included from addi_common.c:67:
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘do’
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘struct’
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘struct’
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘struct’
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘struct’
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘struct’
> > In file included from addi_common.c:67:
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:31:1: warning:
> > "restore_fpu" redefined
> > In file included from /usr/realtime/include/asm/rtai_hal.h:177,
> >                  from /usr/realtime/include/asm/rtai.h:20,
> >                  from /usr/realtime/include/rtai.h:26,
> >                  from ../../../include/linux/comedi_rt.h:42,
> >                  from ../../../include/linux/comedidev.h:395,
> >                  from addi_common.c:65:
> > /usr/realtime/include/asm/rtai_fpu.h:111:1: warning: this is the
> > location of the previous definition
> > make[4]: *** [addi_common.o] Error 1
> > make[4]: Leaving directory `/usr/src/comedi/comedi/drivers/addi-data'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory `/usr/src/comedi/comedi/drivers'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/usr/src/comedi/comedi'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/src/comedi'
> > make: *** [all] Error 2
> > 
> > 
> > If I added that line it says:
> > 
> > In file included from /usr/realtime/include/rtai.h:25,
> >                  from ../../../include/linux/comedi_rt.h:42,
> >                  from ../../../include/linux/comedidev.h:395,
> >                  from addi_common.c:65:
> > /usr/realtime/include/rtai_sanity.h:24:2: warning: #warning : You are
> > likely using an unsuported GCC version! Please read GCC-WARNINGS
> > carefully.
> > In file included from addi_common.c:67:
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘do’
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘struct’
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘struct’
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘struct’
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘struct’
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:21: error: syntax error
> > before ‘struct’
> > In file included from addi_common.c:67:
> > /lib/modules/2.6.14.1/build/include/asm/i387.h:31:1: warning:
> > "restore_fpu" redefined
> > In file included from /usr/realtime/include/asm/rtai_hal.h:177,
> >                  from /usr/realtime/include/asm/rtai.h:20,
> >                  from /usr/realtime/include/rtai.h:26,
> >                  from ../../../include/linux/comedi_rt.h:42,
> >                  from ../../../include/linux/comedidev.h:395,
> >                  from addi_common.c:65:
> > /usr/realtime/include/asm/rtai_fpu.h:111:1: warning: this is the
> > location of the previous definition
> > make[4]: *** [addi_common.o] Error 1
> > make[4]: Leaving directory `/usr/src/comedi/comedi/drivers/addi-data'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory `/usr/src/comedi/comedi/drivers'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/usr/src/comedi/comedi'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/src/comedi'
> > make: *** [all] Error 2
> > 
> > Any thoughts? Thank you all.
> 
> See this thread from the archives:
> 
> http://thread.gmane.org/gmane.linux.comedi/4646
> 
> The suggested workaround of commenting out the addi-data drivers seemed 
> to work in that case.  It needs looking at for a proper solution, but 
> hopefully this will be enough to get you going!
> 

Received on 2006-02-17Z03:43:01