glava
glava copied to clipboard
ninja -C build logic errors
➜ glava git:(master) ninja -C build
ninja: Entering directory `build'
[1/17] Compiling C++ object libglfft.a.p/glfft_glfft_gl_interface.cpp.o
FAILED: libglfft.a.p/glfft_glfft_gl_interface.cpp.o
c++ -Ilibglfft.a.p -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -O2 -DGLAVA_UNIX -DGLAVA_GLX '-DGLAVA_VERSION="v1.6.3-88-g41ff60c"' '-DSHADER_INSTALL_PATH="/etc/xdg/glava"' '-DGLAVA_RESOURCE_PATH="/usr/share/glava/resources"' -fPIC -MD -MQ libglfft.a.p/glfft_glfft_gl_interface.cpp.o -MF libglfft.a.p/glfft_glfft_gl_interface.cpp.o.d -o libglfft.a.p/glfft_glfft_gl_interface.cpp.o -c ../glfft/glfft_gl_interface.cpp
In file included from ../glfft/glfft_gl_interface.cpp:19:
../glfft/glfft_gl_interface.hpp: In function ‘void glfft_log(const char*, ...)’:
../glfft/glfft_gl_interface.hpp:43:14: error: ‘stdout’ was not declared in this scope
43 | vfprintf(stdout, fmt, l);
| ^~~~~~
../glfft/glfft_gl_interface.hpp:33:1: note: ‘stdout’ is defined in header ‘
I've tried to fix it but, unfortunately i can't, part of errors i managed to fix with this (diff):
diff --git a/glfft/glfft_gl_interface.hpp b/glfft/glfft_gl_interface.hpp
index 43929c7..5ba0980 100644
--- a/glfft/glfft_gl_interface.hpp
+++ b/glfft/glfft_gl_interface.hpp
@@ -35,7 +35,8 @@ extern "C" {
#ifndef GLFFT_GLSL_LANG_STRING
#error GLFFT_GLSL_LANG_STRING must be defined to e.g. "#version 310 es\n" or "#version 430 core\n".
#endif
-
+#include <stdio.h>
+#include <cerrno>
#ifndef GLFFT_LOG_OVERRIDE
void glfft_log(const char *fmt, ...) {
va_list l;
but it doesn't look like a proper path.
I've used theese command (after clone and cd):
meson build -Ddisable_obs=true
ninja -C build
uname -a
Linux Papug 5.10.23-1-MANJARO #1 SMP PREEMPT Thu Mar 11 18:47:18 UTC 2021 x86_64 GNU/Linux
having the same problem
meson build --prefix /usr
The Meson build system
Version: 0.55.3
Source dir: /home/stream/glava
Build dir: /home/stream/glava/build
Build type: native build
Project name: glava
Project version: v1.6.3-88-g41ff60c
C compiler for the host machine: cc (gcc 10.2.0 "cc (Ubuntu 10.2.0-13ubuntu1) 10.2.0")
C linker for the host machine: cc ld.bfd 2.35.1
C++ compiler for the host machine: c++ (gcc 10.2.0 "c++ (Ubuntu 10.2.0-13ubuntu1) 10.2.0")
C++ linker for the host machine: c++ ld.bfd 2.35.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Run-time dependency threads found: YES
Library pulse found: YES
Library pulse-simple found: YES
Library dl found: YES
Library m found: YES
Library X11 found: YES
Library Xext found: YES
Library Xrender found: YES
Library dl found: YES
Dependency threads found: YES unknown (cached)
Library GL found: YES
Library X11 found: YES
Library obs found: YES
Library dl found: YES
Build targets in project: 4
Option buildtype is: custom [default: release]
Found ninja-1.10.0 at /usr/bin/ninja
ninja -C build
ninja: Entering directory `build'
[2/19] Compiling C++ object libglfft.a.p/glfft_glfft_gl_interface.cpp.o
FAILED: libglfft.a.p/glfft_glfft_gl_interface.cpp.o
c++ -Ilibglfft.a.p -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -O2 -DGLAVA_UNIX -DGLAVA_GLX '-DGLAVA_VERSION="v1.6.3-88-g41ff60c"' '-DSHADER_INSTALL_PATH="/etc/xdg/glava"' '-DGLAVA_RESOURCE_PATH="/usr/share/glava/resources"' -fPIC -MD -MQ libglfft.a.p/glfft_glfft_gl_interface.cpp.o -MF libglfft.a.p/glfft_glfft_gl_interface.cpp.o.d -o libglfft.a.p/glfft_glfft_gl_interface.cpp.o -c ../glfft/glfft_gl_interface.cpp
In file included from ../glfft/glfft_gl_interface.cpp:19:
../glfft/glfft_gl_interface.hpp: In function ‘void glfft_log(const char*, ...)’:
../glfft/glfft_gl_interface.hpp:43:14: error: ‘stdout’ was not declared in this scope
43 | vfprintf(stdout, fmt, l);
| ^~~~~~
../glfft/glfft_gl_interface.hpp:33:1: note: ‘stdout’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
32 | #include <error.h>
+++ |+#include <cstdio>
33 | }
../glfft/glfft_gl_interface.hpp:43:5: error: ‘vfprintf’ was not declared in this scope; did you mean ‘vwprintf’?
43 | vfprintf(stdout, fmt, l);
| ^~~~~~~~
| vwprintf
../glfft/glfft_gl_interface.hpp: In function ‘double glfft_time()’:
../glfft/glfft_gl_interface.hpp:54:17: error: ‘stderr’ was not declared in this scope
54 | fprintf(stderr, "clock_gettime(CLOCK_REALTIME, ...): %s\n", strerror(errno));
| ^~~~~~
../glfft/glfft_gl_interface.hpp:54:17: note: ‘stderr’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
../glfft/glfft_gl_interface.hpp:54:78: error: ‘errno’ was not declared in this scope
54 | fprintf(stderr, "clock_gettime(CLOCK_REALTIME, ...): %s\n", strerror(errno));
| ^~~~~
../glfft/glfft_gl_interface.hpp:33:1: note: ‘errno’ is defined in header ‘<cerrno>’; did you forget to ‘#include <cerrno>’?
32 | #include <error.h>
+++ |+#include <cerrno>
33 | }
../glfft/glfft_gl_interface.hpp:54:9: error: ‘fprintf’ was not declared in this scope; did you mean ‘wprintf’?
54 | fprintf(stderr, "clock_gettime(CLOCK_REALTIME, ...): %s\n", strerror(errno));
| ^~~~~~~
| wprintf
../glfft/glfft_gl_interface.cpp: In member function ‘virtual void GLFFT::GLContext::log(const char*, ...)’:
../glfft/glfft_gl_interface.cpp:201:5: error: ‘vsnprintf’ was not declared in this scope; did you mean ‘vswprintf’?
201 | vsnprintf(buffer, sizeof(buffer), fmt, va);
| ^~~~~~~~~
| vswprintf
[5/19] Compiling C++ object libglfft.a.p/glfft_glfft_wisdom.cpp.o
FAILED: libglfft.a.p/glfft_glfft_wisdom.cpp.o
c++ -Ilibglfft.a.p -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -O2 -DGLAVA_UNIX -DGLAVA_GLX '-DGLAVA_VERSION="v1.6.3-88-g41ff60c"' '-DSHADER_INSTALL_PATH="/etc/xdg/glava"' '-DGLAVA_RESOURCE_PATH="/usr/share/glava/resources"' -fPIC -MD -MQ libglfft.a.p/glfft_glfft_wisdom.cpp.o -MF libglfft.a.p/glfft_glfft_wisdom.cpp.o.d -o libglfft.a.p/glfft_glfft_wisdom.cpp.o -c ../glfft/glfft_wisdom.cpp
../glfft/glfft_wisdom.cpp: In member function ‘std::pair<double, GLFFT::FFTOptions::Performance> GLFFT::FFTWisdom::study(GLFFT::Context*, const GLFFT::WisdomPass&, GLFFT::FFTOptions::Type) const’:
../glfft/glfft_wisdom.cpp:273:23: error: ‘logic_error’ was not declared in this scope
273 | throw logic_error("Invalid input mode.\n");
| ^~~~~~~~~~~
../glfft/glfft_wisdom.cpp:307:23: error: ‘logic_error’ was not declared in this scope
307 | throw logic_error("Invalid output mode.\n");
| ^~~~~~~~~~~
[7/19] Compiling C++ object libglfft.a.p/glfft_glfft.cpp.o
ninja: build stopped: subcommand failed.
Same issue here.
ninja: Entering directory build' [1/7] Linking target libglava.so FAILED: libglava.so cc -o libglava.so libglava.so.p/glava_fifo.c.o libglava.so.p/glava_glad.c.o libglava.so.p/glava_glava.c.o libglava.so.p/glava_glfw_wcb.c.o libglava.so.p/glava_glsl_ext.c.o libglava.so.p/glava_glx_wcb.c.o libglava.so.p/glava_pulse_input.c.o libglava.so.p/glava_render.c.o libglava.so.p/glava_xwin.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libglava.so -pthread -lpulse -lpulse-simple -ldl -lm -lX11 -lXext -lXrender -Wl,--end-group /usr/bin/ld: libglava.so.p/glava_glsl_ext.c.o:(.bss+0x8): multiple definition of glava_abort'; libglava.so.p/glava_glava.c.o:(.data.rel+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_glsl_ext.c.o:(.bss+0x0): multiple definition of glava_return'; libglava.so.p/glava_glava.c.o:(.data.rel+0x0): first defined here /usr/bin/ld: libglava.so.p/glava_glx_wcb.c.o:(.bss+0x58): multiple definition of glava_abort'; libglava.so.p/glava_glava.c.o:(.data.rel+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_glx_wcb.c.o:(.bss+0x50): multiple definition of glava_return'; libglava.so.p/glava_glava.c.o:(.data.rel+0x0): first defined here /usr/bin/ld: libglava.so.p/glava_render.c.o:(.bss+0x20): multiple definition of glava_abort'; libglava.so.p/glava_glava.c.o:(.data.rel+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_render.c.o:(.bss+0x18): multiple definition of glava_return'; libglava.so.p/glava_glava.c.o:(.data.rel+0x0): first defined here /usr/bin/ld: libglava.so.p/glava_xwin.c.o:(.bss+0x8): multiple definition of glava_abort'; libglava.so.p/glava_glava.c.o:(.data.rel+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_xwin.c.o:(.bss+0x0): multiple definition of `glava_return'; libglava.so.p/glava_glava.c.o:(.data.rel+0x0): first defined here
collect2: error: ld returned 1 exit status
[2/7] Compiling C++ object libglfft.a.p/glfft_glfft_gl_interface.cpp.o
FAILED: libglfft.a.p/glfft_glfft_gl_interface.cpp.o
c++ -Ilibglfft.a.p -I. -I.. -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -O2 -DGLAVA_UNIX -DGLAVA_GLX '-DGLAVA_VERSION="v1.6.3-89-g427d1bb"' '-DSHADER_INSTALL_PATH="/etc/xdg/glava"' '-DGLAVA_RESOURCE_PATH="/usr/share/glava/resources"' -fPIC -MD -MQ libglfft.a.p/glfft_glfft_gl_interface.cpp.o -MF libglfft.a.p/glfft_glfft_gl_interface.cpp.o.d -o libglfft.a.p/glfft_glfft_gl_interface.cpp.o -c ../glfft/glfft_gl_interface.cpp
In file included from ../glfft/glfft_gl_interface.cpp:19:
../glfft/glfft_gl_interface.hpp: In function ‘void glfft_log(const char*, ...)’:
../glfft/glfft_gl_interface.hpp:43:14: error: ‘stdout’ was not declared in this scope
43 | vfprintf(stdout, fmt, l);
| ^~~~~~
../glfft/glfft_gl_interface.hpp:33:1: note: ‘stdout’ is defined in header ‘
uname -a
Linux <omitted> 5.12.9-300.fc34.x86_64 #1 SMP Thu Jun 3 13:51:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Fedora 34. Any hope of a fix?
Having issues compiling with ninja as well.
Same happening here
I was tried with this resolution but dont work.
Same issue here on debian current testing.
#185 fixes this
ninja -C build
ninja: Entering directory build' [1/6] Linking target libglava.so FAILED: libglava.so cc -o libglava.so libglava.so.p/glava_glava.c.o libglava.so.p/glava_xwin.c.o libglava.so.p/glava_glad.c.o libglava.so.p/glava_glx_wcb.c.o libglava.so.p/glava_render.c.o libglava.so.p/glava_glfw_wcb.c.o libglava.so.p/glava_pulse_input.c.o libglava.so.p/glava_fifo.c.o libglava.so.p/glava_glsl_ext.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libglava.so -pthread -lpulse -lpulse-simple -ldl -lm -lX11 -lXext -lXrender -Wl,--end-group /usr/bin/ld: libglava.so.p/glava_xwin.c.o:(.bss+0x8): multiple definition of glava_abort'; libglava.so.p/glava_glava.c.o:(.data.rel+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_xwin.c.o:(.bss+0x0): multiple definition of glava_return'; libglava.so.p/glava_glava.c.o:(.data.rel+0x0): first defined here /usr/bin/ld: libglava.so.p/glava_glx_wcb.c.o:(.bss+0x58): multiple definition of glava_abort'; libglava.so.p/glava_glava.c.o:(.data.rel+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_glx_wcb.c.o:(.bss+0x50): multiple definition of glava_return'; libglava.so.p/glava_glava.c.o:(.data.rel+0x0): first defined here /usr/bin/ld: libglava.so.p/glava_render.c.o:(.bss+0x20): multiple definition of glava_abort'; libglava.so.p/glava_glava.c.o:(.data.rel+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_render.c.o:(.bss+0x18): multiple definition of glava_return'; libglava.so.p/glava_glava.c.o:(.data.rel+0x0): first defined here /usr/bin/ld: libglava.so.p/glava_glsl_ext.c.o:(.bss+0x8): multiple definition of glava_abort'; libglava.so.p/glava_glava.c.o:(.data.rel+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_glsl_ext.c.o:(.bss+0x0): multiple definition of `glava_return'; libglava.so.p/glava_glava.c.o:(.data.rel+0x0): first defined here
/usr/bin/ld: warning: libglava.so.p/glava_render.c.o: requires executable stack (because the .note.GNU-stack section is executable)
collect2: error: ld returned 1 exit status
[2/6] Compiling C++ object libglfft.a.p/glfft_glfft_gl_interface.cpp.o
FAILED: libglfft.a.p/glfft_glfft_gl_interface.cpp.o
c++ -Ilibglfft.a.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -O2 -DGLAVA_UNIX -DGLAVA_GLX '-DGLAVA_VERSION="v1.6.3-90-g6fc0e32"' '-DSHADER_INSTALL_PATH="/etc/xdg/glava"' '-DGLAVA_RESOURCE_PATH="/usr/share/glava/resources"' -fPIC -MD -MQ libglfft.a.p/glfft_glfft_gl_interface.cpp.o -MF libglfft.a.p/glfft_glfft_gl_interface.cpp.o.d -o libglfft.a.p/glfft_glfft_gl_interface.cpp.o -c ../glfft/glfft_gl_interface.cpp
In file included from ../glfft/glfft_gl_interface.cpp:19:
../glfft/glfft_gl_interface.hpp: In function ‘void glfft_log(const char*, ...)’:
../glfft/glfft_gl_interface.hpp:43:14: error: ‘stdout’ was not declared in this scope
43 | vfprintf(stdout, fmt, l);
| ^~~~~~
../glfft/glfft_gl_interface.hpp:33:1: note: ‘stdout’ is defined in header ‘
uname -a
Linux kali 5.16.0-kali7-amd64 #1 SMP PREEMPT Debian 5.16.18-1kali1 (2022-04-01) x86_64 GNU/Linux
#185 would still fix it.
Same issue:
supersu@supersu:~/glava$ sudo ninja -C build install
ninja: Entering directory build' [1/8] Linking target libglava.so FAILED: libglava.so cc -o libglava.so libglava.so.p/glava_glsl_ext.c.o libglava.so.p/glava_glfw_wcb.c.o libglava.so.p/glava_fifo.c.o libglava.so.p/glava_glava.c.o libglava.so.p/glava_glx_wcb.c.o libglava.so.p/glava_glad.c.o libglava.so.p/glava_pulse_input.c.o libglava.so.p/glava_render.c.o libglava.so.p/glava_xwin.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libglava.so -pthread -lpulse -lpulse-simple -ldl -lm -lX11 -lXext -lXrender -Wl,--end-group /usr/bin/ld: libglava.so.p/glava_glava.c.o:(.data.rel+0x8): multiple definition of glava_abort'; libglava.so.p/glava_glsl_ext.c.o:(.bss+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_glava.c.o:(.data.rel+0x0): multiple definition of glava_return'; libglava.so.p/glava_glsl_ext.c.o:(.bss+0x0): first defined here /usr/bin/ld: libglava.so.p/glava_glx_wcb.c.o:(.bss+0x58): multiple definition of glava_abort'; libglava.so.p/glava_glsl_ext.c.o:(.bss+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_glx_wcb.c.o:(.bss+0x50): multiple definition of glava_return'; libglava.so.p/glava_glsl_ext.c.o:(.bss+0x0): first defined here /usr/bin/ld: libglava.so.p/glava_render.c.o:(.bss+0x20): multiple definition of glava_abort'; libglava.so.p/glava_glsl_ext.c.o:(.bss+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_render.c.o:(.bss+0x18): multiple definition of glava_return'; libglava.so.p/glava_glsl_ext.c.o:(.bss+0x0): first defined here /usr/bin/ld: libglava.so.p/glava_xwin.c.o:(.bss+0x8): multiple definition of glava_abort'; libglava.so.p/glava_glsl_ext.c.o:(.bss+0x8): first defined here
/usr/bin/ld: libglava.so.p/glava_xwin.c.o:(.bss+0x0): multiple definition of `glava_return'; libglava.so.p/glava_glsl_ext.c.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
[2/8] Compiling C++ object libglfft.a.p/glfft_glfft_gl_interface.cpp.o
FAILED: libglfft.a.p/glfft_glfft_gl_interface.cpp.o
c++ -Ilibglfft.a.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -O2 -DGLAVA_UNIX -DGLAVA_GLX '-DGLAVA_VERSION="v1.6.3-90-g6fc0e32"' '-DSHADER_INSTALL_PATH="/etc/xdg/glava"' '-DGLAVA_RESOURCE_PATH="/usr/share/glava/resources"' -fPIC -MD -MQ libglfft.a.p/glfft_glfft_gl_interface.cpp.o -MF libglfft.a.p/glfft_glfft_gl_interface.cpp.o.d -o libglfft.a.p/glfft_glfft_gl_interface.cpp.o -c ../glfft/glfft_gl_interface.cpp
In file included from ../glfft/glfft_gl_interface.cpp:19:
../glfft/glfft_gl_interface.hpp: In function ‘void glfft_log(const char*, ...)’:
../glfft/glfft_gl_interface.hpp:43:14: error: ‘stdout’ was not declared in this scope
43 | vfprintf(stdout, fmt, l);
| ^~~~~~
../glfft/glfft_gl_interface.hpp:33:1: note: ‘stdout’ is defined in header ‘