Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 789348 - media-gfx/krita-4.4.3[vc] w/ dev-libs/vc-1.4.1: /usr/include/Vc/common/simdarray.h:1386:33: error: ‘numeric_limits’ in namespace ‘std’ does not name a template type
Summary: media-gfx/krita-4.4.3[vc] w/ dev-libs/vc-1.4.1: /usr/include/Vc/common/simdar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Guilherme Amadio
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-05-10 17:03 UTC by Bernd
Modified: 2021-05-25 14:12 UTC (History)
2 users (show)

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


Attachments
krita-4.4.3:20210510-163813.log (krita-4.4.3:20210510-163813.log,679.16 KB, text/plain)
2021-05-10 17:04 UTC, Bernd
Details
emerge-info-krita-4.4.3.txt (emerge-info-krita-4.4.3.txt,14.52 KB, text/plain)
2021-05-10 17:05 UTC, Bernd
Details
build.log (krita-build.log,702.46 KB, text/x-log)
2021-05-14 10:47 UTC, Andrea Postiglione
Details
emerge --info krita (krita-info.log,7.89 KB, text/x-log)
2021-05-14 10:47 UTC, Andrea Postiglione
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2021-05-10 17:03:13 UTC
Possibly gcc-11 related?

A boost and libheif update triggered rebuild causes this error. Last merge was using gcc-10.2.0.

FAILED: libs/pigment/CMakeFiles/kritapigment.dir/KoAlphaMaskApplicatorFactoryImpl_Scalar.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_NO_LIB -DHAVE_X11 -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x50900 -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_XML_LIB -DTRANSLATION_DOMAIN=\"krita\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dkritapigment_EXPORTS -DVc_IMPL=Scalar -Ilibs/pigment -I/var/tmp/portage/media-gfx/krita-4.4.3/work/krita-4.4.3/libs/pigment -Ilibs/pigment/kritapigment_autogen/include -I/var/tmp/portage/media-gfx/krita-4.4.3/work/krita-4.4.3/interfaces -I. -I/var/tmp/portage/media-gfx/krita-4.4.3/work/krita-4.4.3 -I/var/tmp/portage/media-gfx/krita-4.4.3/work/krita-4.4.3/libs/pigment/resources -I/var/tmp/portage/media-gfx/krita-4.4.3/work/krita-4.4.3/libs/pigment/compositeops -Ilibs/koplugin -I/var/tmp/portage/media-gfx/krita-4.4.3/work/krita-4.4.3/libs/koplugin -Ilibs/store -I/var/tmp/portage/media-gfx/krita-4.4.3/work/krita-4.4.3/libs/store -Ilibs/global -I/var/tmp/portage/media-gfx/krita-4.4.3/work/krita-4.4.3/libs/global -Ilibs/version -I/var/tmp/portage/media-gfx/krita-4.4.3/work/krita-4.4.3/libs/version -isystem /usr/include/OpenEXR -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtXml -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5 -isystem /usr/include/KF5/KConfigCore  -DQT_NO_DEBUG -O2 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check -fno-operator-names -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always  -fext-numeric-literals -fexceptions -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-suggest-override -Wextra -Wno-class-memaccess -fPIC -std=gnu++14  -fabi-version=0 -ffp-contract=fast -fPIC -MD -MT libs/pigment/CMakeFiles/kritapigment.dir/KoAlphaMaskApplicatorFactoryImpl_Scalar.cpp.o -MF libs/pigment/CMakeFiles/kritapigment.dir/KoAlphaMaskApplicatorFactoryImpl_Scalar.cpp.o.d -o libs/pigment/CMakeFiles/kritapigment.dir/KoAlphaMaskApplicatorFactoryImpl_Scalar.cpp.o -c libs/pigment/KoAlphaMaskApplicatorFactoryImpl_Scalar.cpp
In file included from /usr/include/Vc/common/operators.h:30,
                 from /usr/include/Vc/vector.h:186,
                 from /usr/include/Vc/Vc:30,
                 from /var/tmp/portage/media-gfx/krita-4.4.3/work/krita-4.4.3/libs/pigment/compositeops/KoVcMultiArchBuildSupport.h:
39,
                 from /var/tmp/portage/media-gfx/krita-4.4.3/work/krita-4.4.3/libs/pigment/KoAlphaMaskApplicatorFactoryImpl.h:22,
                 from libs/pigment/KoAlphaMaskApplicatorFactoryImpl_Scalar.cpp:19:
