Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 839549 - dev-libs/gjs: build failure with PCH
Summary: dev-libs/gjs: build failure with PCH
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-19 18:04 UTC by Sam James
Modified: 2022-04-25 16:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (file_839549.txt,51.59 KB, text/plain)
2022-04-19 18:04 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-19 18:04:22 UTC
Created attachment 771938 [details]
build.log

FEE34 reported this build failure in #gentoo:

' -MD -MQ libgjs-internal.a.p/gi_arg.cpp.o -MF libgjs-internal.a.p/gi_arg.cpp.o.d -o libgjs-internal.a.p/gi_arg.cpp.o -c ../gjs-1.70.1/gi/arg.cpp
[31mFAILED: [0mlibgjs-internal.a.p/gi_arg.cpp.o 
x86_64-pc-linux-gnu-g++ -Ilibgjs-internal.a.p -I. -I../gjs-1.70.1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gobject-introspection-1.0 -I/usr/include/nspr -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/libpng16 -fdiagnostics-color=always -fpch-preprocess -include gjs_pch.hh -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++17 -fno-rtti -fno-strict-aliasing -Wno-variadic-macros -Wno-missing-field-initializers -fno-semantic-interposition -O2 -pipe -march=native -DG_DISABLE_CAST_CHECKS -fPIC -isystem/usr/include/sysprof-4 -pthread -include /usr/include/mozjs-78/js/RequiredDefines.h -isystem /usr/include/mozjs-78 -DGJS_COMPILATION '-DGJS_JS_DIR="/usr/share/gjs-1.0"' '-DPKGLIBDIR="/usr/lib64/gjs"' '-DG_LOG_DOMAIN="Gjs"' -MD -MQ libgjs-internal.a.p/gi_arg.cpp.o -MF libgjs-internal.a.p/gi_arg.cpp.o.d -o libgjs-internal.a.p/gi_arg.cpp.o -c ../gjs-1.70.1/gi/arg.cpp
[01m[Kcc1plus:[m[K [01;35m[Kwarning: [m[Klibgjs-internal.a.p/gjs_pch.hh.gch: created and used with differing settings of '-mlwp' [[01;35m[K-Winvalid-pch[m[K]
[01m[Kcc1plus:[m[K [01;31m[Kerror: [m[Kone or more PCH files were found, but they were invalid
[01m[K<command-line>:[m[K [01;31m[Kfatal error: [m[Kgjs_pch.hh: No such file or directory
compilation terminated.

They have gcc[-pch] as it's masked.
Comment 1 Larry the Git Cow gentoo-dev 2022-04-25 15:58:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e81acd54090a08c68264ad99ff36d8f2a1c50b6a

commit e81acd54090a08c68264ad99ff36d8f2a1c50b6a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-19 18:05:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-25 15:57:55 +0000

    meson.eclass: disable PCH
    
    It's already masked and disabled in GCC and it causes a huge
    number of problems, but we need to do this to avoid automagically
    trying to use PCH-even-once-it's-been-disabled-in-the-compiler.
    
    Bug: https://bugs.gentoo.org/839549
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/meson.eclass | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)