Summary: | games-action/teeworlds-0.6.3 : /.../cmath:1708:18: error: ‘constexpr float std::round(float)’ conflicts with a previous declaration | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 582084 | ||
Attachments: |
emerge-history.txt
environment games-action:teeworlds-0.6.3:20161031-112359.log rename internal round function to round_to_int |
Description
Toralf Förster
2016-10-31 15:21:06 UTC
Created attachment 451999 [details]
emerge-history.txt
Created attachment 452001 [details]
environment
Created attachment 452003 [details]
games-action:teeworlds-0.6.3:20161031-112359.log
Created attachment 462516 [details, diff]
rename internal round function to round_to_int
I paste patch to fix this build problem. This compiling error happens because of the same function names std::round(float) and int round() defined in src/base/math.h This patch renames name of the last one to round_to_int()
I forgot to say that the patch in the post before is taken from debian project. https://launchpadlibrarian.net/270294693/teeworlds_0.6.3+dfsg-2.debian.tar.xz Here is the link where the cure could be found. Also there one more patch called fix-gcc6-var-types.patch needed to make build with gcc-6 error free. I've tested version 0.6.4. It builds with gcc-6 fine. Probably bump version? 0.6.4 is in the tree. It should be stabilised before closing this. 0.6.4 is now stable. |