option -nostdinc does not seem to work
ID0001786: This issue was created automatically from Mantis Issue 1786. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0001786 | Frama-Clang | Kernel | public | 2014-05-26 | 2014-05-27 |
Reporter | jens | Assigned To | virgile | Resolution | no change required |
Priority | normal | Severity | major | Reproducibility | always |
Platform | - | OS | - | OS Version | - |
Product Version | Frama-C Neon-20140301 | Target Version | - | Fixed in Version | - |
Description :
When calling the following sample code (nostdinc.cpp)
#include "limits.h"
int foo(int a) { if (a >= INT_MAX/2) return INT_MAX; else return a; }
with
frama-c-gui -cpp-command 'gcc -C -E -nostdinc -I/usr/local/share/frama-c/libc' -cxx-clang-command="framaCIRGen" -cxx-stdinc -cxx-demangling-full -wp -wp-rte -wp-proof alt-ergo nostdin.cpp
refers to std header such as
In file included from nostdin.cpp:2: In file included from /usr/include/clang/3.3/include/limits.h:38: In file included from /usr/include/limits.h:25: In file included from /usr/include/features.h:398: /usr/include/x86_64-linux-gnu/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
include <gnu/stubs-32.h>
^