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

Bug 793080

Summary: x11-libs/vte-0.64.1 - meson.build:349:2: ERROR: Assert failed: -fvisibility-inlines-hidden is required but not supported
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: PPC64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
meson-log.txt
emerge --info

Description ernsteiswuerfel archtester 2021-05-30 16:55:28 UTC
Created attachment 712611 [details]
build.log

[...]
Compiler for C++ supports arguments -fvisibility-inlines-hidden: NO 
Compiler for C++ supports arguments -fvisibility=hidden: NO 
Compiler for C++ supports arguments -fvisibility-inlines-hidden: NO (cached)

meson.build:349:2: ERROR: Assert failed: -fvisibility-inlines-hidden is required but not supported

A full log can be found at /var/tmp/portage/x11-libs/vte-0.64.1/work/vte-0.64.1-build/meson-logs/meson-log.txt
 * ERROR: x11-libs/vte-0.64.1::gentoo failed (configure phase):
 *   (no error message)
Comment 1 ernsteiswuerfel archtester 2021-05-30 16:56:09 UTC
Created attachment 712614 [details]
meson-log.txt
Comment 2 ernsteiswuerfel archtester 2021-05-30 16:56:37 UTC
Created attachment 712617 [details]
emerge --info
Comment 3 Ionen Wolkens gentoo-dev 2021-05-30 20:47:50 UTC
I can reproduce on ~amd64 if I add -Wno-implicit-function-declaration to CXXFLAGS like you did.

   cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++

In other words, you shouldn't have this in CXXFLAGS but rather only CFLAGS if you want it. Not sure if this can be considered a bug (other than the meson checks being oversensitive).
Comment 4 ernsteiswuerfel archtester 2021-05-30 21:23:08 UTC
(In reply to Ionen Wolkens from comment #3)
> I can reproduce on ~amd64 if I add -Wno-implicit-function-declaration to
> CXXFLAGS like you did.
Mkay... I wonder how this even landed in my COMMON_FLAGS in the first place...

It builds fine when I stick to sane COMMON_FLAGS.