Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building on Debian GNU/Linux 12 #38

Open
GyanPrakash2483 opened this issue Nov 11, 2024 · 1 comment
Open

Error building on Debian GNU/Linux 12 #38

GyanPrakash2483 opened this issue Nov 11, 2024 · 1 comment

Comments

@GyanPrakash2483
Copy link

GyanPrakash2483 commented Nov 11, 2024

Error:

c++: warning: /arch:AVX2: linker input file unused because linking not done
c++: error: /arch:AVX2: linker input file not found: No such file or directory
make[2]: *** [thirdparty/stb_image/CMakeFiles/stb_image.dir/build.make:76: thirdparty/stb_image/CMakeFiles/stb_image.dir/src/stb_image.cpp.o] Error 1

Full build log:

[  0%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/debug.c.o
[  1%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/entropy_common.c.o
[  1%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/error_private.c.o
[  1%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/fse_decompress.c.o
[  1%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/pool.c.o
[  2%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/threading.c.o
[  2%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/xxhash.c.o
[  2%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/common/zstd_common.c.o
[  2%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/fse_compress.c.o
[  3%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/hist.c.o
[  3%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/huf_compress.c.o
[  3%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress.c.o
[  4%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_literals.c.o
[  4%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_sequences.c.o
[  4%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_compress_superblock.c.o
[  4%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_double_fast.c.o
[  5%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_fast.c.o
[  5%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_lazy.c.o
[  5%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_ldm.c.o
[  5%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstd_opt.c.o
[  6%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/compress/zstdmt_compress.c.o
[  6%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/huf_decompress.c.o
[  6%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/huf_decompress_amd64.S.o
[  7%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_ddict.c.o
[  7%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_decompress.c.o
[  7%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/decompress/zstd_decompress_block.c.o
[  7%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/cover.c.o
[  8%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/divsufsort.c.o
[  8%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/fastcover.c.o
[  8%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/dictBuilder/zdict.c.o
[  8%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/legacy/zstd_v01.c.o
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c: In function ‘ZSTD_decompressSequences’:
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1849:35: warning: ‘dumps’ may be used uninitialized [-Wmaybe-uninitialized]
 1849 |         seqState.dumpsEnd = dumps + dumpsLength;
      |                             ~~~~~~^~~~~~~~~~~~~
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1829:17: note: ‘dumps’ was declared here
 1829 |     const BYTE* dumps;
      |                 ^~~~~
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1860:18: warning: ‘nbSeq’ may be used uninitialized [-Wmaybe-uninitialized]
 1860 |             nbSeq--;
      |             ~~~~~^~
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1828:9: note: ‘nbSeq’ was declared here
 1828 |     int nbSeq;
      |         ^~~~~
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1849:35: warning: ‘dumpsLength’ may be used uninitialized [-Wmaybe-uninitialized]
 1849 |         seqState.dumpsEnd = dumps + dumpsLength;
      |                             ~~~~~~^~~~~~~~~~~~~
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1825:23: note: ‘dumpsLength’ was declared here
 1825 |     size_t errorCode, dumpsLength;
      |                       ^~~~~~~~~~~
In function ‘ZSTDv01_decodeLiteralsBlock’,
    inlined from ‘ZSTD_decompressBlock’ at /home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1898:17:
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1507:16: warning: ‘litbp.origSize’ may be used uninitialized [-Wmaybe-uninitialized]
 1507 |             if (rleSize > 0) {
      |                ^
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c: In function ‘ZSTD_decompressBlock’:
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1488:23: note: ‘litbp.origSize’ was declared here
 1488 |     blockProperties_t litbp;
      |                       ^~~~~
In function ‘ZSTDv01_decodeLiteralsBlock’,
    inlined from ‘ZSTD_decompressBlock’ at /home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1898:17:
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1495:5: warning: ‘*(unsigned int *)((char *)&litbp + offsetof(blockProperties_t, blockType))’ may be used uninitialized [-Wmaybe-uninitialized]
 1495 |     switch(litbp.blockType)
      |     ^~~~~~
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c: In function ‘ZSTD_decompressBlock’:
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1488:23: note: ‘*(unsigned int *)((char *)&litbp + offsetof(blockProperties_t, blockType))’ was declared here
 1488 |     blockProperties_t litbp;
      |                       ^~~~~
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c: In function ‘ZSTDv01_decompressDCtx’:
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1935:9: warning: ‘*(unsigned int *)((char *)&blockProperties + offsetof(blockProperties_t, blockType))’ may be used uninitialized [-Wmaybe-uninitialized]
 1935 |         switch(blockProperties.blockType)
      |         ^~~~~~
/home/gyan/src/ourCraft/thirdparty/zstd-1.5.5/lib/legacy/zstd_v01.c:1917:23: note: ‘*(unsigned int *)((char *)&blockProperties + offsetof(blockProperties_t, blockType))’ was declared here
 1917 |     blockProperties_t blockProperties;
      |                       ^~~~~~~~~~~~~~~
[  9%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/legacy/zstd_v02.c.o
[  9%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/legacy/zstd_v03.c.o
[  9%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/legacy/zstd_v04.c.o
[ 10%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/legacy/zstd_v05.c.o
[ 10%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/legacy/zstd_v06.c.o
[ 10%] Building C object thirdparty/zstd-1.5.5/build/cmake/lib/CMakeFiles/libzstd_static.dir/__/__/__/lib/legacy/zstd_v07.c.o
[ 10%] Linking C static library libzstd.a
[ 10%] Built target libzstd_static
[ 10%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/context.c.o
[ 11%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/init.c.o
[ 11%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/input.c.o
[ 11%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/monitor.c.o
[ 11%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/vulkan.c.o
[ 12%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/window.c.o
[ 12%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/x11_init.c.o
[ 12%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/x11_monitor.c.o
[ 13%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/x11_window.c.o
[ 13%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/xkb_unicode.c.o
[ 13%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/posix_time.c.o
[ 13%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/posix_thread.c.o
[ 14%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/glx_context.c.o
[ 14%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/egl_context.c.o
[ 14%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/osmesa_context.c.o
[ 14%] Building C object thirdparty/glfw-3.3.7/src/CMakeFiles/glfw.dir/linux_joystick.c.o
[ 15%] Linking C static library libglfw3.a
[ 15%] Built target glfw
[ 15%] Building C object thirdparty/glad/CMakeFiles/glad.dir/src/glad.c.o
[ 15%] Linking C static library libglad.a
[ 15%] Built target glad
[ 15%] Building CXX object thirdparty/stb_image/CMakeFiles/stb_image.dir/src/stb_image.cpp.o
In file included from /home/gyan/src/ourCraft/thirdparty/stb_image/src/stb_image.cpp:2:
/home/gyan/src/ourCraft/thirdparty/stb_image/include/stb_image/stb_image.h: In function ‘void* STBIMAGE_CUSTOM_REALOC(void*, size_t, size_t)’:
/home/gyan/src/ourCraft/thirdparty/stb_image/include/stb_image/stb_image.h:348:18: warning: deleting ‘void*’ is undefined [-Wdelete-incomplete]
  348 |         delete[] p;
      |                  ^
/home/gyan/src/ourCraft/thirdparty/stb_image/include/stb_image/stb_image.h: In function ‘void stbi_image_free(void*)’:
/home/gyan/src/ourCraft/thirdparty/stb_image/include/stb_image/stb_image.h:1068:14: warning: deleting ‘void*’ is undefined [-Wdelete-incomplete]
 1068 |    STBI_FREE(retval_from_stbi_load);
      |              ^
/home/gyan/src/ourCraft/thirdparty/stb_image/include/stb_image/stb_image.h:354:45: note: in definition of macro ‘STBI_FREE’
  354 | #define STBI_FREE(p)              delete[] (p)
      |                                             ^
/home/gyan/src/ourCraft/thirdparty/stb_image/include/stb_image/stb_image.h: In function ‘int stbi__free_jpeg_components(stbi__jpeg*, int, int)’:
/home/gyan/src/ourCraft/thirdparty/stb_image/include/stb_image/stb_image.h:3191:35: warning: deleting ‘void*’ is undefined [-Wdelete-incomplete]
 3191 |          STBI_FREE(z->img_comp[i].raw_data);
      |                                   ^
/home/gyan/src/ourCraft/thirdparty/stb_image/include/stb_image/stb_image.h:354:45: note: in definition of macro ‘STBI_FREE’
  354 | #define STBI_FREE(p)              delete[] (p)
      |                                             ^
/home/gyan/src/ourCraft/thirdparty/stb_image/include/stb_image/stb_image.h:3196:35: warning: deleting ‘void*’ is undefined [-Wdelete-incomplete]
 3196 |          STBI_FREE(z->img_comp[i].raw_coeff);
      |                                   ^
/home/gyan/src/ourCraft/thirdparty/stb_image/include/stb_image/stb_image.h:354:45: note: in definition of macro ‘STBI_FREE’
  354 | #define STBI_FREE(p)              delete[] (p)
      |                                             ^
c++: warning: /arch:AVX2: linker input file unused because linking not done
c++: error: /arch:AVX2: linker input file not found: No such file or directory
make[2]: *** [thirdparty/stb_image/CMakeFiles/stb_image.dir/build.make:76: thirdparty/stb_image/CMakeFiles/stb_image.dir/src/stb_image.cpp.o] Error 1
make[2]: *** Deleting file 'thirdparty/stb_image/CMakeFiles/stb_image.dir/src/stb_image.cpp.o'
make[1]: *** [CMakeFiles/Makefile2:661: thirdparty/stb_image/CMakeFiles/stb_image.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Used the following to build

$ mkdir build && cd build
$ cmake ..
$ make
@meemknight
Copy link
Owner

yeah there are all sorts of building errors in linux, but unfortunately I can't take care of them just now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants