- From: Calin A. Culianu <calin_at_ajvar.org>
- Date: Mon, 27 Jan 2003 11:16:53 -0500 (EST)
Gentlemen,
I had a very strange problem today that I can't seem to get to the bottom
of. I have yet to try this with different versions of gcc on different
systems.. but for the time being with gcc 3.2 on a genoo-linux based
system I, while compiling comedi-cvs from 1/27/2003, I got a very strange
error:
gcc -I /usr/src/comedi/include -D__KERNEL__ -I/usr/src/linux-2.4.19-rtl3.2-pre1/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -I
/usr/src/rtlinux-3.2-pre1/include -I /usr/src/rtlinux-3.2-pre1/include/compat -I
/usr/src/rtlinux-3.2-pre1/include/posix -D__RT__ -nostdinc -I /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2/include -DMODULE -c -o pcl816.o
pcl816.c
In file included from /usr/src/comedi/include/linux/comedidev.h:27,
from pcl816.c:37:
/usr/src/linux-2.4.19-rtl3.2-pre1/include/linux/kernel.h:165:1: missing
binary operator
This is using gcc-3.2, RTLinux 3.2-pre1 and Linux 2.4.19 patched for
rtlinux.
I tried troubleshooting this problem, and I couldn't for the life of me
figure out just what gcc is talking about when it gets this error.
So I ran the preprocessor (cpp) on the .c file using basically the above
command-line and I get _blank_ preprocessor output! Well not totally
blank, but just lines line:
# 1 "<built-in>"
# 1 "<command line>"
# blah blah some other preprocessor marker for the compiler.. blah blah
# etc...
With no actual code from the .c file. Now this may not be a problem with
comedi per se, but I was just wondering what could possibly cause the
preprocessor to omit all the actual contents of the .c file? This doesn't
happen on any other .c file in comedi, just pcl816.c.
Anyway to finally get comedi to compile with this compiler I had to omit
the pcl816 driver altogether from the build.
Is this weird, am I crazy, or should I just blame it on cosmic rays?
-Calin
Received on 2003-01-27Z16:16:53