Yggdrasil icon indicating copy to clipboard operation
Yggdrasil copied to clipboard

[Tracy] Update to v0.11.1

Open blegat opened this issue 8 months ago • 3 comments

I am getting:

[09:54:42] /opt/bin/x86_64-linux-musl-libgfortran5-cxx11/x86_64-linux-musl-g++ --sysroot=/opt/x86_64-linux-musl/x86_64-linux-musl/sys-root/ -DIMGUI_ENABLE_FREETYPE -I/workspace/srcdir/tracy/cmake/../public/common -I/workspace/srcdir/tracy/cmake/../server -I/workspace/srcdir/tracy/profiler/build/_deps/capstone-src/include/capstone -I/workspace/srcdir/tracy/profiler/build/_deps/capstone-src/include -I/workspace/srcdir/tracy/cmake/../zstd -I/workspace/srcdir/tracy/cmake/../imgui -I/workspace/destdir/include/freetype2 -I/workspace/srcdir/tracy/cmake/../nfd -I/workspace/destdir/lib/pkgconfig/../../include/dbus-1.0 -I/workspace/destdir/lib/pkgconfig/../../lib/dbus-1.0/include -fdiagnostics-color=always -O3 -DNDEBUG -flto -fno-fat-lto-objects -std=gnu++2a -MD -MT CMakeFiles/tracy-profiler.dir/src/profiler/TracyView_Callstack.cpp.o -MF CMakeFiles/tracy-profiler.dir/src/profiler/TracyView_Callstack.cpp.o.d -o CMakeFiles/tracy-profiler.dir/src/profiler/TracyView_Callstack.cpp.o -c /workspace/srcdir/tracy/profiler/src/profiler/TracyView_Callstack.cpp
[09:54:42] /workspace/srcdir/tracy/profiler/src/main.cpp: In function ‘void DrawContents()’:
[09:54:42] /workspace/srcdir/tracy/profiler/src/main.cpp:1415:44: error: ‘lerp’ is not a member of ‘std’

I thought lerp was part of gnu++2a :thinking:

blegat avatar Apr 30 '25 08:04 blegat

I thought lerp was part of gnu++2a 🤔

According to https://www.cppreference.com/w/cpp/20.html you need GCC 9 for lerp, but this build recipe states at the end:

 requires std-c++17, full support in gcc 7+, clang 8+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6", preferred_gcc_version=v"8")

fingolfin avatar Oct 27 '25 11:10 fingolfin

Thanks for the suggestion, let's try

blegat avatar Oct 27 '25 12:10 blegat

[12:47:33] /opt/x86_64-linux-gnu/x86_64-linux-gnu/include/c++/9.1.0/pstl/parallel_backend_tbb.h:634:18: error: ‘tbb::task’ has not been declared
2025-10-27 13:47:33 CEST | [12:47:33]   634 \|             tbb::task::spawn_root_and_wait(*new (tbb::task::allocate_root()) _TaskType(
2025-10-27 13:47:33 CEST | [12:47:33]       \|                  ^~~~
2025-10-27 13:47:33 CEST | [12:47:33] /opt/x86_64-linux-gnu/x86_64-linux-gnu/include/c++/9.1.0/pstl/parallel_backend_tbb.h:634:55: error: ‘task’ is not a member of ‘tbb’; did you mean ‘tbb::detail::d1::task’?
2025-10-27 13:47:33 CEST | [12:47:33]   634 \|             tbb::task::spawn_root_and_wait(*new (tbb::task::allocate_root()) _TaskType(
2025-10-27 13:47:33 CEST | [12:47:33]       \|                                                       ^~~~

A web search brings up various hits, e.g. this: https://stackoverflow.com/questions/67923287/how-to-resolve-no-member-named-task-in-namespace-tbb-error-when-using-oned

So perhaps you should try an even newer GCC, such as 11 -- or maybe something else (I did not try hard to understand what the various web hits suggested)

fingolfin avatar Dec 07 '25 22:12 fingolfin