VK-GL-CTS
VK-GL-CTS copied to clipboard
Debug build fails to build on Linux 64 bit (Ubuntu 20.04)
When I build for Linux 64 bit on Ubuntu 20.04 using:
cmake
I get this error:
[ 85%] Building CXX object modules/gles31/CMakeFiles/deqp-gles31-package.dir/tes31TestPackage.cpp.o
/usr/bin/ld: libdeqp-egl-package.a(teglRenderTests.cpp.o): in function deqp::egl::(anonymous namespace)::renderReference(tcu::PixelBufferAccess const&, std::vector<deqp::egl::(anonymous namespace)::DrawPrimitiveOp, std::allocator<deqp::egl::(anonymous namespace)::DrawPrimitiveOp> > const&, tcu::PixelFormat const&, int, int, int, int)': /home/johnward/Projects/VK-GL-CTS/modules/egl/teglRenderTests.cpp:428: undefined reference to
rr::Renderer::Renderer()'
/usr/bin/ld: /home/johnward/Projects/VK-GL-CTS/modules/egl/teglRenderTests.cpp:460: undefined reference to rr::RenderTarget::RenderTarget(rr::MultisamplePixelBufferAccess const&, rr::MultisamplePixelBufferAccess const&, rr::MultisamplePixelBufferAccess const&)' /usr/bin/ld: /home/johnward/Projects/VK-GL-CTS/modules/egl/teglRenderTests.cpp:480: undefined reference to
rr::PrimitiveList::PrimitiveList(rr::PrimitiveType, int, int)'
/usr/bin/ld: /home/johnward/Projects/VK-GL-CTS/modules/egl/teglRenderTests.cpp:473: undefined reference to rr::Renderer::draw(rr::DrawCommand const&) const' /usr/bin/ld: /home/johnward/Projects/VK-GL-CTS/modules/egl/teglRenderTests.cpp:428: undefined reference to
rr::Renderer::~Renderer()'
/usr/bin/ld: /home/johnward/Projects/VK-GL-CTS/modules/egl/teglRenderTests.cpp:428: undefined reference to `rr::Renderer::~Renderer()'
collect2: error: ld returned 1 exit status
make[2]: *** [modules/egl/CMakeFiles/deqp-egl.dir/build.make:139: modules/egl/deqp-egl] Error 1
make[1]: *** [CMakeFiles/Makefile2:6422: modules/egl/CMakeFiles/deqp-egl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 85%] Linking CXX static library libdeqp-gles31-package.a
The release build builds fine.
Can you post the output of the cmake command? I can't reproduce this error.
johnward@johnward-XPS-13-9370:~/Projects/VK-GL-CTS$ cmake . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -- DE_OS = DE_OS_UNIX -- DE_COMPILER = DE_COMPILER_GCC -- DE_CPU = DE_CPU_X86_64 -- DE_PTR_SIZE = 8 -- DE_DEBUG = 1 *** Default target -- glslang found -- Google Mock was not found - tests based on that will not build -- spirv-tools not linked - illegal SPIRV may be generated for HLSL -- spirv-tools found -- Using python3 -- Amber enable SPIRV-Tools: FALSE -- Amber enable Shaderc: FALSE -- Amber enable tests: FALSE -- Amber enable samples: FALSE -- Amber enable lodepng: TRUE -- Amber enable SwiftShader: OFF -- Amber enable DXC: FALSE -- Amber enable Clspv: FALSE -- Amber enable RTTI: TRUE -- Could NOT find Dawn (missing: Dawn_INCLUDE_DIR Dawn_GEN_INCLUDE_DIR Dawn_LIBRARY Dawn_native_LIBRARY) -- Amber: Did not find Dawn -- Amber: Checking for CTS Vulkan header -- Amber: Using Vulkan header dir /home/johnward/Projects/VK-GL-CTS/external/amber/../vulkancts/framework/vulkan/ -- DEQP_TARGET_NAME = Default -- DEQP_SUPPORT_GLES1 = OFF -- DEQP_GLES1_LIBRARIES = -- DEQP_GLES2_LIBRARIES = /usr/lib/x86_64-linux-gnu/libGLESv2.so -- DEQP_GLES3_LIBRARIES = /usr/lib/x86_64-linux-gnu/libGLESv2.so -- DEQP_GLES31_LIBRARIES = -- DEQP_GLES32_LIBRARIES = -- DEQP_SUPPORT_VG = OFF -- DEQP_VG_LIBRARIES = -- DEQP_EGL_LIBRARIES = /usr/lib/x86_64-linux-gnu/libEGL.so -- DEQP_PLATFORM_LIBRARIES = /usr/lib/x86_64-linux-gnu/libwayland-client.so;/usr/lib/x86_64-linux-gnu/libwayland-server.so;/usr/lib/x86_64-linux-gnu/libwayland-egl.so;/usr/lib/x86_64-linux-gnu/libwayland-cursor.so -- DEQP_SUPPORT_GLX = ON -- DEQP_GTF_AVAILABLE = OFF -- GLCTS_GTF_SUPPORT_OPENGL = -- GLCTS_GTF_SUPPORT_GLES32 = -- GLCTS_GTF_SUPPORT_GLES31 = -- GLCTS_GTF_SUPPORT_GLES3 = -- GLCTS_GTF_SUPPORT_GLES2 = -- Configuring done -- Generating done -- Build files have been written to: /home/johnward/Projects/VK-GL-CTS
I will do a fresh check out again early next week, and try this again. thanks