https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462

            Bug ID: 100462
           Summary: g++ fails to find the a pre-compiled header
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mail at 3v1n0 dot net
  Target Milestone: ---

Unfortunately I've not a minimal test case for this, but in gjs we can't use
pre-compiled headers with g++ (while they work fine with clang++).

In particular, we get this error:

 cc1plus: fatal error: gjs_pch.hh: No such file or director

When in the build directory (that is included) there's a pch file
(_build/libgjs.so.0.0.0.p/gjs_pch.hh.pch).
This happens no matter what's in the pch source (can be just an include).

 An example failure is visible at:
  - https://gitlab.gnome.org/3v1n0/gjs/-/jobs/1288211 (see job artifacts for
more logs)


While the file gets used by clang++
(https://gitlab.gnome.org/3v1n0/gjs/-/jobs/1288273)

The best way to reproduce this is:
  git clone https://gitlab.gnome.org/3v1n0/gjs -b pch
  cd gjs
  meson _build -Db_pch=true
  ninja -C _build

I tried to make a minimal reproducer, but can't define one.

Reply via email to