Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740330 - media-sound/cadence-0.9.1 fails to compile
Summary: media-sound/cadence-0.9.1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-04 08:24 UTC by Agostino Sarubbo
Modified: 2020-09-04 09:54 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,37.87 KB, text/plain)
2020-09-04 08:24 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 08:24:09 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-sound/cadence-0.9.1 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 08:24:12 UTC
Created attachment 658322 [details]
build.log

build log and emerge --info
Comment 2 Miroslav Šulc gentoo-dev 2020-09-04 09:12:40 UTC
to summarize it, ${WORKDIR}/Cadence-0.9.1/c++/jack_utils.hpp has line '#include <string>' which causes following errors on gcc header file:

/usr/lib64/qt5/bin/rcc -name resources-jackmeter ../../resources/resources-jackmeter.qrc -o qrc_resources-jackmeter.cpp
clang++ -c jackmeter.cpp -O3 -ffast-math -Wall -Wextra -DNDEBUG -fPIC -std=c++0x -march=native -O2 -pipe -frecord-gcc-switches -DQT_NO_DEBUG -DQT_NO_DEBUG_STREAM -DQT_NO_DEBUG_OUTPUT -I../widgets -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/qt5/QtWidgets -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5 -o jackmeter.o
In file included from jackmeter.cpp:26:
In file included from ./../jack_utils.hpp:24:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/string:41:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/bits/allocator.h:46:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/x86_64-pc-linux-gnu/bits/c++allocator.h:33:
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/ext/new_allocator.h:149:11: error: missing 'typename' prior to dependent type name 'std::is_nothrow_constructible<_Up, _Args...>::value'
        noexcept(std::is_nothrow_constructible<_Up, _Args...>::value)
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/ext/new_allocator.h:148:11: error: function cannot return function type 'void (std::is_nothrow_constructible<_Up, _Args...>::value)'
        construct(_Up* __p, _Args&&... __args)
                 ^
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/ext/new_allocator.h:155:11: error: missing 'typename' prior to dependent type name 'std::is_nothrow_destructible<_Up>::value'
        noexcept(std::is_nothrow_destructible<_Up>::value)
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/g++-v10/ext/new_allocator.h:154:9: error: function cannot return function type 'void (std::is_nothrow_destructible<_Up>::value)'
        destroy(_Up* __p)
               ^
Comment 3 Larry the Git Cow gentoo-dev 2020-09-04 09:54:11 UTC
The bug has been closed via the following commit(s):

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

commit 3125f4aac8cbb2da7bd1e6f725b0a116bff77d6a
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2020-09-04 09:53:40 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2020-09-04 09:54:07 +0000

    media-sound/cadence: fixed compilation with clang++
    
    thanks Stephan Hartmann (sultan) and David Seifert (soap)
    for the fix
    
    Closes: https://bugs.gentoo.org/740330
    Package-Manager: Portage-3.0.5, Repoman-3.0.1
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 media-sound/cadence/cadence-0.9.1.ebuild                |  1 +
 media-sound/cadence/cadence-9999.ebuild                 |  4 ++++
 media-sound/cadence/files/cadence-0.9.1-fix-clang.patch | 17 +++++++++++++++++
 3 files changed, 22 insertions(+)