[cfe-dev] Issue #1 from RTEMS run of clang-analyzer
Joel Sherrill
joel.sherrill at OARcorp.com
Fri Sep 24 06:03:23 PDT 2010
Hi,
I guess one email with multiple issues didn't
get attention. :( So let's try it again with
one issue at a time.
The first is this which looks like a quoted string on the command
line is getting mangled:
/usr/lib/clang-analyzer/scan-build/ccc-analyzer
-DPACKAGE_NAME=\"rtems-c-src\" -DPACKAGE_TARNAME=\"rtems-c-src\"
-DPACKAGE_VERSION=\"4.10.99.0\" -DPACKAGE_STRING=\"rtems-c-src\
4.10.99.0\" -DPACKAGE_BUGREPORT=\"http://www.rtems.org/bugzilla\"
-DPACKAGE_URL=\"\" -DCPU_U32_FIX=1 -I.
-I/home/joel/rtems-4.11-work/build/rtems/c/src/optman
-I../../../sis/lib/include -mcpu=cypress -O2 -g -Wall
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT
rtems/no_timer_rel-no-timer.o -MD -MP -MF
rtems/.deps/no_timer_rel-no-timer.Tpo -c -o
rtems/no_timer_rel-no-timer.o `test -f 'rtems/no-timer.c' || echo
'/home/joel/rtems-4.11-work/build/rtems/c/src/optman/'`rtems/no-timer.c
error: error reading '4.10.99.0"'
In file included from <built-in>:109:
<command line>:5:24: error: missing terminating '"' character
#define PACKAGE_STRING "rtems-c-src
^
This is from this -D option...
-DPACKAGE_STRING=\"rtems-c-src\ 4.10.99.0\"
Notice that there is an embedded space in the right hand side of the
-DPACKAGE_STRING which is causing the parsing of the command line to break.
I can provide any output, scripts, help, etc to reproduce and
track down the issues I encountered. I would like to get to
the point where we ran the analyser as part of our automated
build process on RTEMS.
Thanks.
Thanks.
--joel sherrill
RTEMS
More information about the cfe-dev
mailing list