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

Various errors encountered with ninja -C build #184

Open
dplptp04 opened this issue Dec 27, 2020 · 6 comments
Open

Various errors encountered with ninja -C build #184

dplptp04 opened this issue Dec 27, 2020 · 6 comments

Comments

@dplptp04
Copy link

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.

@Dib-Roy
Copy link

Dib-Roy commented Jan 8, 2021

Exact same setup and problem here as well.

@IsaacHorvath
Copy link

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);

@Viibrant
Copy link

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!!

@unclehowell
Copy link

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

@IsaacHorvath
Copy link

I guess it's been abandoned.

@jwakely
Copy link

jwakely commented Dec 10, 2021

#185 fixes this

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

6 participants