Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884831 - games-fps/doomsday-2.3.1 fails to compile (CLANG-STRICTER-SYSTEM): error: trigraphs was enabled in PCH file but is currently disabled
Summary: games-fps/doomsday-2.3.1 fails to compile (CLANG-STRICTER-SYSTEM): error: tri...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-08 09:17 UTC by Agostino Sarubbo
Modified: 2024-01-08 02:20 UTC (History)
0 users

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


Attachments
build.log (build.log,181.68 KB, text/plain)
2022-12-08 09:17 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-08 09:17:42 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-fps/doomsday-2.3.1 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-08 09:17:45 UTC
Created attachment 840975 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-08 09:17:45 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


--   Package 'SDL2_mixer', required by 'virtual:world', not found
--   Package 'fluidsynth', required by 'virtual:world', not found
--   Package 'sdl2', required by 'virtual:world', not found
FAILED: sdk/libcore/CMakeFiles/libcore.dir/libcore_autogen/mocs_compilation.cpp.o 
FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/c_wrapper.cpp.o 
FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/charsymbols.cpp.o 
FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/error.cpp.o 
FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/math.cpp.o 
FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/matrix.cpp.o 
FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/version.cpp.o 
FAILED: sdk/libcore/CMakeFiles/libcore.dir/src_concurrency_turbo.cpp.o 
FAILED: sdk/libcore/CMakeFiles/libcore.dir/src_core_turbo.cpp.o 
FAILED: sdk/libcore/CMakeFiles/libcore.dir/src_data_turbo.cpp.o 
FAILED: sdk/libcore/CMakeFiles/libcore.dir/src_filesys_remote_turbo.cpp.o 
FAILED: sdk/libcore/CMakeFiles/libcore.dir/src_filesys_turbo.cpp.o 
error: trigraphs was enabled in PCH file but is currently disabled
Comment 3 Pierre-Henri Lavigne 2024-01-08 02:17:16 UTC
Hello Agostino,

Pierre-Henri aka Peter currently an OpenMandriva user (clang in force ><)

Haven't ported the package yet, it's kind of a "known bug" for non-windows user. If you try to compile on linux without using a cache system like *ccache*, the script by default will try to enable *cotire*. You can disable it with the **DE_ENABLE_COTIRE** directive.
(Warning: used to be called DENG_ENABLE_COTIRE in the past, the prefix is **DE** not **DENG**)

I successfully built it with the following cmake command:
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release -DDE_ENABLE_COTIRE=NO ..

Hope it will help you or other users on the net.

Cheers
Comment 4 Pierre-Henri Lavigne 2024-01-08 02:20:58 UTC
(In reply to Agostino Sarubbo from comment #2)
> Error(s) that match a know pattern in addition to what has been reported in
> the summary:
> 
> 
> --   Package 'SDL2_mixer', required by 'virtual:world', not found
> --   Package 'fluidsynth', required by 'virtual:world', not found
> --   Package 'sdl2', required by 'virtual:world', not found
> FAILED:
> sdk/libcore/CMakeFiles/libcore.dir/libcore_autogen/mocs_compilation.cpp.o 
> FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/c_wrapper.cpp.o 
> FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/charsymbols.cpp.o 
> FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/error.cpp.o 
> FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/math.cpp.o 
> FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/matrix.cpp.o 
> FAILED: sdk/libcore/CMakeFiles/libcore.dir/src/version.cpp.o 
> FAILED: sdk/libcore/CMakeFiles/libcore.dir/src_concurrency_turbo.cpp.o 
> FAILED: sdk/libcore/CMakeFiles/libcore.dir/src_core_turbo.cpp.o 
> FAILED: sdk/libcore/CMakeFiles/libcore.dir/src_data_turbo.cpp.o 
> FAILED: sdk/libcore/CMakeFiles/libcore.dir/src_filesys_remote_turbo.cpp.o 
> FAILED: sdk/libcore/CMakeFiles/libcore.dir/src_filesys_turbo.cpp.o 
> error: trigraphs was enabled in PCH file but is currently disabled

Regards to my previous comment I meant the error is related to cotire.
I succeeded building the package with cmake / clang by disabling it.