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

Bug 695604

Summary: sci-mathematics/z3-4.8.6 CXXFLAGS=-Wimplicit-function-declaration - CMake Error at cmake/z3_add_cxx_flag.cmake:15 (message): The flag "-fvisibility=hidden" is required but your C++ compiler doesn't support it
Product: Gentoo Linux Reporter: Alessandro Barbieri <lssndrbarbieri>
Component: Current packagesAssignee: Mark Wright <gienah>
Status: RESOLVED UPSTREAM    
Severity: normal CC: haskell, mgorny, sci
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=695602
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: z3-4.8.6:20190925-002828.log
info
CMakeError.log
CMakeOutput.log

Description Alessandro Barbieri 2019-09-25 00:55:12 UTC
I have -Wimplicit-function-declaration in CXXFLAGS

-- Performing Test HAS__fvisibility_hidden
-- Performing Test HAS__fvisibility_hidden - Failed
CMake Error at cmake/z3_add_cxx_flag.cmake:15 (message):
  The flag "-fvisibility=hidden" is required but your C++ compiler doesn't
  support it
Call Stack (most recent call first):
  CMakeLists.txt:355 (z3_add_cxx_flag)


-- Configuring incomplete, errors occurred!
Comment 1 Alessandro Barbieri 2019-09-25 00:56:26 UTC
Created attachment 590998 [details]
z3-4.8.6:20190925-002828.log

build log
Comment 2 Alessandro Barbieri 2019-09-25 00:56:39 UTC
Created attachment 591000 [details]
info

emerge --info
Comment 3 Alessandro Barbieri 2019-09-25 00:57:19 UTC
Created attachment 591002 [details]
CMakeError.log

cmake error log
Comment 4 Alessandro Barbieri 2019-09-25 00:57:48 UTC
Created attachment 591004 [details]
CMakeOutput.log

cmake log
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-28 05:57:56 UTC
It's fun stuff you're doing but if you're doing the kind of fun-breaking-stuff, you need to send fixes upstream yourself.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-28 11:04:22 UTC
> cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++

Better not to pass it to CXXFLAGS and leave it only to CFLAGS.