g3d build fails on Manjaro Linux: TBB fails to compile

34 views
Skip to first unread message

Ricardo Lopez

unread,
Jan 12, 2025, 12:53:54 PMJan 12
to g3d-...@googlegroups.com
Hello,

I get the following error when I try to build g3d:

Screenshot_20250109_161643.png

This was the code used to download and build g3d, after setting the appropriate environment variables:
svn co --depth immediates https://svn.code.sf.net/p/g3d/code/ $g3d
svn up --set-depth immediates $g3d/data10
svn up --set-depth infinity $g3d/G3D10
svn up --set-depth infinity $g3d/data10/common
cd $g3d/G3D10
./buildg3d lib data tools

I tried building it again after downloading the full 10GB repo and I received the same error message.

I include the output of 'gcc -v' if that is useful:
Screenshot_20250109_161919.png

Any help or suggestions would be greatly appreciated.


- Ricardo

Ricardo Lopez

unread,
Jan 14, 2025, 4:34:02 PMJan 14
to G3D Users
I managed to build it successfully by commenting out the offending function in the header file task.h, at g3d/G3D10/external/tbb/include/tbb/task.h:
 Screenshot_20250114_172551.png

It compiled, but I have no idea if I'm opening myself up to UB here or anything like that. If something crashes later on I'll let you all know I guess lol

Anrich Tait

unread,
Mar 3, 2025, 12:45:51 PMMar 3
to G3D Users
Since G3D was built for older compilers the version of TBB bundled with G3D doesn't meet C++ 20 standards. You can make the compiler less strict for only TBB with the following:

cd ~/Projects/G3D/G3D10/external/tbb/
sed -i 's/CXXFLAGS += -MMD/CXXFLAGS += -MMD -fpermissive -w/' build/Makefile.gcc


You can also use an older compiler
Reply all
Reply to author
Forward
0 new messages