Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884625 - sci-visualization/kst-2.0.8-r2 - /.../algorithm: error: copy_n is not a member of std (sci-libs/gsl bug?)
Summary: sci-visualization/kst-2.0.8-r2 - /.../algorithm: error: copy_n is not a membe...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-06 21:46 UTC by Toralf Förster
Modified: 2024-05-04 16:06 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.55 KB, text/plain)
2022-12-06 21:46 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,80.76 KB, application/x-bzip)
2022-12-06 21:46 UTC, Toralf Förster
Details
environment (environment,97.80 KB, text/plain)
2022-12-06 21:46 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,705 bytes, application/x-bzip)
2022-12-06 21:46 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,47.66 KB, application/x-bzip)
2022-12-06 21:46 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.70 KB, application/x-bzip)
2022-12-06 21:46 UTC, Toralf Förster
Details
sci-visualization:kst-2.0.8-r2:20221206-201531.log.bz2 (sci-visualization:kst-2.0.8-r2:20221206-201531.log.bz2,47.06 KB, application/x-bzip)
2022-12-06 21:46 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,71.71 KB, application/x-bzip)
2022-12-06 21:46 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-12-06 21:46:31 UTC
                 from /usr/include/qt5/QtCore/qfiledevice.h:43,
                 from /usr/include/qt5/QtCore/qfile.h:44,
                 from /usr/include/qt5/QtCore/QFile:1,
                 from /var/tmp/portage/sci-visualization/kst-2.0.8-r2/work/Kst-2.0.8/src/plugins/dataobject/bin/bin.h:18,
                 from /var/tmp/portage/sci-visualization/kst-2.0.8-r2/work/Kst-2.0.8/src/plugins/dataobject/bin/bin.cpp:17:
/usr/include/gsl/algorithm: In function void gsl::copy(span<ElementType, FirstExtent>, span<DestElementType, DestExtent>):
/usr/include/gsl/algorithm:54:10: error: copy_n is not a member of std; did you mean copy?
   54 |     std::copy_n(src.data(), src.size(), dest.data());
      |          ^~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-j4-20221203-111136

  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-11
 [2] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.6
Python 3.10.8
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.17_p8 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit 91987b3c31366940194123752f36cea3c5e71653
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 6 19:46:51 2022 +0000

    2022-12-06 19:46:50 UTC

emerge -qpvO sci-visualization/kst
[ebuild  N    ] sci-visualization/kst-2.0.8-r2  USE="-debug -test"
Comment 1 Toralf Förster gentoo-dev 2022-12-06 21:46:32 UTC
Created attachment 840545 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-06 21:46:33 UTC
Created attachment 840547 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-12-06 21:46:35 UTC
Created attachment 840549 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-12-06 21:46:36 UTC
Created attachment 840551 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-12-06 21:46:37 UTC
Created attachment 840553 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-06 21:46:38 UTC
Created attachment 840555 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-12-06 21:46:39 UTC
Created attachment 840557 [details]
sci-visualization:kst-2.0.8-r2:20221206-201531.log.bz2
Comment 8 Toralf Förster gentoo-dev 2022-12-06 21:46:40 UTC
Created attachment 840559 [details]
temp.tar.bz2
Comment 9 Leonid Kopylov 2023-05-10 17:44:36 UTC
works for me:

# emerge sci-visualization/kst -pvq
[ebuild   R   ] sci-visualization/kst-2.0.8-r2  USE="-debug -test"
Comment 10 Alfred Wingate 2023-11-16 17:47:50 UTC
Reproduced. its sci-libs/gsl + dev-cpp/ms-gsl.

Build uses header location for gsl

-- Found Gsl:
--      includes : /usr/include/gsl/;/usr/include/gsl//..

But ms-gsl has installed its own header there.

$ qfile /usr/include/gsl/algorithm 
dev-cpp/ms-gsl: /usr/include/gsl/algorithm

Leading to the failure when its mistakenly preferred over the standard libraries <algorithm>.

/usr/include/gsl/algorithm: In function ‘void gsl::copy(span<ElementType, FirstExtent>, span<DestElementType, DestExtent>)’:
/usr/include/gsl/algorithm:54:10: error: ‘copy_n’ is not a member of ‘std’; did you mean ‘copy’?
   54 |     std::copy_n(src.data(), src.size(), dest.data());
      |          ^~~~~~
      |          copy