Project

General

Profile

Actions

Emulator Issues #10641

closed

Qt build fails when using ccache

Added by linkmauve over 6 years ago. Updated about 6 years ago.

Status:
Won't fix
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

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

dqt2.txt.gz (14 KB) dqt2.txt.gz Log of a build, with how it fails at the end. linkmauve, 11/15/2017 10:57 PM
Actions #1

Updated by linkmauve over 6 years ago

Fyi, my Qt version is 5.9.2 currently.

Actions #2

Updated by spycrab0 about 6 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.

Actions #3

Updated by spycrab0 about 6 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.

Actions

Also available in: Atom PDF