Package Details: audacity-git 3.0.2.r317.g3ebd8d401-1

Git Clone URL: https://aur.archlinux.org/audacity-git.git (read-only, click to copy)
Package Base: audacity-git
Description: A program that lets you manipulate digital audio waveforms
Upstream URL: https://www.audacityteam.org/
Licenses: GPL2, CCPL
Groups: pro-audio
Conflicts: audacity
Provides: audacity
Submitter: proudzhu
Maintainer: ongyx
Last Packager: ongyx
Votes: 13
Popularity: 0.56
First Submitted: 2015-11-02 16:13
Last Updated: 2021-07-01 16:55

Dependencies (30)

Required by (3)

Sources (2)

Pinned Comments

ongyx commented on 2021-07-02 01:40

The PKGBUILD now patches Audacity's sources so Clang can compile it. If you are updating from an older version, you may have to clean your AUR helper's cache (i.e yay -Sc).

Latest Comments

1 2 3 4 5 Next › Last »

ongyx commented on 2021-07-02 01:40

The PKGBUILD now patches Audacity's sources so Clang can compile it. If you are updating from an older version, you may have to clean your AUR helper's cache (i.e yay -Sc).

ongyx commented on 2021-07-01 16:58

I used the commands in the PKGBUILD to compile Audacity by hand so I could see all errors emited by make and clang. It seems it is a error in portaudio-v19, which Audacity vendors:

/home/ongyx/.cache/yay/audacity-git/src/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c:4377:5: error: cannot jump from this goto statem
ent to its label
    goto end;
    ^
/home/ongyx/.cache/yay/audacity-git/src/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c:4202:5: note: jump bypasses initialization of va
riable with __attribute__((cleanup))
    pthread_cleanup_push( &OnExit, stream );
    ^

Relevant part of portaudio's code:


    /* Execute OnExit when exiting */
    pthread_cleanup_push( &OnExit, stream );

    /* ... */

end:
    ; /* Hack to fix "label at end of compound statement" error caused by pthread_cleanup_pop(1) macro. */
    /* Match pthread_cleanup_push */
    pthread_cleanup_pop( 1 );

    PA_DEBUG(( "%s: Thread %d exiting\n ", __FUNCTION__, pthread_self() ));
    PaUnixThreading_EXIT( result );

error:
    PA_DEBUG(( "%s: Thread %d is canceled due to error %d\n ", __FUNCTION__, pthread_self(), result ));
    goto end;
}

The pthread_cleanup_push macro actually has a __attribute__((cleanup)) in it.

It is not guaranteed that pthread_cleanup_pop will run because goto end only occurs in specific cases. Clang throws a hard error on this, but gcc won't.

This error was reported on upstream portaudio too.

The fix is to just move pthread_cleanup_pop before the end: goto label. I tried this and Audacity compiles sucessfully. I'll test out this patch on the PKGBUILD.

EDIT: I'll also open a PR to upstream to fix this.

RichF77 commented on 2021-06-21 14:09

This package does not build and audicity-3.0.2 package either. The error I'm getting now is:

-- Detecting CXX compile features - done
CMake Error at cmake-proxies/cmake-modules/conan.cmake:806 (message):
Conan --version failed='1'
Call Stack (most recent call first):
cmake-proxies/cmake-modules/conan.cmake:841 (conan_check)
cmake-proxies/cmake-modules/AudacityDependencies.cmake:4 (conan_add_remote)
CMakeLists.txt:158 (include)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/pamac-build-user/audacity-git/src/audacity/build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().
    Aborting...

FabioLolix commented on 2021-06-18 19:10

When I updated on 22 May I was working since several days, broke the day after -_-

FabioLolix commented on 2021-06-18 19:05

I have added conan to makedepends, however the build still fails at about 40%

Vernox commented on 2021-06-18 14:38

add conan to the build-dependencies

ant commented on 2021-05-24 14:44

Does not build under up-to-date Arch Linux at the moment of writing:

... home/a/down/audacity-git/src/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c:4377:5: error: cannot jump from this goto statement to its label goto end; ^ /home/a/down/audacity-git/src/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c:4202:5: note: jump bypasses initialization of variable with attribute((cleanup)) pthread_cleanup_push( &OnExit, stream ); ^ /usr/include/pthread.h:617:36: note: expanded from macro 'pthread_cleanup_push' struct __pthread_cleanup_frame __clframe \ ^ 3 warnings and 1 error generated. make[2]: [cmake-proxies/portaudio-v19/CMakeFiles/portaudio-v19.dir/build.make:258: cmake-proxies/portaudio-v19/CMakeFiles/portaudio-v19.dir///lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:1770: cmake-proxies/portaudio-v19/CMakeFiles/portaudio-v19.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

XTREEMRAGE commented on 2021-05-23 21:22

The new version does not build on my system.

... [ 16%] Built target libsbsms make: *** [Makefile:136: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

My system: Manjaro 21.0.5 Ornara x86_64 Linux 5.4.118-1-MANJARO

carlosnewmusic commented on 2021-05-03 11:50

build error https://pastebin.com/HLhqZ0Zu https://pastebin.com/0mqLipdC

ZeroDot1 commented on 2021-03-18 02:16

https://github.com/audacity/audacity/releases/tag/Audacity-3.0.0