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, 6 Apr 2014 11:45:04 +0200
- In-reply-to: <alpine.LNX.2.03.1404012134240.617@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> <CAOH62JiHCiHPUJRidjsvkv_1USR_qsStz1CYgOPak+HM6MCnMw@mail.gmail.com> <alpine.LNX.2.03.1404012134240.617@dordowsky.de>
On Tue, Apr 1, 2014 at 9:36 PM, Frank Dordowsky <frank at strato.de> wrote: > That was a pointer to the right direction. However, the option > -ffreestanding did not work. With help of a C guru at my office I > found another option that did the trick: -fpreprocessed <stdc-predef.h>. > My complete command now reads: > > frama-c -cpp-extra-args="-I `frama-c -print-share-path`/libc" > -cpp-extra-args="-nostdinc" -cpp-extra-args="-fpreprocessed > </path/to/stdc-predef.h>" -wp -wp-rte -pp-annot constant.c > According to a later message in a GCC mailing list, you still seem to be having problems (http://article.gmane.org/gmane.comp.gcc.help/46584/ ). An alternative solution would be to use Clang to pre-process your files. It uses the same syntax for its commandline down to the options that cause only pre-processing to happen. Could we see the file stdc-predef.h that is so terrible, or a minimal C file pre-processed by GCC 4.8.2? Regards, Pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20140406/7b46835f/attachment.html>
- Follow-Ups:
- [Frama-c-discuss] Error on using pp-annot
- From: frank at dordowsky.de (Frank Dordowsky)
- [Frama-c-discuss] Error on using pp-annot
- From: frank at dordowsky.de (Frank Dordowsky)
- [Frama-c-discuss] Error on using pp-annot
- References:
- [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] Question about get varinfo from vid
- Next by Date: [Frama-c-discuss] Error on using pp-annot
- Previous by thread: [Frama-c-discuss] Error on using pp-annot
- Next by thread: [Frama-c-discuss] Error on using pp-annot
- Index(es):