Frama-C-discuss mailing list archives
This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Frama-c-discuss] Error on using pp-annot
- Subject: [Frama-c-discuss] Error on using pp-annot
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- Date: Sun, 30 Mar 2014 14:58:51 +0200
- In-reply-to: <alpine.LNX.2.03.1403301438460.3899@dordowsky.de>
- References: <alpine.LNX.2.03.1403300940120.3220@strato.de> <CAOH62JhJErP1S-T80t6TTWDj4DB+89aGb3BHSNM3=vAKEJMz-Q@mail.gmail.com> <CAOH62JiriPFVqKf1-ynK_5BurCv8WR0kNDUECH-tG_4gSnvbBA@mail.gmail.com> <alpine.LNX.2.03.1403301438460.3899@dordowsky.de>
On Sun, Mar 30, 2014 at 2:50 PM, Frank Dordowsky <frank at strato.de> wrote: > > frama-c -cpp-extra-args="-nostdinc" -cpp-extra-args="-I `frama-c > -print-share-path`/libc" -pp-annot -wp -wp-rte constant.c > > There are no more warnings now (I skipped these in my previus posting), > but unfortunately the error remains: > > > [kernel] preprocessing with "gcc -C -E -I. -I /usr/share/frama-c/libc > -nostdinc -dD constant.c" > /usr/include/stdc-predef.h:1:[kernel] user error: unexpected token '/' > [kernel] user error: skipping file "constant.c" that has errors. > [kernel] Frama-C aborted: invalid user input. > > Is there still a mistake in the command? > There is still something strange, which is that a header from /usr/include finds itself included when it shouldn't. Considering the name of the file, "stdc-predef.h", it may be a file that is systematically included before every pre-processed file, and that is not disabled by -nostdinc. This is between you and your compiler, I am afraid, but googling for "stdc-predef.h" produces a list of results the first entry of which is a webpage containing the line: As a workaround, the stdc-predef.h preinclude can be disabled with the use of - ffreestanding This is the page the above sentence comes from: http://gcc.gnu.org/gcc-4.8/porting_to.html It seems worth a try. Pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20140330/1ea5adf4/attachment.html>
- References:
- [Frama-c-discuss] Error on using pp-annot
- From: frank at strato.de (Frank Dordowsky)
- [Frama-c-discuss] Error on using pp-annot
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] Error on using pp-annot
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] Error on using pp-annot
- From: frank at strato.de (Frank Dordowsky)
- [Frama-c-discuss] Error on using pp-annot
- Prev by Date: [Frama-c-discuss] Error on using pp-annot
- Next by Date: [Frama-c-discuss] Questions on wp about _Bool, inductive predicates and Coq
- Previous by thread: [Frama-c-discuss] Error on using pp-annot
- Next by thread: [Frama-c-discuss] Questions on wp about _Bool, inductive predicates and Coq
- Index(es):