OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
  • Task Type Bug Report
  • Category Toolchain
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Very Low
  • Reported Version lede-17.01
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Jeff Hansen - 02.01.2019

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

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.

Jo-Philipp Wich commented on 03.01.2019 14:03

Shouldn't you report it against Ubuntu Bionic then?


Available keyboard shortcuts


Task Details

Task Editing