-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Disable check for Objective C compiler (AC_PROG_OBJC) on non-macOS systems #9392
Comments
Does this break anything? |
We have downstream report of user ("targeting Gentoo Linux and Chromium OS") complaining about check for Objective-C compiler selection: https://bugs.gentoo.org/830584 |
cc @10ne1 |
Thanks for reporting this. It is just a minor annoyance for us (ChromiumOS based on Gentoo) and it would be nice to avoid having to set an OBJC compiler if it is not necessary. For context, we are interested in building packages only with LLVM tools/Clang and OBJC defaults to gcc. We intentionally block GCC/binutils, but we still need to keep it around for glibc and a very small handful of other packages which can't be built with LLVM/Clang (yet! it will happen eventually heh). Again this is only a minor annoyance because we can explicitly set OBJC to Clang, but it would be nice to not have to do so. Thanks again! |
I'm not likely to get the to look at this in the near future, if someone wants to submit a patch, great. |
Can you migrate to use the CMake build instead? Our autotools build is on its last legs, and I anticipate we will be deprecating it before too long in favor of CMake. |
Protobuf's CMake build system is still in poorer state. Until commit a9cf69a 3 days ago, CMake build system was not setting sonames of libraries properly, which means that they were ABI-incompatible with libraries created by Autotools build system.
Which implies that it is not to be used on non-Windows systems. |
@Arfrever looks like you might have a have the start of a patch already? Is this something you could put up a PR for? And while I'm asking, what's the |
Testing out a minimal version of the above diff to see if it atleast works on the CI systems. |
Looks like something trips up on |
Autotools build system currently unconditionally checks for Objective C compiler:
protobuf/configure.ac
Line 83 in 0ac74b8
However later there is:
protobuf/configure.ac
Lines 217 to 224 in 0ac74b8
OBJC_CONFORMANCE_TEST
is used inconformance/Makefile.am
.The only usage of Objective C compiler is for compiling source files which are used only when
OBJC_CONFORMANCE_TEST
is true.This means that aforementioned check for Objective C compiler is unnecessary on non-macOS systems (when
$target_os
!=darwin*
).Fix:
The text was updated successfully, but these errors were encountered: