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/
|