Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2041 - Pre-compiled headers don't work at all when building on Ubuntu Bionic (w/GCC 7.3.0) #7938

Closed
openwrt-bot opened this issue Jan 2, 2019 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

sqrammi:

To reproduce:

  1. Make a file test.h:
    #define test 1
  2. Make a file test.c:
    void main() { return; }
  3. Try to create and use a precompiled header
    mips-...g++ -c -x c++-header -o test.gch test.h
    mips-...g++ -o prog -Winvalid-pch -include test test.c

I get:

cc1plus: warning: test.gch: had text segment at different address

So it appears that something Bionic/GCC7.3 is doing to gcc causes gcc 5.4.0 PCH to break completely. PCH works fine on GCC 7.3 on the host, so it's likely something that was fixed upstream, but I'm having difficulty finding the fix in gcc's git history.

@openwrt-bot
Copy link
Author

jow-:

Shouldn't you report it against Ubuntu Bionic then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant