Your message dated Tue, 20 May 2025 10:07:16 +0000
with message-id <e1uhjss-00a1cr...@fasolo.debian.org>
and subject line Bug#1105146: fixed in nvidia-cuda-samples 12.3~dfsg-2
has caused the Debian Bug report #1105146,
regarding nvidia-toolkit-samples fails autopkg compile tests
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1105146: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1105146
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:nvidia-toolkit-samples
Version: 12.3~dfsg-1
Severity: serious
Tags: sid trixie

seen with autopkg tests triggered by gcc-12:
https://ci.debian.net/packages/n/nvidia-cuda-samples/testing/amd64/60466757/

2003s compile-cuda-samples_cuda-g++ FAIL non-zero exit status 2
2003s compile-cuda-samples_g++-12 FAIL non-zero exit status 2

tests linking against -lfreeimage fail to link with
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libfreeimage.so: undefined reference to `std::ios_base_library_init()@GLIBCXX_3.4.32' /usr/bin/ld: /lib/x86_64-linux-gnu/libIlmThread-3_1.so.30: undefined reference to `__cxa_call_terminate@CXXABI_1.3.15'

At least for the g++-12 specific test, this is because the libstdc++.so name in the internal gcc libdir

$ ls -l /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.*
-rw-r--r-- 1 root root 6026280 3. Mai 21:10 /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.a -rw-r--r-- 1 root root 2194624 3. Mai 21:10 /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so

is now a copy of the original gcc-12 libstdc++.so.6, which obviously doesn't have symbols provided by the system-wide libstdc++.so, built from the newest GCC version available. This is intended to prevent a possible silent wrong-code issue when building packages with a legacy g++ version (link with the 12 version, run with the default version).

The work around is to link these samples with --allow-shlib-undefined. These are

$ fgrep -rl lfreeimage
Samples/4_CUDA_Libraries/boxFilterNPP/Makefile
Samples/4_CUDA_Libraries/cannyEdgeDetectorNPP/Makefile
Samples/4_CUDA_Libraries/freeImageInteropNPP/Makefile
Samples/4_CUDA_Libraries/histEqualizationNPP/Makefile
Samples/4_CUDA_Libraries/FilterBorderControlNPP/Makefile

The fix seems to be to add that flag to ALL_LDFLAGS

ALL_LDFLAGS += -Xlinker --allow-shlib-undefined

or add it to EXTRA_LDFLAGS before

EXTRA_LDFLAGS += --allow-shlib-undefined

however I don't see any use of EXTRA_LDFLAGS in these samples.


It looks like compile-cuda-samples_g++-12 and compile-cuda-samples_g++ run the same tests, both with g++-12, so failing both for the very same reason.
--- End Message ---
--- Begin Message ---
Source: nvidia-cuda-samples
Source-Version: 12.3~dfsg-2
Done: Andreas Beckmann <a...@debian.org>

We believe that the bug you reported is fixed in the latest version of
nvidia-cuda-samples, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1105...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Beckmann <a...@debian.org> (supplier of updated nvidia-cuda-samples 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 20 May 2025 11:44:14 +0200
Source: nvidia-cuda-samples
Architecture: source
Version: 12.3~dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian NVIDIA Maintainers <pkg-nvidia-de...@lists.alioth.debian.org>
Changed-By: Andreas Beckmann <a...@debian.org>
Closes: 1105146
Changes:
 nvidia-cuda-samples (12.3~dfsg-2) unstable; urgency=medium
 .
   * Fix compilation with g++-12 and libstdc++ from g++-14.  (Closes: #1105146)
   * Skip histEqualizationNPP test on CUDA > 12.3 due to
     nppiHistogramEvenGetBufferSize_8u_C1R() API change.
Checksums-Sha1:
 71321192f5172cafe63a2bc624eda5f09fdb156c 2284 
nvidia-cuda-samples_12.3~dfsg-2.dsc
 ee178baf5471a6e6ff698550736943b072e4aee7 6924 
nvidia-cuda-samples_12.3~dfsg-2.debian.tar.xz
 d3e02fbe038e8ad81a13ff3000fe4786537f05a9 5419 
nvidia-cuda-samples_12.3~dfsg-2_source.buildinfo
Checksums-Sha256:
 73e19eb3254269be66d0b85798680e3c8bb43754b875562b1872a4fff17e575f 2284 
nvidia-cuda-samples_12.3~dfsg-2.dsc
 9f80c4d2658a37c983581a57ac09e5c4dae34f0afdfdf60046a43d7a56cffb4e 6924 
nvidia-cuda-samples_12.3~dfsg-2.debian.tar.xz
 abffd02d5a3840ccb1307f2388ce43d36ac31347cc4abe71598a714ddd32fde4 5419 
nvidia-cuda-samples_12.3~dfsg-2_source.buildinfo
Files:
 89109940986eac58e6e8718476fe07da 2284 contrib/devel optional 
nvidia-cuda-samples_12.3~dfsg-2.dsc
 6d0d0ffa35cd20f7207259b25a844977 6924 contrib/devel optional 
nvidia-cuda-samples_12.3~dfsg-2.debian.tar.xz
 efcea454955b8c959ac69884d397ddff 5419 contrib/devel optional 
nvidia-cuda-samples_12.3~dfsg-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmgsUA8QHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCOe1EACD/mnNd1d0F8lumWArtc/a7OdCOO5aNIiN
TnGLP4K4DL8Q7uP1s89fK8fY5K/eEJuqdgyLvAoh1HTdj6wguKWoEKhQPQ9WxVvO
qUQbE++Qp+azPy+jLlF092r3XaQQKRUmWa4GkW6CARBQ4aBE+VMDn6HgKppv4TD4
5Fd/EEZyB9sHQ6BNDiCjaK1lXGe10yGhAo3x0SQLu9k7c1B0c5veWMN4hq12rWXT
3JaavMkLxD+8UQQYdwuCpJ15Gu0SUtozi3GA0EeJklrpg4AVE4WyNfqOS/eSP37i
xPkstWBKmgrnlshNrJvlAwDJjTdnEAeDEa51mPHnZTTEgk1Njw8vbPzpxT9rp7sN
HNUMFJ0BXIf4bAXFGRs042z1WLSY6+GvMD+ekITp1/WLsL4zTlr95x/vHJrG1UN6
O+VD3WMrnwKMZfvNWWzHw/8nyOeWNspSwcQhCteM4RahY5629+lbC00zhOG0gm+w
sILtNCbSEBmGNbcqy8zsc5SujUIRLDpqMsWoqEQ0R2RW1kHsua2YHLOPPm2jFDr2
Zt7MiCO9aaf/c60+hEoKAWT3FuHKXvNHhAMI/BGfsbkvke0xdrBVB4pP9apiyflc
vmoscTN8ARMujYeFW3G9KzWl2Yjrsj4Qma5RLZiUZwJ+2WQKCSgn3Yb4x42mp92H
030a3Lv5aw==
=lYIp
-----END PGP SIGNATURE-----

Attachment: pgp5RD9gnUqbS.pgp
Description: PGP signature


--- End Message ---

Reply via email to