Emulator Issues #10641
closedQt build fails when using ccache
0%
Description
What's the problem? Describe what went wrong.
When building the Qt frontend, some commands seem to fail to take the CXX environment variable fully, instead splitting it on spaces and using the first component.
Here is the end of the log:
AutoMoc: Command output:
/usr/bin/ccache: invalid option -- 'd'
What steps will reproduce the problem?
$ CXX='ccache gcc' cmake . -DENABLE_QT2=ON
$ make
Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
Yes, on 5.0-5823.
Is the issue present in the latest stable version?
No, there was no Qt backend back then.
What are your PC specifications? (CPU, GPU, Operating System, more)
i5-3210m, HD4000, ArchLinux.
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)
Attached is the complete log.
Files
Updated by spycrab0 almost 7 years ago
- Status changed from New to Questionable
Can't reproduce that bug here:
$ g++ --version
g++ (Gentoo 7.2.0 p1.1) 7.2.0
$ ccache --version
ccache version 3.2.4
$ cmake --version
cmake version 3.9.6
Using Qt 5.9.3 under Gentoo GNU/Linux x86_64.
Updated by spycrab0 almost 7 years ago
- Status changed from Questionable to Won't fix
Apparently this is how it's supposed to be: https://gitlab.kitware.com/cmake/cmake/issues/17275
From CMake 5.10 onward you can specify CMAKE_CXX_COMPILER_PREDEFINES_COMMAND: https://cmake.org/cmake/help/v3.10/variable/CMAKE_LANG_COMPILER_PREDEFINES_COMMAND.html#variable:CMAKE_%3CLANG%3E_COMPILER_PREDEFINES_COMMAND
So it looks like you'll have to upgrade to CMake 3.10 then, sorry.