glava icon indicating copy to clipboard operation
glava copied to clipboard

Various errors encountered with ninja -C build

Open dplptp04 opened this issue 4 years ago • 6 comments

After following the required steps for compilation for Debian/Ubuntu on Ubuntu 20.10, git and meson work just fine, but when ninja -C build is run, I get the following:

ninja -C build results.txt

I don't understand much, but it looks like ninja is running into a lot of errors trying to build gLava.

dplptp04 avatar Dec 27 '20 19:12 dplptp04

Exact same setup and problem here as well.

Dib-Roy avatar Jan 08 '21 00:01 Dib-Roy

I am having this exact issue, and it looks like it broke glava-git in the AUR as well. Here's how I managed to get it to compile after a few hours of debugging:

Add this into the top of glfft/glfft_common.hpp: #include <stdexcept>

And this into the top of glfft/glfft_gl_interface.hpp in the extern "C" { } bracket: #include <errno.h> #include <stdio.h>

And finally, change these two lines in glava/glava.h: __attribute__((noreturn, visibility("default"))) void (*glava_abort) (void); __attribute__((noreturn, visibility("default"))) void (*glava_return) (void); to this: __attribute__((noreturn, visibility("default"))) extern void (*glava_abort) (void); __attribute__((noreturn, visibility("default"))) extern void (*glava_return) (void);

IsaacHorvath avatar Jan 14 '21 12:01 IsaacHorvath

I am having this exact issue, and it looks like it broke glava-git in the AUR as well. Here's how I managed to get it to compile after a few hours of debugging:

Add this into the top of glfft/glfft_common.hpp: #include <stdexcept>

And this into the top of glfft/glfft_gl_interface.hpp in the extern "C" { } bracket: #include <errno.h> #include <stdio.h>

And finally, change these two lines in glava/glava.h: __attribute__((noreturn, visibility("default"))) void (*glava_abort) (void); __attribute__((noreturn, visibility("default"))) void (*glava_return) (void); to this: __attribute__((noreturn, visibility("default"))) extern void (*glava_abort) (void); __attribute__((noreturn, visibility("default"))) extern void (*glava_return) (void);

What an absolute legend! Can confirm this completely sorted my problem out. Cheers!!

Viibrant avatar Feb 15 '21 19:02 Viibrant

good drills. Why dont these get changed in the repo ?

unclehowell avatar Apr 01 '21 18:04 unclehowell

I guess it's been abandoned.

IsaacHorvath avatar Apr 02 '21 20:04 IsaacHorvath

#185 fixes this

jwakely avatar Dec 10 '21 09:12 jwakely