Menu

#206 Precompiling headers fails with modern versions of GCC

Next_Release
open
nobody
Compiler (40)
Bug_Report
2016-01-30
2015-09-01
Riot
No

...because the option -I- is now obsolete, and is appended automatically when precompiling headers: ||note: obsolete option -I- used, please use -iquote instead|

It continues to attempt to compile, but fails to find all files not explicitly given an include path. For instance, attempting to build precompiled headers including locale_conv.h produces fatal error: stringfwd.h: No such file or directory|

Discussion

  • ollydbg

    ollydbg - 2015-10-06

    Hi, Riot, can you tell us what is the steps to reproduce this bug? Also, please mention which version of compiler do you use, thanks.

     
  • ollydbg

    ollydbg - 2015-10-06
    • labels: --> Compiler
     
  • Riot

    Riot - 2015-10-06

    Hi Olly, the compiler I'm using is g++ (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 5.1.0 on windows, but I believe this would happen with any version of gcc after 5.0 and on any platform.

    I've just realised this is probably the same issue as http://forums.codeblocks.org/index.php?topic=5614.0 - it seems I previously changed the setting for where the precompiled header should be generated.

    Steps to reproduce:
    1. Use any GCC since 5.0
    2. Select any header in the project, right-click, enable options->compile
    3. Change project options -> generate PCH in object output dir
    4. Attempt to compile the project
    4. Receive error: obsolete option -I- used, please use -iquote instead|

     
  • Riot

    Riot - 2015-10-08

    Followup: the problem with the setting of having the .gch file alongside the header is that it does not support multiple targets. On our system we have a variety of targets with different compiler settings, and without being able to store the PCH in the per-target object directory, one compiled for one target clashes with the others.

     
  • Teodor Petrov

    Teodor Petrov - 2016-01-21
    • Type: Undefined --> Bug_Report
    • Milestone: Undefined --> Next Release
     
  • Teodor Petrov

    Teodor Petrov - 2016-01-21

    Can you post a minimal project that can be used to reproduce the problem?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.