diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-11-01 00:25:52 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-11-01 06:20:47 -0700 |
commit | 3b6820fde10f07c16439274395575c982265eb73 (patch) | |
tree | 8343deeaf64839279092118487d40ef1e37c2522 | |
parent | d246141aaf71c739d50e32d0c10e12eecf920e45 (diff) | |
download | meta-clang-3b6820fde10f07c16439274395575c982265eb73.tar.gz |
gcompat: Use gcc to compile on mips
clang does not like __builtin_return_address macro and errors out
| error: return address can be determined only for current frame
| 18 errors generated.
| make: *** [Makefile:81: libgcompat/execinfo.o] Error 1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | conf/nonclangable.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index d906661..84d5064 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf | |||
@@ -167,6 +167,11 @@ TOOLCHAIN:pn-mariadb:powerpc64le = "gcc" | |||
167 | #| ^ | 167 | #| ^ |
168 | TOOLCHAIN:pn-jack = "${@['clang','gcc'][d.getVar('SITEINFO_BITS') != '32']}" | 168 | TOOLCHAIN:pn-jack = "${@['clang','gcc'][d.getVar('SITEINFO_BITS') != '32']}" |
169 | 169 | ||
170 | #| error: return address can be determined only for current frame | ||
171 | #| error: return address can be determined only for current frame | ||
172 | #| error: return address can be determined only for current frame | ||
173 | TOOLCHAIN:pn-gcompat:mips = "gcc" | ||
174 | |||
170 | CFLAGS:append:pn-liboil:toolchain-clang:x86-64 = " -fheinous-gnu-extensions " | 175 | CFLAGS:append:pn-liboil:toolchain-clang:x86-64 = " -fheinous-gnu-extensions " |
171 | 176 | ||
172 | #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 | 177 | #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 |