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

Bug 740044

Summary: media-libs/ftgl-2.1.3_rc5 fails to compile: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
1-autoconf.out

Description Agostino Sarubbo gentoo-dev 2020-09-02 08:21:11 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-libs/ftgl-2.1.3_rc5 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-02 08:21:14 UTC
Created attachment 657902 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-02 08:21:15 UTC
Created attachment 657904 [details]
1-autoconf.out

1-autoconf.out
Comment 3 Denis Pronin 2020-11-26 11:27:35 UTC
The actual issue is that while configuring sources it strips CXXFLAGS so that they are cleared off from any unwanted flags from the perspective of configuration scripts. I used to be able to compile when passed c++03 as a standard to build with, but now the configuration wipes it out from CXXFLAGS and as the result I see the build fail
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-17 15:47:40 UTC
commit 2919a7d7469a54cf50ff469f76f71bf7cc4ca20f
Author: Denis Pronin <dannftk@yandex.ru>
Date:   Sat Mar 12 13:07:26 2022 +0300

    added ftgl-2.1.3_rc5-clang.patch

    patch that fixes building with clang using c++11

    Signed-off-by: Denis Pronin <dannftk@yandex.ru>
    Closes: https://github.com/gentoo/gentoo/pull/24505
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>