Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906581 - media-libs/opencv: ade/typed_graph.hpp:101:10: error: ‘uintptr_t’ in namespace ‘std’ does not name a type
Summary: media-libs/opencv: ade/typed_graph.hpp:101:10: error: ‘uintptr_t’ in namespac...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paul Zander
URL:
Whiteboard:
Keywords:
Depends on: 906588
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-05-16 19:20 UTC by whitleystriber
Modified: 2023-12-08 14:55 UTC (History)
2 users (show)

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


Attachments
Build.Log (build.log,130.43 KB, text/x-log)
2023-05-16 19:20 UTC, whitleystriber
Details
Emerge --info (HGHQA (1).zip,8.08 KB, application/zip)
2023-05-16 19:20 UTC, whitleystriber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description whitleystriber 2023-05-16 19:20:22 UTC
Created attachment 861813 [details]
Build.Log

I have been trying to compile OpenCV the past few weeks and was hoping the issue would resolve itself after updating GCC to 13. Here are my logs
Comment 1 whitleystriber 2023-05-16 19:20:48 UTC
Created attachment 861814 [details]
Emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-16 19:21:48 UTC
FAILED: CMakeFiles/ade.dir/3rdparty/ade/ade-0.1.1f/sources/ade/source/topological_sort.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse  -I/var/tmp/portage/media-libs/opencv-4.6.0-r4/work/opencv-4.6.0_build-abi_x86_32.x86/3rdparty/ade/ade-0.1.1f/sources/ade/include -isystem /var/tmp/portage/media-libs/opencv-4.6.0-r4/work/opencv-4.6.0_build-abi_x86_32.x86  -march=znver4 -O2 -pipe   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -flto  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mf16c -mfma -mavx -mavx512f -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -std=c++11 -fPIC -MD -MT CMakeFiles/ade.dir/3rdparty/ade/ade-0.1.1f/sources/ade/source/topological_sort.cpp.o -MF CMakeFiles/ade.dir/3rdparty/ade/ade-0.1.1f/sources/ade/source/topological_sort.cpp.o.d -o CMakeFiles/ade.dir/3rdparty/ade/ade-0.1.1f/sources/ade/source/topological_sort.cpp.o -c /var/tmp/portage/media-libs/opencv-4.6.0-r4/work/opencv-4.6.0_build-abi_x86_32.x86/3rdparty/ade/ade-0.1.1f/sources/ade/source/topological_sort.cpp
In file included from /var/tmp/portage/media-libs/opencv-4.6.0-r4/work/opencv-4.6.0_build-abi_x86_32.x86/3rdparty/ade/ade-0.1.1f/sources/ade/include/ade/passes/topological_sort.hpp:17,
                 from /var/tmp/portage/media-libs/opencv-4.6.0-r4/work/opencv-4.6.0_build-abi_x86_32.x86/3rdparty/ade/ade-0.1.1f/sources/ade/source/topological_sort.cpp:7:
/var/tmp/portage/media-libs/opencv-4.6.0-r4/work/opencv-4.6.0_build-abi_x86_32.x86/3rdparty/ade/ade-0.1.1f/sources/ade/include/ade/typed_graph.hpp:101:10: error: ‘uintptr_t’ in namespace ‘std’ does not name a type
  101 |     std::uintptr_t m_srcGraph;
      |          ^~~~~~~~~
/var/tmp/portage/media-libs/opencv-4.6.0-r4/work/opencv-4.6.0_build-abi_x86_32.x86/3rdparty/ade/ade-0.1.1f/sources/ade/include/ade/typed_graph.hpp:22:1: note: ‘std::uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   21 | #include "typed_metadata.hpp"
  +++ |+#include <cstdint>
   22 | 
[...]

I'll take a look now.
Comment 3 whitleystriber 2023-05-16 19:27:20 UTC
TYSM Sam as always.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-17 01:04:36 UTC
No problem!

I can't reproduce this w/ 4.7.0 so let's asssume it's fixed in bug 906588.

FWIW, I'd avoid using ~arch gcc w/ stable userland for now, just because not all fixes (like this one!) have yet propagated into stable. But it's ok if you're willing to hit bugs like this occasionally.
Comment 5 whitleystriber 2023-05-17 23:07:10 UTC
Got 4.7.0 pulled into my machine and compiled with no issues. Thanks sam!