32bit vkbasalt build error on step 57
keka-meka opened this issue · 1 comments
keka-meka commented
Hi, I have been having problems building a 32 bit vkbasalt lately, at step 57 it gives an error. What could I have missed and how do I fix it. OS is Linux Mint 21.1. The output is next:
vladyslav@MS-7A34:~/vkBasalt$ LANG=C ninja -C builddir.32 install
ninja: Entering directory `builddir.32'
[1/58] Generating 'src/libvkbasalt.so.p/deband.frag.h'.
../src/shader/deband.frag.glsl
[2/58] Generating 'src/libvkbasalt.so.p/lut.frag.h'.
../src/shader/lut.frag.glsl
[3/58] Generating 'src/libvkbasalt.so.p/cas.frag.h'.
../src/shader/cas.frag.glsl
[4/58] Generating 'src/libvkbasalt.so.p/smaa_blend.frag.h'.
../src/shader/smaa_blend.frag.glsl
[5/58] Generating 'src/libvkbasalt.so.p/full_screen_triangle.vert.h'.
../src/shader/full_screen_triangle.vert.glsl
[6/58] Generating 'src/libvkbasalt.so.p/fxaa.frag.h'.
../src/shader/fxaa.frag.glsl
[7/58] Generating 'src/libvkbasalt.so.p/dls.frag.h'.
../src/shader/dls.frag.glsl
[8/58] Generating 'src/libvkbasalt.so.p/smaa_blend.vert.h'.
../src/shader/smaa_blend.vert.glsl
[9/58] Generating 'src/libvkbasalt.so.p/smaa_edge.vert.h'.
../src/shader/smaa_edge.vert.glsl
[10/58] Generating 'src/libvkbasalt.so.p/smaa_edge_luma.frag.h'.
../src/shader/smaa_edge_luma.frag.glsl
[11/58] Generating 'src/libvkbasalt.so.p/smaa_edge_color.frag.h'.
../src/shader/smaa_edge_color.frag.glsl
[12/58] Generating 'src/libvkbasalt.so.p/smaa_neighbor.frag.h'.
../src/shader/smaa_neighbor.frag.glsl
[13/58] Generating 'src/libvkbasalt.so.p/smaa_neighbor.vert.h'.
../src/shader/smaa_neighbor.vert.glsl
[47/58] Compiling C++ object src/libvkbasalt.so.p/sampler.cpp.o
../src/sampler.cpp: In function 'VkSampler vkBasalt::createReshadeSampler(vkBasalt::LogicalDevice*, const reshadefx::sampler_info&)':
../src/sampler.cpp:49:51: warning: 'mipmapMode' may be used uninitialized in this function [-Wmaybe-uninitialized]
49 | samplerCreateInfo.mipmapMode = mipmapMode;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../src/sampler.cpp:47:51: warning: 'magFilter' may be used uninitialized in this function [-Wmaybe-uninitialized]
47 | samplerCreateInfo.magFilter = magFilter;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../src/sampler.cpp:48:51: warning: 'minFilter' may be used uninitialized in this function [-Wmaybe-uninitialized]
48 | samplerCreateInfo.minFilter = minFilter;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
[57/58] Linking target src/libvkbasalt.so
FAILED: src/libvkbasalt.so
c++ -o src/libvkbasalt.so src/libvkbasalt.so.p/basalt.cpp.o src/libvkbasalt.so.p/buffer.cpp.o src/libvkbasalt.so.p/command_buffer.cpp.o src/libvkbasalt.so.p/config.cpp.o src/libvkbasalt.so.p/descriptor_set.cpp.o src/libvkbasalt.so.p/effect_cas.cpp.o src/libvkbasalt.so.p/effect.cpp.o src/libvkbasalt.so.p/effect_deband.cpp.o src/libvkbasalt.so.p/effect_dls.cpp.o src/libvkbasalt.so.p/effect_fxaa.cpp.o src/libvkbasalt.so.p/effect_lut.cpp.o src/libvkbasalt.so.p/effect_reshade.cpp.o src/libvkbasalt.so.p/effect_simple.cpp.o src/libvkbasalt.so.p/effect_smaa.cpp.o src/libvkbasalt.so.p/effect_transfer.cpp.o src/libvkbasalt.so.p/fake_swapchain.cpp.o src/libvkbasalt.so.p/format.cpp.o src/libvkbasalt.so.p/framebuffer.cpp.o src/libvkbasalt.so.p/graphics_pipeline.cpp.o src/libvkbasalt.so.p/image.cpp.o src/libvkbasalt.so.p/image_view.cpp.o src/libvkbasalt.so.p/keyboard_input.cpp.o src/libvkbasalt.so.p/logger.cpp.o src/libvkbasalt.so.p/logical_swapchain.cpp.o src/libvkbasalt.so.p/lut_cube.cpp.o src/libvkbasalt.so.p/memory.cpp.o src/libvkbasalt.so.p/renderpass.cpp.o src/libvkbasalt.so.p/reshade_uniforms.cpp.o src/libvkbasalt.so.p/sampler.cpp.o src/libvkbasalt.so.p/shader.cpp.o src/libvkbasalt.so.p/stb_image.c.o src/libvkbasalt.so.p/stb_image_resize.c.o src/libvkbasalt.so.p/util.cpp.o src/libvkbasalt.so.p/vkdispatch.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libvkbasalt.so -m32 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu src/libkeyboard_input_x11.a src/reshade/libreshade.a /usr/lib/x86_64-linux-gnu/libX11.so -Wl,--end-group
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libX11.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
kekaMEOW commented
Everything solved after i did reinstalled following pkgs: "build-essential gcc-multilib libx11-dev libx11-dev:i386 glslang-tools libvulkan-dev:i386 libvulkan-dev spirv-headers"