diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-05-06 21:59:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-05-07 08:26:03 +0200 |
commit | b0a4b49a88aacfbc127965c0c6fe50a065eb3a0f (patch) | |
tree | 74cdb14b4dff7cad57d8635d4dfa7d6d8b123416 /external/python3 | |
parent | 30b6b43bcb8fb772f535be9fd6538465b080fe7a (diff) |
external/python3: Clang 13 trunk implements --print-multiarch now
...since
<https://github.com/llvm/llvm-project/commit/a921d2d2fb46b898794091e7410426c518a4f0cc>
"[Driver] Add -print-multiarch", which causes an issue when building
ExternalProject_python3 on macOS:
> checking build system type... x86_64-apple-darwin19.6.0
> checking host system type... x86_64-apple-darwin19.6.0
[...]
> checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a bug report
> make[1]: *** [/Users/stephan/Software/lo/core/external/python3/ExternalProject_python3.mk:80: /Users/stephan/Software/lo/core/workdir/ExternalProject/python3/build] Error 1
as workdir/UnpackedTarball/python3/configure.ac computes PLATFORM_TRIPLET as
"darwin", and instead of computing MULTIARCH as empty (as `$CC
--print-multiarch` used to just print
> clang: error: unsupported option '--print-multiarch'
> clang: error: no input files
to stderr), it now computes it as e.g. "x86_64-apple-darwin19.6.0" (or whatever
-target is explicitly set to in $CC), so the check that they have equal values
if they are bot nonempty fails now when building against Clang 13 trunk. (This
is not yet an issue with any Apple Clang version, though.)
Until this is eventually fixed upstream at <https://github.com/python/cpython>,
just keep pretending that `clang --print-multiarch` would cause no stdout output
on macOS when determining MULTIARCH.
Change-Id: Ic1b27c6791b327d5709a9d61a6d675c3fa8989bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115219
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'external/python3')
-rw-r--r-- | external/python3/darwin.patch.0 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/external/python3/darwin.patch.0 b/external/python3/darwin.patch.0 index 139cdc9780bb..30d20ed57578 100644 --- a/external/python3/darwin.patch.0 +++ b/external/python3/darwin.patch.0 @@ -8,3 +8,15 @@ .text /* ffi_call_unix64 (void *args, unsigned long bytes, unsigned flags, +--- configure ++++ configure +@@ -5167,7 +5167,9 @@ + fi + + ++if test "$(uname -s)" = Darwin; then MULTIARCH=; else + MULTIARCH=$($CC --print-multiarch 2>/dev/null) ++fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 |