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
Compilation error: Apparent missing file #5771
Comments
Arch build is quite broken right now, I had no time to check so far |
Just checked, and Audacity from the latest master still does not build. |
I am still unable to compile the sources from current master on Arch Linux. Is this related to something missing in Arch? Is anyone able to build current master on other flavors of Linux? |
Arch support is still not fixed. We build Linux on CI continuously, AFAIK wx 3.2 build is broken. Unfortunately I have no resources right now to fix the Arch build and I am alone working on that. Generally I wouldn't recommend using master ATM, it's rather unstable |
Building on Arch just follows the build instructions listed on the Audacity site. Would it help if I can pinpoint the commit that broke compilation? |
Hmm, it definitely seems Arch related. I see that the Arch repo version of Catch2 does not install catch2.hpp In the compile instructions, it seems to be compiled with -DBUILD_SHARED_LIBS=OFF I'm now trying the git version on Arch to see if that installs the catch2.hpp. There is not much point in talking to the Arch package maintainers, their reasons for doing whatever they are doing with the packages are usually very good, and it is only a matter of time before the other distrobutions out there follow suit. So, it is quite likely that catch2.hpp will go away on other distrobutions as well. What is it used for in Audacity, and is there not a different way of getting the same functionality? |
You can disable unit testing in Audacity. I doesn't need Catch to run. I think the Catch version in Arch Linux just went to far away from what Audacity can use. |
I found the reason that this header disappeared: How do I disable the unit testing, please? |
|
Hmm, that works. OK, so on the aur version of audacity that I maintain (audacity-local-git) I have turned off the tests like you suggested, and it's building away now. I am now in the process of removing catch2 from the build requirements. |
You can use extra/catch2-v2 (what a weird name) to compile the tests 😄 |
See: audacity/audacity#5771 See: audacity/audacity#5841 (reply in thread) Bug: https://bugs.gentoo.org/916258 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
See: audacity/audacity#5771 See: audacity/audacity#5841 (reply in thread) Bug: https://bugs.gentoo.org/916258 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
See: audacity/audacity#5771 See: audacity/audacity#5841 (reply in thread) Bug: https://bugs.gentoo.org/916258 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
See: audacity/audacity#5771 See: audacity/audacity#5841 (reply in thread) Bug: https://bugs.gentoo.org/916258 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
See: audacity/audacity#5771 See: audacity/audacity#5841 (reply in thread) Bug: https://bugs.gentoo.org/916258 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
See: audacity/audacity#5771 See: audacity/audacity#5841 (reply in thread) Bug: https://bugs.gentoo.org/916258 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
See: audacity/audacity#5771 See: audacity/audacity#5841 (reply in thread) Bug: https://bugs.gentoo.org/916258 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
See: audacity/audacity#5771 See: audacity/audacity#5841 (reply in thread) Bug: https://bugs.gentoo.org/916258 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
See: audacity/audacity#5771 See: audacity/audacity#5841 (reply in thread) Bug: https://bugs.gentoo.org/916258 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk> Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
@christian-heusel I would rather wait for this issue to be fixed. :) |
1 similar comment
@christian-heusel I would rather wait for this issue to be fixed. :) |
I don't see this issue as a priority. We will likely update to Catch 3, but there is no goal to have unit tests to be buildable with the system version of Catch. |
Since there is a workaround it is not a priority for me as well.
If one of the aims of Audacity is not to collect a bunch of outdated
dependencies, this issue will need to be resolved at some point.
My suggestion in this case is if the person that coded this into Audacity
does not feel like supporting it, it just needs to be ripped out again.
That might just be the simplest option.
…On Wed, Jan 17, 2024, 11:52 Dmitry Vedenko ***@***.***> wrote:
I don't see this issue as a priority. We will likely update to Catch 3,
but there is no goal to have unit tests to be buildable with the system
version of Catch.
—
Reply to this email directly, view it on GitHub
<#5771 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC34XVOTLX5NVCGMJ3IXBKDYO6NO5AVCNFSM6AAAAABAQJWK22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJVGQ2TQNZXGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
BTW, you are having this issue because you use Conan for one of the dependencies, but try to use system libraries for the rest. Making a "system only" build effectively disables unit testing. |
Yes, but that is the reason why I opened #5841 in the first place as it is very confusing to enable the tests via As downstream packagers especially given the rolling nature of Arch Linux it is a good thing to run the tests of any upstream packages in order to detect issues with the functionality of the package when a new library version is released. That's why I patched this out in the official package extra/audacity.
I agree however that compatibility with the latest versions happens on a best effort basis, so don't get this wrong :) Also I agree that the setup that lead to this very issue (mixing system / conan packages) is not a good idea, which is why we disable conan entirely for the official package. |
Yep, that was for Evert :-) |
Slightly off topic for this bug, but if there was a way to build Audacity without Conan and still have the ui of the various plugins show up, I would do that in a heartbeat. |
I'm pretty sure that gtk2 only affects Calf |
Sorry for the delay in answering. If I use the Audacity build from Arch/extra, the graphical elements of the plugins are not aligned with their boxes on this Wayland system, whereas on the build from AUR where Conan is used with the ancient WxWidgets it all works properly. It's only WxWidgets and Portaudio that is pulled from Conan on this build, and the rest of the dependencies are system. I know it's not preferable mixing old and new libraries, but for me having functional software is more important. |
Bug description
When compiling the latest master of Audacity as of 2023-12-11, a compilation error pops up:
It would appear that catch.hpp is missing, according to the error message.
Steps to reproduce
Compile Audacity from git master.
Expected behavior
A clean compile.
Actual behavior
The error described in the description.
Audacity Version
current master / alpha / nightly build
Operating system
Linux
Additional context
About my system:
Version of catch2 installed: 3.4.0, from Arch binary repos, second release.
The text was updated successfully, but these errors were encountered: