unable to compile luxcore on Ubuntu 21.10

Discussion related to the LuxCore functionality, implementations and API.
Post Reply
drsp
Posts: 13
Joined: Mon Oct 26, 2020 9:11 am

unable to compile luxcore on Ubuntu 21.10

Post by drsp »

Hi,

I've been trying to clone Luxcore/LinuxCompile from github and compile Luxcore locally.
When running ./first_run.sh it stops at error when compiling boost:

Code: Select all

gcc.compile.c++ bin.v2/libs/thread/build/gcc-11/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/thread.o
In file included from /usr/include/pthread.h:33,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/gthr.h:148,
                 from /usr/include/c++/11/ext/atomicity.h:35,
                 from /usr/include/c++/11/bits/basic_string.h:39,
                 from /usr/include/c++/11/string:55,
                 from ./boost/thread/exceptions.hpp:20,
                 from ./boost/thread/pthread/thread_data.hpp:10,
                 from ./boost/thread/thread_only.hpp:17,
                 from libs/thread/src/pthread/thread.cpp:11:
./boost/thread/pthread/thread_data.hpp:60:5: error: missing binary operator before token "("
   60 | #if PTHREAD_STACK_MIN > 0
      |     ^~~~~~~~~~~~~~~~~

    "g++"   -fvisibility-inlines-hidden -m64 -pthread -O3 -finline-functions -Wno-inline -Wall -fvisibility=hidden -Wextra -Wno-long-long -Wno-unused-parameter -Wunused-function -pedantic -w -mtune=generic -mno-ssse3 -mmmx -msse -msse2 -O2 -pipe -mfpmath=sse -fPIC -w -mtune=generic -mno-ssse3 -mmmx -msse -msse2 -O2 -pipe -mfpmath=sse -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG  -I"." -c -o "bin.v2/libs/thread/build/gcc-11/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/thread.o" "libs/thread/src/pthread/thread.cpp"

...failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-11/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/thread.o...
gcc.compile.c++ bin.v2/libs/locale/build/gcc-11/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/shared/generator.o
gcc.compile.c++ bin.v2/libs/locale/build/gcc-11/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/shared/localization_backend.o
gcc.compile.c++ bin.v2/libs/locale/build/gcc-11/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/shared/mo_lambda.o
gcc.compile.c++ bin.v2/libs/locale/build/gcc-11/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/shared/message.o
...failed updating 1 target...
...updated 15408 targets...
 !!! Boost compilation failed
Could you please give any hint, what I need to set up differently?

Thanks
Silverlan
Posts: 7
Joined: Tue Feb 09, 2021 7:54 am

Re: unable to compile luxcore on Ubuntu 21.10

Post by Silverlan »

I'm having this exact issue when trying to compile LuxCoreRender on a Github Action Runner with Ubuntu 22.04.
I tried running the exact commands from the wiki:

Code: Select all

sudo apt install git
git clone https://github.com/LuxCoreRender/LinuxCompile.git
cd LinuxCompile
./first_run.sh
I've attached the entire build log to this post, any help would be much appreciated.
Attachments
luxcore_log.zip
(109.86 KiB) Downloaded 619 times
joc
Posts: 3
Joined: Sun May 13, 2018 5:50 pm

Re: unable to compile luxcore on Ubuntu 21.10

Post by joc »

Same issue on Tumbleweed...
Post Reply