Menu

#4 'make depend', *.l can't find std libs. Also __STDC__ prob.

open
nobody
None
5
2004-07-15
2004-07-15
Anonymous
No

I'm compiling ctool on cygwin over WinXP Pro, using gcc
version 3.3.1. With versions of flex 2.5.4, and also
2.5.31,
I am getting the same following errors (and I don't
know of any flex versions I *don't* get the errors with):

1)First problem:
After doing ./config, 'make depend' spits out lots of
warnings, all about std lib files (and I have all the
'using namespace std' in the *.cpp/*.h/*.l/*.y files
after they include std lib files).
Warnings look like:
makedepend: warning: lexer.l (reading context.h, line
36): cannot find include file "cstdio"
not in ./cstdio
not in /usr/local/lib/gcc-include/cstdio
not in /usr/include/cstdio
not in /usr/include/w32api/cstdio
not in
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/cstdio

My PATH environment includes the path to the 'missing'
files:
/usr/include/c++/3.3.1/

And, if I leave flex out of the compilation process,
there are no warning messages about missing std lib
files (even though many other files in the project
include them).

2) 2nd problem:
After compiling (the compilation completes, despite the
warning messages about std library files), all the
tests in the regression directory fail. The output
looks as on the bottom of this post (only more of it).

Thank you in advance, for any fixes!
Sincerely,
Lori
(handle is debian_usr at sourceforge )

Test message output:
-----------------------------------------
Test Suite output from suite accept0

Test started at: Thu Jul 15 13:50:40 PST 2004

Testing the 8q program...<command line>:10:1: warning:
"__STDC__" redefined
run/8q.c:44: Error (syntax error) before 'Identifier'
typedef __builtin_va_list __gnuc_va_list;
^
assertion "err_top_level || ! IsTypedefDeclCtxt()"
failed: file "context.cpp", line 321
Signal 6
done.
Testing the bug1 program...<command line>:10:1:
warning: "__STDC__" redefined
done.
Testing the bug2 program...<command line>:10:1:
warning: "__STDC__" redefined
done.
Testing the bug3 program...<command line>:10:1:
warning: "__STDC__" redefined
done.
Testing the bug4 program...<command line>:10:1:
warning: "__STDC__" redefined
done.
Testing the bug5 program...<command line>:10:1:
warning: "__STDC__" redefined
done.
Testing the bug7 program...<command line>:10:1:
warning: "__STDC__" redefined
run/bug7.c:60: Error (syntax error) before '#line'
# 61 "run/bug7.c"
^
run/bug7.c:66: Warning - old-style declaration or
incorrect type:
} myBar;

Discussion


Log in to post a comment.