/usr/include/Vc/common/simdarray.h: In member function ‘Vc_1::fixed_size_simd<T, N> Vc_1::SimdArray<T, N, V, Wt>::sortedImpl(std::false_type) const’:
/usr/include/Vc/common/simdarray.h:1386:33: error: ‘numeric_limits’ in namespace ‘std’ does not name a template type
 1386 |             using limits = std::numeric_limits<value_type>;
      |                                 ^~~~~~~~~~~~~~
/usr/include/Vc/common/simdarray.h:1387:17: error: ‘limits’ has not been declared
 1387 |             if (limits::has_infinity) {
      |                 ^~~~~~
/usr/include/Vc/common/simdarray.h:1388:31: error: ‘limits’ has not been declared
 1388 |                 sortable[i] = limits::infinity();
      |                               ^~~~~~
/usr/include/Vc/common/simdarray.h:1390:36: error: ‘numeric_limits’ is not a member of ‘std’
 1390 |                 sortable[i] = std::numeric_limits<value_type>::max();
      |                                    ^~~~~~~~~~~~~~
/usr/include/Vc/common/simdarray.h:1390:61: error: expected primary-expression before ‘>’ token
 1390 |                 sortable[i] = std::numeric_limits<value_type>::max();
      |                                                             ^
/usr/include/Vc/common/simdarray.h:1390:64: error: ‘::max’ has not been declared
 1390 |                 sortable[i] = std::numeric_limits<value_type>::max();
      |                                                                ^~~


I tried rebuilding dev-libs/vc, which didn't help.

With USE="-vc" the build continues beyond the point of failure and using gcc-10.2.0 also builds the file.

Reproducible: Always

Steps to Reproduce:
1. USE="vc" emerge =krita-4.4.3
2.
3.



emerge --info attached due to comment size restriction
Comment 1 Bernd 2021-05-10 17:04:55 UTC
Created attachment 706818 [details]
krita-4.4.3:20210510-163813.log

build log
Comment 2 Bernd 2021-05-10 17:05:18 UTC
Created attachment 706821 [details]
emerge-info-krita-4.4.3.txt

output of emerge --info krita
Comment 3 Andrea Postiglione 2021-05-14 10:46:54 UTC
same situation, I attach build.log and emerge --info
Comment 4 Andrea Postiglione 2021-05-14 10:47:25 UTC
Created attachment 708453 [details]
build.log

build.log
Comment 5 Andrea Postiglione 2021-05-14 10:47:52 UTC
Created attachment 708456 [details]
emerge --info krita

emerge --info
Comment 6 Andrea Postiglione 2021-05-18 11:43:36 UTC
krita 4.4.4 is released
https://github.com/KDE/krita/releases
Comment 7 Andreas Sturmlechner gentoo-dev 2021-05-20 21:55:43 UTC
Error has nothing to do with krita, is in dev-libs/vc headers.

(In reply to Andrea Postiglione from comment #6)
> krita 4.4.4 is released
> https://github.com/KDE/krita/releases
No it wasn't.
Comment 8 Guilherme Amadio gentoo-dev 2021-05-25 14:05:10 UTC
This is a bug in Vc, a missing include which causes compilation to fail with GCC 11. It has been fixed upstream (see https://github.com/VcDevel/Vc/pull/275) and a new release/tag is in the works, but since I don't know when it will come out, I think I will add the patch to Gentoo to fix this.
Comment 9 Larry the Git Cow gentoo-dev 2021-05-25 14:12:02 UTC
The bug has been closed via the following commit(s):

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

commit ba50097861ac4cac9ec20da7977258656cb94868
Author:     Guilherme Amadio <amadio@gentoo.org>
AuthorDate: 2021-05-25 14:11:03 +0000
Commit:     Guilherme Amadio <amadio@gentoo.org>
CommitDate: 2021-05-25 14:11:37 +0000

    dev-libs/vc: add missing include, bug 789348
    
    Closes: https://bugs.gentoo.org/789348
    Package-Manager: Portage-3.0.19, Repoman-3.0.3
    Signed-off-by: Guilherme Amadio <amadio@gentoo.org>

 dev-libs/vc/files/vc-1.4.1-missing-include.patch    | 16 ++++++++++++++++
 dev-libs/vc/{vc-1.4.1.ebuild => vc-1.4.1-r1.ebuild} |  2 ++
 2 files changed, 18 insertions(+)