Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 829940

Summary: dev-qt/qtpositioning-5.15.2-r1 fails to compile: x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-Winconsistent-missing-override
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=910483
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

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 (RETIRED) 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 (RETIRED) gentoo-dev 2022-01-03 18:03:59 UTC
*** Bug 830498 has been marked as a duplicate of this bug. ***
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2022-01-03 18:04:15 UTC
*** Bug 830494 has been marked as a duplicate of this bug. ***
Comment 5 Davide Pesavento (RETIRED) 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.