Bug 1084621

Summary: GCC 8: spirv-tools build fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Jan Engelhardt <jengelh>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1084649    

Description Martin Liška 2018-03-09 09:35:58 UTC
Build the package with GCC 8, there's error:

spirv-tools.log:[   47s] /home/abuild/rpmbuild/BUILD/spirv-tools-2018.0/source/util/bitutils.h:29:14: error: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class spvutils::Float16'; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]

Please build the project as follows to reproduce the issue:
osc build --alternative-project=openSUSE:Factory:Staging:Gcc7
Comment 1 Martin Liška 2018-03-27 15:31:09 UTC
Looks fixed with latest GCC 8 snapshot.