Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 840149 - dev-util/rocm-smi-5.0.2 - /.../rocm_smi_gpu_metrics.cc: error: memset was not declared in this scope
Summary: dev-util/rocm-smi-5.0.2 - /.../rocm_smi_gpu_metrics.cc: error: memset was not...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-04-22 12:24 UTC by Toralf Förster
Modified: 2022-06-10 10:29 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.88 KB, text/plain)
2022-04-22 12:24 UTC, Toralf Förster
Details
dev-util:rocm-smi-5.0.2:20220422-040930.log (dev-util:rocm-smi-5.0.2:20220422-040930.log,22.64 KB, text/plain)
2022-04-22 12:24 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,90.12 KB, text/plain)
2022-04-22 12:24 UTC, Toralf Förster
Details
environment (environment,125.90 KB, text/plain)
2022-04-22 12:25 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,6.59 KB, application/x-bzip)
2022-04-22 12:25 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.65 KB, application/x-bzip)
2022-04-22 12:25 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,30.44 KB, application/x-bzip)
2022-04-22 12:25 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-04-22 12:24:55 UTC
too long lines were shrinked:

[8/33] /usr/bin/x86_64-pc-linux-gnu-g++ -Drocm_smi64_EXPORTS -I/var/tmp/portage/dev-util/rocm-smi-5.0.2/work/rocm_smi_lib-rocm-5.0.2/include -I/var/tmp/portage/dev-util/rocm-smi-5.0.2/work/rocm_smi_lib-rocm-5.0.2/third_party/shared_mutex -I/var/tmp/portage/dev-util/rocm-smi-5.0.2/work/rocm_smi_lib-r
FAILED: rocm_smi/CMakeFiles/rocm_smi64.dir/__/src/rocm_smi_gpu_metrics.cc.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -Drocm_smi64_EXPORTS -I/var/tmp/portage/dev-util/rocm-smi-5.0.2/work/rocm_smi_lib-rocm-5.0.2/include -I/var/tmp/portage/dev-util/rocm-smi-5.0.2/work/rocm_smi_lib-rocm-5.0.2/third_party/shared_mutex -I/var/tmp/portage/dev-util/rocm-smi-5.0.2/work/rocm_smi_lib-rocm-5.0
/var/tmp/portage/dev-util/rocm-smi-5.0.2/work/rocm_smi_lib-rocm-5.0.2/src/rocm_smi_gpu_metrics.cc: In function rsmi_status_t GetGPUMetricsFormat1(uint32_t, rsmi_gpu_metrics_t*, uint8_t)’:
/var/tmp/portage/dev-util/rocm-smi-5.0.2/work/rocm_smi_lib-rocm-5.0.2/src/rocm_smi_gpu_metrics.cc:225:11: error: memset’ was not declared in this scope
  225 |     (void)memset(data->temperature_hbm, 0,
      |           ^~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j4_test-20220420-221025

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.0.1 *
clang/llvm (if any):
clang version 14.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.1
Python 3.9.12
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.60.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
Available Java Virtual Machines:
  [1]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *

  HEAD of ::gentoo
commit e3dd37cf233a21f7d8dcf106acbdc6a9e5e37d9f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Apr 22 03:04:19 2022 +0000

    2022-04-22 03:04:19 UTC

emerge -qpvO dev-util/rocm-smi
[ebuild  N    ] dev-util/rocm-smi-5.0.2  PYTHON_TARGETS="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2022-04-22 12:24:56 UTC
Created attachment 773030 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-04-22 12:24:57 UTC
Created attachment 773033 [details]
dev-util:rocm-smi-5.0.2:20220422-040930.log
Comment 3 Toralf Förster gentoo-dev 2022-04-22 12:24:59 UTC
Created attachment 773036 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-04-22 12:25:00 UTC
Created attachment 773039 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-04-22 12:25:01 UTC
Created attachment 773042 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-04-22 12:25:02 UTC
Created attachment 773045 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-04-22 12:25:03 UTC
Created attachment 773048 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-06-10 10:28:40 UTC
The bug has been closed via the following commit(s):

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

commit 9b15e9df8e00f31a1fbdd5938a495d21fb8bb120
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-10 10:24:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-10 10:28:34 +0000

    dev-util/rocm-smi: fix build with GCC 12
    
    Closes: https://bugs.gentoo.org/840149
    Signed-off-by: Sam James <sam@gentoo.org>

 .../rocm-smi/files/rocm-smi-5.0.2-gcc12-memcpy.patch  | 19 +++++++++++++++++++
 dev-util/rocm-smi/rocm-smi-5.0.2.ebuild               |  4 ++++
 2 files changed, 23 insertions(+)