bartoszek / AUR-luxcorerender-git

0 stars 1 forks source link

Build is failing #4

Closed Urs11 closed 3 years ago

Urs11 commented 4 years ago

Hi, currently, the build is failing (using yay, pamac does not work at all, ignoring the DISABLE_OPENCL=1 and still asking to choose an nvidia driver ...), clean build did not help.

build output of using DISABLE_OPENCL=1 yay -Syu


CMake Warning at src/pyluxcoretools/CMakeLists.txt:74 (message):
  pyside-uic not available - using pre-generated files from the source tree

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    LUXRAYS_DISABLE_CUDA

-- Build files have been written to: /home/urs/.cache/yay/luxcorerender-git/src/build
ninja: Entering directory `/home/urs/.cache/yay/luxcorerender-git/src/build'
[47/856] Building CXX object src/slg/CMakeFiles/slg-film.dir/film/filmimagepipelinehw.cpp.o
FAILED: src/slg/CMakeFiles/slg-film.dir/film/filmimagepipelinehw.cpp.o 
/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_FILESYSTEM_NO_DEPRECATED -DCPP_API_EXPORTS -DEIGEN_MPL2_ONLY -DLUXRAYS_DISABLE_CUDA -DLUXRAYS_DISABLE_OPENCL -D_USE_MATH_DEFINES -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/json-3.7.3/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/cuew/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/clew/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/optix-7.1.0/include -I/usr/include/python3.8 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -Igenerated/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/bcd-1.1/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/bcd-1.1/include/bcd/core -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/eigen-3.3.4 -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/lut -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/openvdb-7.0.0 -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/opensubdiv-3.4.0 -isystem /usr/include/OpenEXR -std=c++11 -Wall -Wno-long-long -pedantic -msse -msse2 -msse3 -mssse3 -fPIC -fopenmp   -DOPENVDB_USE_BLOSC -DOPENVDB_STATICLIB -DOPENVDB_OPENEXR_STATICLIB -MD -MT src/slg/CMakeFiles/slg-film.dir/film/filmimagepipelinehw.cpp.o -MF src/slg/CMakeFiles/slg-film.dir/film/filmimagepipelinehw.cpp.o.d -o src/slg/CMakeFiles/slg-film.dir/film/filmimagepipelinehw.cpp.o -c /home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/filmimagepipelinehw.cpp
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/filmimagepipelinehw.cpp: In member function ‘void slg::Film::CreateHWContext()’:
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/filmimagepipelinehw.cpp:100:4: error: ‘CUDADeviceDescription’ was not declared in this scope
  100 |    CUDADeviceDescription *cudaDeviceDesc = (CUDADeviceDescription *)selectedDeviceDesc;
      |    ^~~~~~~~~~~~~~~~~~~~~
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/filmimagepipelinehw.cpp:100:27: error: ‘cudaDeviceDesc’ was not declared in this scope
  100 |    CUDADeviceDescription *cudaDeviceDesc = (CUDADeviceDescription *)selectedDeviceDesc;
      |                           ^~~~~~~~~~~~~~
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/filmimagepipelinehw.cpp:100:68: error: expected primary-expression before ‘)’ token
  100 |    CUDADeviceDescription *cudaDeviceDesc = (CUDADeviceDescription *)selectedDeviceDesc;
      |                                                                    ^
[56/856] Building CXX object src/slg/CMakeFiles/slg-film.dir/film/film.cpp.o
FAILED: src/slg/CMakeFiles/slg-film.dir/film/film.cpp.o 
/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_FILESYSTEM_NO_DEPRECATED -DCPP_API_EXPORTS -DEIGEN_MPL2_ONLY -DLUXRAYS_DISABLE_CUDA -DLUXRAYS_DISABLE_OPENCL -D_USE_MATH_DEFINES -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/json-3.7.3/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/cuew/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/clew/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/optix-7.1.0/include -I/usr/include/python3.8 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -Igenerated/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/bcd-1.1/include -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/bcd-1.1/include/bcd/core -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/eigen-3.3.4 -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/lut -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/openvdb-7.0.0 -I/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/deps/opensubdiv-3.4.0 -isystem /usr/include/OpenEXR -std=c++11 -Wall -Wno-long-long -pedantic -msse -msse2 -msse3 -mssse3 -fPIC -fopenmp   -DOPENVDB_USE_BLOSC -DOPENVDB_STATICLIB -DOPENVDB_OPENEXR_STATICLIB -MD -MT src/slg/CMakeFiles/slg-film.dir/film/film.cpp.o -MF src/slg/CMakeFiles/slg-film.dir/film/film.cpp.o.d -o src/slg/CMakeFiles/slg-film.dir/film/film.cpp.o -c /home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp: In destructor ‘slg::Film::~Film()’:
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp:200:3: warning: possible problem detected in invocation of ‘operator delete’ [-Wdelete-incomplete]
  200 |   delete ip;
      |   ^~~~~~~~~
In file included from /home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp:24:
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp:199:31: warning: ‘ip’ has incomplete type
  199 |  BOOST_FOREACH(ImagePipeline *ip, imagePipelines)
      |                               ^~
In file included from /home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp:26:
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/include/slg/film/film.h:100:7: note: forward declaration of ‘class slg::ImagePipeline’
  100 | class ImagePipeline;
      |       ^~~~~~~~~~~~~
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp:200:3: note: neither the destructor nor the class-specific ‘operator delete’ will be called, even if they are declared when the class is defined
  200 |   delete ip;
      |   ^~~~~~~~~
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp: In member function ‘void slg::Film::CopyDynamicSettings(const slg::Film&)’:
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp:226:30: error: invalid use of incomplete type ‘class slg::ImagePipeline’
  226 |   imagePipelines.push_back(ip->Copy());
      |                              ^~
In file included from /home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp:26:
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/include/slg/film/film.h:100:7: note: forward declaration of ‘class slg::ImagePipeline’
  100 | class ImagePipeline;
      |       ^~~~~~~~~~~~~
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp: In member function ‘void slg::Film::Resize(u_int, u_int)’:
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp:353:5: error: invalid use of incomplete type ‘class slg::ImagePipeline’
  353 |   ip->SetRadianceGroupCount(radianceGroupCount);
      |     ^~
In file included from /home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/src/slg/film/film.cpp:26:
/home/urs/.cache/yay/luxcorerender-git/src/luxcorerender/include/slg/film/film.h:100:7: note: forward declaration of ‘class slg::ImagePipeline’
  100 | class ImagePipeline;
      |       ^~~~~~~~~~~~~
[63/856] Building CXX object src/slg/CMakeFiles/slg-film.dir/film/filmserialize.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error making: luxcorerender-git```
bartoszek commented 3 years ago

Should be fixed in https://github.com/LuxCoreRender/LuxCore/commit/55b64c719a14957c40019bd51ded3ee4931e588d Does the problem still persists, or could we close the issue?

bartoszek commented 3 years ago

The same issue was raised in https://github.com/bartoszek/AUR-luxcorerender/issues/3 Will close this issue assuming it's solved.