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: RESOLVED FIXED
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: 834692
Blocks:
  Show dependency tree
 
Reported: 2022-12-06 21:46 UTC by Toralf Förster
Modified: 2025-04-15 22:06 UTC (History)
5 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
Comment 11 Jan Henke 2025-04-15 17:37:42 UTC
A said in the blocker bug: I currently do not see myself patching every consumer of dev-cpp/ms-gsl to use an alternative include path. Both upstream projects use the same directory, so it really is an issue which both upstream would need to resolve.
Comment 12 Larry the Git Cow gentoo-dev 2025-04-15 22:06:16 UTC
The bug has been closed via the following commit(s):

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

commit dfd4fdec02bc89e05b417bc768ee249e41a10985
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2025-04-15 21:54:42 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2025-04-15 22:06:06 +0000

    sci-visualization/kst: add 2.1.0_p20250415
    
    Closes: https://bugs.gentoo.org/884625
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 sci-visualization/kst/Manifest                     |   1 +
 .../files/kst-2.1.0_p20250415-cmake-findgsl.patch  | 119 +++++++++++++++++++++
 .../kst/files/kst-2.1.0_p20250415-cmake4.patch     |  83 ++++++++++++++
 .../kst/files/kst-2.1.0_p20250415-hdf5cxx.patch    |  20 ++++
 sci-visualization/kst/kst-2.1.0_p20250415.ebuild   |  82 ++++++++++++++
 sci-visualization/kst/metadata.xml                 |   4 +-
 6 files changed, 307 insertions(+), 2 deletions(-)