Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740394 - media-sound/milkytracker-1.02.00-r1 fails to compile with clang++ - error: non-constant-expression cannot be narrowed from type 'typename __gnu_cxx::__enable_if<__is_integer<int>::__value, double>::__type' (aka 'double') to 'float' in initializer list
Summary: media-sound/milkytracker-1.02.00-r1 fails to compile with clang++ - error: no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-04 15:08 UTC by Agostino Sarubbo
Modified: 2020-09-08 08:30 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,148.11 KB, text/plain)
2020-09-04 15:08 UTC, Agostino Sarubbo
Details
1-CMakeOutput.log (1-CMakeOutput.log,32.28 KB, text/plain)
2020-09-04 15:08 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 2020-09-04 15:08:42 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-sound/milkytracker-1.02.00-r1 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-04 15:08:45 UTC
Created attachment 658400 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-04 15:08:46 UTC
Created attachment 658402 [details]
1-CMakeOutput.log

1-CMakeOutput.log
Comment 3 Miroslav Šulc gentoo-dev 2020-09-08 08:10:07 UTC
the error is this:

/usr/lib/llvm/10/bin/x86_64-pc-linux-gnu-clang++ -DMILKYTRACKER -I/var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/tracker -Isrc/tracker -I/var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/fx -I/var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/milkyplay -I/usr/include/SDL2 -I/var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/ppui/osinterface -I/var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/ppui/osinterface/posix -I/var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/ppui/. -I/var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/ppui/sdl -I/var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/compression  -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -MD -MT src/tracker/CMakeFiles/tracker.dir/EQConstants.cpp.o -MF src/tracker/CMakeFiles/tracker.dir/EQConstants.cpp.o.d -o src/tracker/CMakeFiles/tracker.dir/EQConstants.cpp.o -c /var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/tracker/EQConstants.cpp
/var/tmp/portage/media-sound/milkytracker-1.02.00-r1/work/MilkyTracker-1.02.00/src/tracker/EQConstants.cpp:30:2: error: non-constant-expression cannot be narrowed from type 'typename __gnu_cxx::__enable_if<__is_integer<int>::__value, double>::__type' (aka 'double') to 'float' in initializer list [-Wc++11-narrowing]
Comment 4 Larry the Git Cow gentoo-dev 2020-09-08 08:30:36 UTC
The bug has been closed via the following commit(s):

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

commit 877d04a251b527dd22730b95457353af1a8a20dd
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2020-09-08 08:30:12 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2020-09-08 08:30:31 +0000

    media-sound/milkytracker: fixed compilation with clang++ in 1.02.00-r1
    
    Closes: https://bugs.gentoo.org/740394
    Package-Manager: Portage-3.0.6, Repoman-3.0.1
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../files/milkytracker-1.02.00-clang.patch         | 85 ++++++++++++++++++++++
 .../milkytracker/milkytracker-1.02.00-r1.ebuild    |  1 +
 2 files changed, 86 insertions(+)