summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-08-04 21:15:47 -0700
committerKhem Raj <raj.khem@gmail.com>2023-09-08 09:08:54 -0700
commite1d7a27ea0a17824be11f6a529860d7697695c77 (patch)
tree22109e8342862888a553442ba0c2186d78f91599
parent6ac05dcd01171f46af1ec2006c6b09097e1b7c07 (diff)
downloadmeta-clang-e1d7a27ea0a17824be11f6a529860d7697695c77.tar.gz
jack: Use gcc to build for 32bit arches
Latest jack does not build with clang-13 for 32bit arches | In file included from ../git/common/JackFreewheelDriver.cpp:23: | ../git/common/JackEngineControl.h:67:5: error: requested alignment is less than minimum alignment of 8 for type 'Jack::JackTransportEngine' | alignas(UInt32) JackTransportEngine fTransport; | ^ | ../git/common/JackEngineControl.h:89:5: error: requested alignment is less than minimum alignment of 8 for type 'Jack::JackFrameTimer' | alignas(UInt32) JackFrameTimer fFrameTimer; | ^ | 2 errors generated. Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit e4978cc3ef008c69a49295dc8bc997b8291f6b11)
-rw-r--r--conf/nonclangable.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf
index 71ac3b0..749bcc3 100644
--- a/conf/nonclangable.conf
+++ b/conf/nonclangable.conf
@@ -151,6 +151,12 @@ TOOLCHAIN:pn-libffi:armeb = "gcc"
151# libatomic to provide these functions, therefore can not compile redis on mips 151# libatomic to provide these functions, therefore can not compile redis on mips
152TOOLCHAIN:pn-redis:mips = "gcc" 152TOOLCHAIN:pn-redis:mips = "gcc"
153 153
154# latest 32bit arch versions fails to compile with clang 13
155# common/JackEngineControl.h:89:5: error: requested alignment is less than minimum alignment of 8 for type 'Jack::JackFrameTimer'
156#| alignas(UInt32) JackFrameTimer fFrameTimer;
157#| ^
158TOOLCHAIN:pn-jack = "${@['clang','gcc'][d.getVar('SITEINFO_BITS') != '32']}"
159
154CFLAGS:append:pn-liboil:toolchain-clang:x86-64 = " -fheinous-gnu-extensions " 160CFLAGS:append:pn-liboil:toolchain-clang:x86-64 = " -fheinous-gnu-extensions "
155 161
156#io_getevents.c:25:141: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions 162#io_getevents.c:25:141: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions