Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829940 - dev-qt/qtpositioning-5.15.2-r1 fails to compile: x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-Winconsistent-missing-override
Summary: dev-qt/qtpositioning-5.15.2-r1 fails to compile: x86_64-pc-linux-gnu-g++: err...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 829941 830494 830498 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-24 21:24 UTC by Agostino Sarubbo
Modified: 2023-10-01 10:55 UTC (History)
0 users

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


Attachments
build.log (build.log,79.55 KB, text/plain)
2021-12-24 21:24 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 2021-12-24 21:24:38 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-qt/qtpositioning-5.15.2-r1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses clang as a compiler and lld as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2021-12-24 21:24:40 UTC
Created attachment 760183 [details]
build.log

build log and emerge --info
Comment 2 Davide Pesavento gentoo-dev 2022-01-03 18:03:29 UTC
It seems that the build system still invokes x86_64-pc-linux-gnu-g++ but with the clang mkspec, thus passing clang-specific flags that cause the error.

How are you specifying the compiler? The build.log says that CXX is unset.

Did you build dev-qt/qtcore with clang?
Comment 3 Davide Pesavento gentoo-dev 2022-01-03 18:03:59 UTC
*** Bug 830498 has been marked as a duplicate of this bug. ***
Comment 4 Davide Pesavento gentoo-dev 2022-01-03 18:04:15 UTC
*** Bug 830494 has been marked as a duplicate of this bug. ***
Comment 5 Davide Pesavento gentoo-dev 2022-01-03 18:04:32 UTC
*** Bug 829941 has been marked as a duplicate of this bug. ***
Comment 6 Agostino Sarubbo gentoo-dev 2022-01-03 20:42:02 UTC
(In reply to Davide Pesavento from comment #2)
> It seems that the build system still invokes x86_64-pc-linux-gnu-g++ but
> with the clang mkspec, thus passing clang-specific flags that cause the
> error.
> 
> How are you specifying the compiler? The build.log says that CXX is unset.
> 
> Did you build dev-qt/qtcore with clang?

CXX is specified per package. I don't know if qtcore was built with clang or not.
Comment 7 Olivier van der Toorn 2023-10-01 10:55:33 UTC
I had the same problem with dev-qt/qtwebsockets:5.

> Did you build dev-qt/qtcore with clang?

Rebuilding dev-qt/qtcore with GCC and then trying qtwebsockets again solved this issue for me.