Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937993 - media-sound/audacity-3.4.2-r1 fails compile with gcc-15: error: ‘uint64_t’ does not name a type
Summary: media-sound/audacity-3.4.2-r1 fails compile with gcc-15: error: ‘uint64_t’ do...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting gcc-15
  Show dependency tree
 
Reported: 2024-08-15 22:54 UTC by tdr
Modified: 2025-01-29 21:25 UTC (History)
3 users (show)

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


Attachments
#include <cstdint> (audacity-sources-3.4.2-cstdint.patch,2.06 KB, patch)
2024-08-15 22:55 UTC, tdr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-08-15 22:54:00 UTC
missing cstdint include for 4 files:

MemoryX.cpp EffectInterface.h MultipartData.cpp UploadService.h

Reproducible: Always

Steps to Reproduce:
select gcc:15
emerge -va1 =media-sound/audacity-3.4.2-r1 
Actual Results:  
FAILED: libraries/lib-utility/CMakeFiles/lib-utility.dir/MemoryX.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DEXPERIMENTAL_CRASH_REPORT -DEXPERIMENTAL_DRAGGABLE_PLAY_HEAD -DEXPERIMENTAL_FULL_WASAPI -DEXPERIMENTAL_HALF_WAVE -DEXPERIMENTAL_KEY_VIEW -DEXPERIMENTAL_MIDI_OUT -DEXPERIMENTAL_MODULE_PREFS -DEXPERIMENTAL_NOISE_REDUCTION -DEXPERIMENTAL_NOTETRACK_OVERLAY -DEXPERIMENTAL_NYQUIST_SPLIT_CONTROL -DEXPERIMENTAL_PUNCH_AND_ROLL -DEXPERIMENTAL_SCIENCE_FILTERS -DEXPERIMENTAL_SCROLLING_LIMITS -DEXPERIMENTAL_SCRUBBING_SCROLL_WHEEL -DEXPERIMENTAL_SCRUBBING_SUPPORT -DEXPERIMENTAL_SPECTRAL_EDITING -DEXPERIMENTAL_THEMING -DEXPERIMENTAL_TWO_TONE_TIME_RULER -DEXPERIMENTAL_ZOOM_TOGGLE_BUTTON -DUTILITY_API="" -D_WX_APP_H_BASE_ -D_WX_BRUSH_H_BASE_ -D_WX_COLOUR_H_BASE_ -D_WX_EVTLOOP_H_ -D_WX_IMAGE_H -D_WX_PEN_H_BASE_ -Dlib_utility_EXPORTS -DwxUSE_GUI=0 -I/var/tmp/portage/media-sound/audacity-3.4.2-r1/work/audacity-sources-3.4.2/libraries/lib-utility  -DNDEBUG -march=native -O3 -flto=jobserver -mprefer-vector-width=512 -fno-vect-cost-model -pipe -std=gnu++17 -fPIC -include /var/tmp/portage/media-sound/audacity-3.4.2-r1/work/audacity-sources-3.4.2_build/src/private/configunix.h -DAUDACITY_VERSION=3 -DAUDACITY_RELEASE=4 -DAUDACITY_REVISION=2 -DAUDACITY_MODLEVEL=0 -DAUDACITY_VERSION_STRING=L\"3.4.2\" -DAUDACITY_FILE_VERSION=L\"3,4,2,0\" -Dsafenew=new -DWXINTL_NO_GETTEXT_MACRO -U_DEBUG -DIS_RELEASE -MD -MT libraries/lib-utility/CMakeFiles/lib-utility.dir/MemoryX.cpp.o -MF libraries/lib-utility/CMakeFiles/lib-utility.dir/MemoryX.cpp.o.d -o libraries/lib-utility/CMakeFiles/lib-utility.dir/MemoryX.cpp.o -c /var/tmp/portage/media-sound/audacity-3.4.2-r1/work/audacity-sources-3.4.2/libraries/lib-utility/MemoryX.cpp
/var/tmp/portage/media-sound/audacity-3.4.2-r1/work/audacity-sources-3.4.2/libraries/lib-utility/MemoryX.cpp: In static member function ‘static void* NonInterferingBase::operator new(std::size_t, std::align_val_t)’:
/var/tmp/portage/media-sound/audacity-3.4.2-r1/work/audacity-sources-3.4.2/libraries/lib-utility/MemoryX.cpp:34:36: error: ‘uintptr_t’ does not name a type
   34 |    auto integer = reinterpret_cast<uintptr_t>(ptr);
      |                                    ^~~~~~~~~
/var/tmp/portage/media-sound/audacity-3.4.2-r1/work/audacity-sources-3.4.2/libraries/lib-utility/MemoryX.cpp:12:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   11 | #include "MemoryX.h"
  +++ |+#include <cstdint>
   12 |

3 similar errors
Comment 1 tdr 2024-08-15 22:55:13 UTC
Created attachment 900236 [details, diff]
#include <cstdint>
Comment 2 tdr 2024-08-16 20:19:33 UTC
Closed #7104 as completed via #7106.
Comment 3 tdr 2025-01-29 21:13:43 UTC
This is still an issue for media-sound/audacity-3.4.2-r1, so patch should maybe be worked into the ebuild for this version or will become a problem with gcc:15 becomes keyword.

For, newer 3.7.1 the cstdint patching was worked into upstream.
Comment 4 tdr 2025-01-29 21:25:48 UTC
This version also requires gnu17 env so block c23-porting
    CFLAGS="${CFLAGS} -std=gnu17"