Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 917539

Summary: media-sound/supercollider-3.13.0 fails to build with gcc13 missing uint32_t
Product: Gentoo Linux Reporter: Kfir Ozer <kfirufk>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build log
uint32_t bug fix

Description Kfir Ozer 2023-11-18 03:28:51 UTC
Hi, i noticed that supercollider failed to build on gcc-13.2.1
actually it also failed to build on gcc-12 with a different linker related error but i did a fix to gcc-13 who had a different kind of error regarding missing uint_32_t.







Reproducible: Always

Steps to Reproduce:
emerge supercollider
Actual Results:  
/var/tmp/portage/media-sound/supercollider-3.13.0/work/SuperCollider-3.13.0-Source/common/SC_PaUtils.cpp:130:21: error: ‘uint32_t’ was not declared in this scope
  130 |                 if (uint32_t(inSR) != uint32_t(outSR)) {
      |                     ^~~~~~~~
/var/tmp/portage/media-sound/supercollider-3.13.0/work/SuperCollider-3.13.0-Source/common/SC_PaUtils.cpp:6:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 
    5 | #include <cstdio>
  +++ |+#include <cstdint>
    6 | 


Expected Results:  
to compile

so literally just adding the include to cstdint in common/SC_PaUtils.cpp resolves the issue and the rest of the app compiles properly.
Comment 1 Kfir Ozer 2023-11-18 03:29:09 UTC
Created attachment 875035 [details]
emerge --info
Comment 2 Kfir Ozer 2023-11-18 03:29:49 UTC
Created attachment 875036 [details]
build log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-18 03:33:16 UTC
dupe of bug 905127, I think.

*** This bug has been marked as a duplicate of bug 905127 ***
Comment 4 Kfir Ozer 2023-11-18 04:26:00 UTC
Created attachment 875037 [details, diff]
uint32_t bug fix

adds include to cstdint to fix missing uint32_t.
Comment 5 Kfir Ozer 2023-11-18 04:46:52 UTC
oh sorry yeah it's a duplicate, attached the fix to the other bug as well.