From e1d7a27ea0a17824be11f6a529860d7697695c77 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 4 Aug 2021 21:15:47 -0700 Subject: 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 (cherry picked from commit e4978cc3ef008c69a49295dc8bc997b8291f6b11) --- conf/nonclangable.conf | 6 ++++++ 1 file changed, 6 insertions(+) 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" # libatomic to provide these functions, therefore can not compile redis on mips TOOLCHAIN:pn-redis:mips = "gcc" +# latest 32bit arch versions fails to compile with clang 13 +# common/JackEngineControl.h:89:5: error: requested alignment is less than minimum alignment of 8 for type 'Jack::JackFrameTimer' +#| alignas(UInt32) JackFrameTimer fFrameTimer; +#| ^ +TOOLCHAIN:pn-jack = "${@['clang','gcc'][d.getVar('SITEINFO_BITS') != '32']}" + CFLAGS:append:pn-liboil:toolchain-clang:x86-64 = " -fheinous-gnu-extensions " #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 -- cgit v1.2.3-54-g00ecf