Skip to content
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

DO-NOT-MERGE: Problem with homebrew's libsamplerate in combination with Xcode 12+ #8

Closed
wants to merge 2 commits into from

Conversation

mgeier
Copy link
Contributor

@mgeier mgeier commented Oct 14, 2020

WARNING: This is not supposed to be merged!

This is just to illustrate a potential problem, as shown in CI.

The libsamplerate package of course doesn't have to be installed with brew, but it might be, probably as a dependency of another used package.

Anyway, when installing libsamplerate with brew, everything works fine, see 9f3a3d2.

But wait for it ...

@mgeier
Copy link
Contributor Author

mgeier commented Oct 14, 2020

... because if we change from the default Xcode 11.7 to Xcode 12 (see 93828f3), the macOS tests fail with this error (https://github.com/Prior99/libsamplerate-sys/pull/8/checks?check_run_id=1252962481):

  /Users/runner/work/libsamplerate-sys/libsamplerate-sys/libsamplerate/tests/clone_test.c:68:26: error: implicit declaration of function 'src_clone' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
          if ((src_state_cloned = src_clone (src_state, &error)) == NULL)
                                  ^

This is likely related to this change in libsndfile: libsndfile/libsamplerate@945b993
See also libsndfile/libsamplerate#70 (comment).

I'm not sure what's causing this, but there seems to be some confusion between the libsamplerate installed by brew and the one taken from the submodule of libsamplerate-sys.

Strangely, this error only appears with Xcode 12 and 12.2, but not with version 11.7 and below.

Whatever it is, I think the build system of libsamplerate-sys should try to not be confused by other versions of libsamplerate that happen to be installed at the moment.

@mgeier
Copy link
Contributor Author

mgeier commented Oct 14, 2020

BTW, Xcode 12 will become the default in a few days (see actions/runner-images#1712), probably making the problem more apparent.

mgeier added a commit to mgeier/libsamplerate-sys that referenced this pull request Nov 15, 2020
@mgeier
Copy link
Contributor Author

mgeier commented Nov 15, 2020

This might actually be a bug in libsamplerates tests, but anyway, with #9 we can work around this (and speed up the build time in the process).

@Prior99 Prior99 closed this in c82a58a Nov 19, 2020
@mgeier mgeier deleted the ci-xcode-12 branch November 19, 2020 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant