Skip to content

Build on linux failing, unless this change is made. #15

@nevertrimnuts

Description

@nevertrimnuts

Setup info:
* OS: Void Linux, Linux 6.12.54_1

When running the tracy server build instructions in the README.md:

cd tracy/profiler/build/unix
make release LEGACY=1

At some point I get the C++ error:

g++ -c -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/capstone -I../../../imgui -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -O3 -flto -s -march=native -std=c++17 -DNDEBUG -DIMGUI_ENABLE_FREETYPE ../../../server/TracyView_Compare.cpp -o obj/release/o/o/o/../../../server/TracyView_Compare.o
In file included from ../../../server/../dtl/dtl.hpp:44,
                 from ../../../server/TracyView_Compare.cpp:4:
../../../server/../dtl/Diff.hpp: In member function 'void dtl::Diff<elem, sequence, comparator>::enableTrivial() const':
../../../server/../dtl/Diff.hpp:168:27: error: assignment of member 'trivial' in read-only object
  168 |             this->trivial = true;
      |             ~~~~~~~~~~~~~~^~~~~~
make[1]: *** [../../../common/unix.mk:30: obj/release/o/o/o/../../../server/TracyView_Compare.o] Error 1
make[1]: Leaving directory '/home/chris/software/odin-tracy/tracy/profiler/build/unix'
make: *** [Makefile:11: release] Error 2

This is because the tracy submodule that this project uses is on tags/v0.10, which has this issue.

Fixing this is trivial:
You just go to odin-tracy/tracy/dtl/Diff.hpp, and replace line 167 with the following:

        void enableTrivial () {

I am making this issue instead of a pull request because I don't know exactly what would be the "best" way to fix this with this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions