Building latest git under latest Arch Linux (ATTOW)

Hello, I am trying to build according to these compilation knobs: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=audacity-git

The reason I am rebuilding is I use Wayland and would like to get an audacity version working with GTK3, because the play cursor is sloppy with stock with GTK2.

My build failed at the configuring stage:


[ 76%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/decode.c.o
[ 77%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/encode.c.o
[ 78%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/foreign_metadata.c.o
[ 80%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/main.c.o
[ 81%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/local_string_utils.c.o
[ 82%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/utils.c.o
[ 83%] Building C object source_subfolder/src/flac/CMakeFiles/flacapp.dir/vorbiscomment.c.o
[ 85%] Linking C executable …/…/…/bin/flac
[ 85%] Built target flacapp
make: *** [Makefile:156: all] Error 2
flac/1.3.3:
flac/1.3.3: ERROR: Package ‘2e198b8f5694d68dae7c7264d91b82e6e9469b96’ build failed
flac/1.3.3: WARN: Build folder /home/a/.conan/data/flac/1.3.3///build/2e198b8f5694d68dae7c7264d91b82e6e9469b96
ERROR: flac/1.3.3: Error in build() method, line 65
cmake.build()
ConanException: Error 2 while executing cmake --build ‘/home/a/.conan/data/flac/1.3.3///build/2e198b8f5694d68dae7c7264d91b82e6e9469b96’ ‘–’ ‘-j2’
CMake Error at cmake-proxies/cmake-modules/conan.cmake:631 (message):
Conan install failed=‘1’
Call Stack (most recent call first):
cmake-proxies/cmake-modules/AudacityDependencies.cmake:261 (conan_cmake_install)
cmake-proxies/cmake-modules/AudacityDependencies.cmake:283 (_conan_install)
CMakeLists.txt:531 (resolve_conan_dependencies)


– Configuring incomplete, errors occurred!
See also “/home/a/down/audacity-git/src/audacity/build/CMakeFiles/CMakeOutput.log”.
See also “/home/a/down/audacity-git/src/audacity/build/CMakeFiles/CMakeError.log”.


I am attaching the LOG files. The first error is:

nasm: error: unrecognised option `-V’

I am running nasm 2.15.05 and indeed there is no -V option, but it is actually -v if that was intended. Could it be such a gross mistake preventing my compilation? How to fix that?
CMakeOutput.log (147 KB)
CMakeError.log (17.2 KB)

Does Audacity build correctly if you follow the official building instructions? https://github.com/audacity/audacity/blob/master/BUILDING.md

I have just tried to compile using official building instruction. I run into the same problem. It looks like recent NASM version are not recognized (please see attached CMakeError.log file). What should I do? Open a ticket?

/include/wx/gtk/private.h:14,
from /home/a/.conan/data/wxwidgets/3.1.3.1-audacity///build/10f2526f12f71d8eb85afe3a18060ca4da9e690e/source_subfolder/src/gtk/assertdlg_gtk.cpp:13:
/home/a/.conan/data/wxwidgets/3.1.3.1-audacity///build/10f2526f12f71d8eb85afe3a18060ca4da9e690e/source_subfolder/include/wx/gtk/private/wrapgtk.h:14:10: fatal error: gtk/gtk.h: No such file or directory
14 | #include <gtk/gtk.h>
| ^~~~~~~~~~~
compilation terminated.
[147/596] Building CXX precompiled header source_subfolder/libs/aui/cotire/aui_CXX_prefix.hxx.gch
ninja: build stopped: subcommand failed.
wxwidgets/3.1.3.1-audacity:
wxwidgets/3.1.3.1-audacity: ERROR: Package ‘10f2526f12f71d8eb85afe3a18060ca4da9e690e’ build failed
wxwidgets/3.1.3.1-audacity: WARN: Build folder /home/a/.conan/data/wxwidgets/3.1.3.1-audacity///build/10f2526f12f71d8eb85afe3a18060ca4da9e690e
ERROR: wxwidgets/3.1.3.1-audacity: Error in build() method, line 256
cmake.build()
ConanException: Error 1 while executing cmake --build ‘/home/a/.conan/data/wxwidgets/3.1.3.1-audacity///build/10f2526f12f71d8eb85afe3a18060ca4da9e690e/build_subfolder’ ‘–’ ‘-j2’
CMake Error at cmake-proxies/cmake-modules/conan.cmake:631 (message):
Conan install failed=‘1’
Call Stack (most recent call first):
cmake-proxies/cmake-modules/AudacityDependencies.cmake:261 (conan_cmake_install)
cmake-proxies/cmake-modules/AudacityDependencies.cmake:283 (_conan_install)
CMakeLists.txt:531 (resolve_conan_dependencies)


– Configuring incomplete, errors occurred!
See also “/home/a/down/build/CMakeFiles/CMakeOutput.log”.
See also “/home/a/down/build/CMakeFiles/CMakeError.log”.
[a@soundix build]$ less /home/a/down/build/CMakeFiles/CMakeError.log
CMakeOutput.log (105 KB)
CMakeError.log (15.7 KB)

Probably your best option for a quick response is to ask in the “Compiling Audacity #Linux” section of Discord: Discord
(Note that the link / invite only remains open for a while, so don’t leave it too long to visit).

I tried to sign up there but had no luck. I got the code by SMS, entered it, chose a password and then it got stuck. Verifying the account by email did not work too, no email was receveid (none in the Spam folder too). I am quite sure this is a trivial issue about checks failing with newer version of nasm, but I am not well versed into cmake to fix it by myself. And even if I did there could be more trouble later too.

BTW Arch Linux provided Audacity 2.4.1, quite and old version. It has been marked as outdated since long time ,but nobody fixed, I guess for a reason. This does not work well under Wayland unfortunately.

It looks as though you were finally successful at least at logging in.

This is an error that some Windows users have reported. The work-around for them is to use a different generator (other than ninja). I don’t know if this applies to Linux.