ts-7000
[Top] [All Lists]

[ts-7000] Re: max sample rate?

To:
Subject: [ts-7000] Re: max sample rate?
From: "Yan Seiner" <>
Date: Fri, 12 Oct 2007 17:06:29 -0000
Hi Phil:

This discussion has prompted me to try and build your adc driver.

I'm getting an error on build which I can't figure out...  (Not
unusual for me this week; I seem to be in one of those 1970s biorythm
slumps where even the simplest things go wrong....)

dionysus:/home/local/panel/src/adc-0.0.2# make
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/bin/gcc
-B/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/bin
-isystem /home/local/panel/src/linux24/include -I
/home/local/panel/src/linux24/include -L
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/lib 
-Wno-trigraphs -Os -fno-strict-aliasing -fno-common -Uarm -pipe
-mapcs-32 -D__LINUX_ARM_ARCH__=4 -march=armv4 -mtune=arm9tdmi  -I. 
-D_DEBUG -D__KERNEL__ -DMODULE -D LITTLE_ENDIAN -Wall -Werror -o
obj/adc_openrelease.o adc_openrelease.c -c
In file included from adc_openrelease.c:4:
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:256:47:
division by zero in #if
In file included from adc_openrelease.c:4:
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:
In function `jiffies_to_msecs':
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:259:
error: `MSEC_PER_SEC' undeclared (first use in this function)
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:259:
error: (Each undeclared identifier is reported only once
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:259:
error: for each function it appears in.)
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:267:47:
division by zero in #if
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:
In function `jiffies_to_usecs':
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:270:
error: `USEC_PER_SEC' undeclared (first use in this function)
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:280:47:
division by zero in #if
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:
In function `msecs_to_jiffies':
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:283:
error: `MSEC_PER_SEC' undeclared (first use in this function)
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:293:47:
division by zero in #if
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:
In function `usecs_to_jiffies':
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:296:
error: `USEC_PER_SEC' undeclared (first use in this function)

and so on.

Basically, all of the *_PER_SEC are undefined.

I added those to jiffies.h just to see what would happen and I get

dionysus:/home/local/panel/src/adc-0.0.2# make
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/bin/gcc
-B/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/bin -
isystem /home/local/panel/src/linux24/include -I
/home/local/panel/src/linux24/include -L
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/lib 
-Wno-trigraphs -Os -fno-strict-aliasing -fno-common -Uarm -pipe
-mapcs-32 -D__LINUX_ARM_ARCH__=4 -march=armv4 -mtune=arm9tdmi  -I. 
-D_DEBUG -D__KERNEL__ -DMODULE -D LITTLE_ENDIAN -Wall -Werror -o
obj/adc_openrelease.o adc_openrelease.c -c
In file included from adc_openrelease.c:4:
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:319:
error: conflicting types for ' timespec_to_jiffies'
/home/local/panel/src/linux24/include/linux/time.h:33: error: previous
definition of 'timespec_to_jiffies' was here
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/sys-root/usr/include/linux/jiffies.h:335:
error: redefinition of 'jiffies_to_timespec'
/home/local/panel/src/linux24/include/linux/time.h:46: error: previous
definition of 'jiffies_to_timespec' was here
make: *** [obj/adc_openrelease.o] Error 1

This whole thing points to something wron in the toolchain and/or
includes.  Can someone shed some light on this?

Thanks,

--Yan



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU