Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830949 - media-gfx/yafaray-3.5.1-r1 fails to compile: surface.h:118:19: error: no member named numeric_limits in namespace std
Summary: media-gfx/yafaray-3.5.1-r1 fails to compile: surface.h:118:19: error: no memb...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2022-01-10 19:17 UTC by Agostino Sarubbo
Modified: 2022-04-23 01:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,70.54 KB, text/plain)
2022-01-10 19:17 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-10 19:17:43 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-gfx/yafaray-3.5.1-r1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses CLANG as a compiler and LLD as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-10 19:17:45 UTC
Created attachment 761827 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-10 19:17:45 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


fatal: not a git repository (or any parent up to mount point /var/tmp)
/var/tmp/portage/media-gfx/yafaray-3.5.1-r1/work/libYafaRay-3.5.1/include/core_api/surface.h:118:19: error: no member named 'numeric_limits' in namespace 'std'
Comment 3 Bernd 2022-01-11 06:47:48 UTC
Seems to be clang specific. Just tested against gcc, where the build succeeds.
Comment 4 Bernd 2022-01-18 06:51:58 UTC
Opened an issue upstream
Comment 5 Larry the Git Cow gentoo-dev 2022-04-23 01:21:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a523b10395f37bb6de358975d1a4da888f4ee9c3

commit a523b10395f37bb6de358975d1a4da888f4ee9c3
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2022-04-22 06:32:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-23 01:21:32 +0000

    media-gfx/yafaray: fix build with clang
    
    Closes: https://bugs.gentoo.org/830949
    Bug: https://github.com/YafaRay/libYafaRay/issues/9
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/25150
    Signed-off-by: Sam James <sam@gentoo.org>

 .../yafaray-3.5.1-add-missing-limits-header.patch   | 21 +++++++++++++++++++++
 media-gfx/yafaray/yafaray-3.5.1-r1.ebuild           |  6 +++++-
 2 files changed, 26 insertions(+), 1 deletion(-)