Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 168
    • Issues 168
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #1034

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>

      ^
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking