Bug 1923435

Summary: libpmemobj-cpp: FTBFS in Fedora rawhide/f34
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: libpmemobj-cppAssignee: Luke <mr.harrylp>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: kilobyte, marcin.slusarz, mr.harrylp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-15 15:26:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1868278    
Attachments:
Description Flags
build.log
none
root.log
none
state.log
none
cmake success /Zc:cplusplus flag none

Description Fedora Release Engineering 2021-02-01 16:50:46 UTC
libpmemobj-cpp failed to build from source in Fedora rawhide/f34

https://koji.fedoraproject.org/koji/taskinfo?taskID=60910425


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Please fix libpmemobj-cpp at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
libpmemobj-cpp will be orphaned. Before branching of Fedora 35,
libpmemobj-cpp will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2021-02-01 16:50:49 UTC
Created attachment 1753319 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2021-02-01 16:50:50 UTC
Created attachment 1753320 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2021-02-01 16:50:51 UTC
Created attachment 1753321 [details]
state.log

Comment 4 Luke 2021-02-03 16:23:22 UTC
It seems like this is gcc 11 issue.

I've used latest rawhide docker to play with this issue and it seems like a test within CMake should not succeed on Unix/Linux system (see attached CMake test, a snippet from our build - from CMakeFiles/CMakeOutput.log ).

I've tried different cmake (3.18.3), I've checked on Fedora 33 & 32 (with previous gcc versions) and I used clang build. They all produce:
```
-- Performing Test CXX_HAS_/Zc:__cplusplus - Failed
```

Comment 5 Luke 2021-02-03 16:23:52 UTC
Created attachment 1754814 [details]
cmake success /Zc:cplusplus flag

Comment 6 Luke 2021-02-05 10:53:42 UTC
We've included a fix in our CMake to skip this check (on Linux) in our recent version (1.12-rc1: https://github.com/pmem/libpmemobj-cpp/tree/1.12-rc1).

Anyway I still believe this issue should be followed in gcc component.

Comment 7 Ben Cotton 2021-02-09 15:51:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 8 Adam Borowski 2021-02-15 15:26:23 UTC
Fixed version uploaded to rawhide and f34.