C++ Error
jadefennec opened this issue · 3 comments
jadefennec commented
Terminal Output is as follows:
[relax@relax-laptop ~]$ yay -S recidia-audio-visualizer
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] recidia-audio-visualizer-0.3-1
1 recidia-audio-visualizer (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/0): recidia-audio-visualizer
1 recidia-audio-visualizer (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/1) Parsing SRCINFO: recidia-audio-visualizer
==> Making package: recidia-audio-visualizer 0.3-1 (Mon 07 Mar 2022 06:40:44 PM)
==> Retrieving sources...
-> Found recidia-audio-visualizer-0.3.tar.gz
==> Validating source files with sha256sums...
recidia-audio-visualizer-0.3.tar.gz ... Passed
==> Making package: recidia-audio-visualizer 0.3-1 (Mon 07 Mar 2022 06:40:47 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found recidia-audio-visualizer-0.3.tar.gz
==> Validating source files with sha256sums...
recidia-audio-visualizer-0.3.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting recidia-audio-visualizer-0.3.tar.gz with bsdtar
==> Sources are ready.
==> Making package: recidia-audio-visualizer 0.3-1 (Mon 07 Mar 2022 06:40:52 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
The Meson build system
Version: 0.61.2
Source dir: /home/relax/.cache/yay/recidia-audio-visualizer/src/recidia-audio-visualizer-0.3
Build dir: /home/relax/.cache/yay/recidia-audio-visualizer/src/recidia-audio-visualizer-0.3/build
Build type: native build
Project name: recidia
Project version: undefined
C compiler for the host machine: cc (gcc 11.2.0 "cc (GCC) 11.2.0")
C linker for the host machine: cc ld.bfd 2.38
C++ compiler for the host machine: c++ (gcc 11.2.0 "c++ (GCC) 11.2.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency gsl found: YES 2.7.1
Run-time dependency fftw3 found: YES 3.3.10
Run-time dependency threads found: YES
Run-time dependency ncursesw found: YES 6.3.20211021
Run-time dependency libconfig++ found: YES 1.7.3
Run-time dependency shaderc found: YES 2022.1.1
Run-time dependency libpulse found: YES 15.0
Run-time dependency libpulse-simple found: YES 15.0
Run-time dependency portaudio-2.0 found: YES 19
Run-time dependency qt5 (modules: Core, Gui, Widgets) found: YES 5.15.3 (pkg-config)
Build targets in project: 1
recidia undefined
User defined options
prefix: /usr
Found ninja-1.10.2 at /usr/bin/ninja
ninja: Entering directory `build'
[1/10] Compiling C object recidia.p/src_audio.c.o
../src/audio.c: In function ‘get_port_devices_info’:
../src/audio.c:186:5: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
186 | freopen("/dev/tty", "w", stderr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/audio.c: In function ‘port_collect_audio_data’:
../src/audio.c:246:5: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
246 | freopen("/dev/tty", "w", stderr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4/10] Compiling C++ object recidia.p/src_curses.cpp.o
FAILED: recidia.p/src_curses.cpp.o
c++ -Irecidia.p -I. -I.. -I../inc -I/usr/include/qt/QtCore -I/usr/include/qt -I/usr/include/qt/QtGui -I/usr/include/qt/QtWidgets -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -g -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -pthread -D_REENTRANT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -MD -MQ recidia.p/src_curses.cpp.o -MF recidia.p/src_curses.cpp.o.d -o recidia.p/src_curses.cpp.o -c ../src/curses.cpp
../src/curses.cpp: In function ‘void init_curses()’:
../src/curses.cpp:156:21: error: format not a string literal and no format arguments [-Werror=format-security]
156 | mvprintw(y, 0, printBarLine.c_str());
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
[6/10] Compiling C++ object recidia.p/src_main.cpp.o
../src/main.cpp: In function ‘void get_audio_device(recidia_audio_data*, int)’:
../src/main.cpp:104:14: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
104 | fgets(devBuffer, 4, stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
[9/10] Compiling C++ object recidia.p/src_widgets_settings.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
-> error making: recidia-audio-visualizer
[relax@relax-laptop ~]$
GhostNaN commented
I fixed this I believe as of: 9c56b43
Feel free to compile the git version to see if that helps.
I just didn't update the AUR yet. I'll get on it after I update recidia.
jadefennec commented
Ah, gotcha. Thanks mate.
GhostNaN commented
Ok it's up: https://aur.archlinux.org/packages/recidia-audio-visualizer
A word of caution glslang-11.8.0-2
on arch won't allow you to build recidia for some reason.
I'm running version 11.7.1-3 for now until it's resolved upstream.