Page 1 of 1

unable to compile luxcore on Ubuntu 21.10

Posted: Sat Jan 29, 2022 1:21 pm
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

Re: unable to compile luxcore on Ubuntu 21.10

Posted: Tue Oct 18, 2022 6:03 pm
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.

Re: unable to compile luxcore on Ubuntu 21.10

Posted: Fri Dec 02, 2022 9:01 pm
by joc
Same issue on Tumbleweed...