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

Building fails on Archlinux with error #184

Closed
Brensom opened this issue Jul 26, 2023 · 2 comments
Closed

Building fails on Archlinux with error #184

Brensom opened this issue Jul 26, 2023 · 2 comments

Comments

@Brensom
Copy link

Brensom commented Jul 26, 2023

Building fails to me on the current master version:

/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/include/xmmintrin.h:982:18: error: array subscript ‘__m128[0]’ is partly outside array bounds of ‘float[3]’ [-Werror=array-bounds=]
  982 |   *(__m128 *)__P = __A;
      |   ~~~~~~~~~~~~~~~^~~~~
/home/qwerty/building/betterspades/src/BetterSpades-0.1.5/build/_deps/cglm-src/src/vec4.c: In function ‘glmc_vec4_scale_as’:
/home/qwerty/building/betterspades/src/BetterSpades-0.1.5/build/_deps/cglm-src/src/vec4.c:127:42: note: object ‘dest’ of size [0, 12]
  127 | glmc_vec4_scale_as(vec4 v, float s, vec4 dest) {
      |                                     ~~~~~^~~~
In function ‘_mm_store_ps’,
    inlined from ‘glm_vec4_zero’ at /home/qwerty/building/betterspades/src/BetterSpades-0.1.5/build/_deps/cglm-src/src/../include/cglm/vec4.h:178:3,
    inlined from ‘glm_vec4_scale_as’ at /home/qwerty/building/betterspades/src/BetterSpades-0.1.5/build/_deps/cglm-src/src/../include/cglm/vec4.h:459:5,
    inlined from ‘glmc_vec4_scale_as’ at /home/qwerty/building/betterspades/src/BetterSpades-0.1.5/build/_deps/cglm-src/src/vec4.c:128:3:
/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/include/xmmintrin.h:982:18: error: array subscript ‘__m128[0]’ is partly outside array bounds of ‘float[3]’ [-Werror=array-bounds=]
  982 |   *(__m128 *)__P = __A;
      |   ~~~~~~~~~~~~~~~^~~~~
/home/qwerty/building/betterspades/src/BetterSpades-0.1.5/build/_deps/cglm-src/src/vec4.c: In function ‘glmc_vec4_scale_as’:
/home/qwerty/building/betterspades/src/BetterSpades-0.1.5/build/_deps/cglm-src/src/vec4.c:127:42: note: object ‘dest’ of size [0, 12]
  127 | glmc_vec4_scale_as(vec4 v, float s, vec4 dest) {
      |                                     ~~~~~^~~~
[ 20%] Linking C static library libvxl.a
[ 22%] Building C object _deps/cglm-build/CMakeFiles/cglm.dir/src/plane.c.o
[ 23%] Building C object _deps/cglm-build/CMakeFiles/cglm.dir/src/frustum.c.o
cc1: all warnings being treated as errors
make[2]: *** [_deps/cglm-build/CMakeFiles/cglm.dir/build.make:174: _deps/cglm-build/CMakeFiles/cglm.dir/src/vec4.c.o] Error 1

My build system:

COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.1.1 20230714 (GCC)
@Evvgnn
Copy link

Evvgnn commented Jul 27, 2023

Have you used the latest build dependencies? I mean these files like ini.c, ini.h, parson.c, etc.

@Brensom
Copy link
Author

Brensom commented Jul 28, 2023

Yes

@Brensom Brensom closed this as completed Aug 10, 2023
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