- Notifications
You must be signed in to change notification settings - Fork 15.1k
Description
| Bugzilla Link | 33957 |
| Resolution | FIXED |
| Resolved on | Jul 31, 2017 10:48 |
| Version | 5.0 |
| OS | Linux |
| Blocks | #33196 |
| Attachments | testcase, commandline options |
| CC | @zmodem,@RKSimon,@rengolin |
Extended Description
clang 5.0 when compiled for cross compiling for x86_64 -> armv7-a, it ends up with a segfault. It works ok with 4.x
here is compiler cmdline to see this error. If -O is removed it works ok. and secondly if -march=armv7a is removed it works ok again.
arm-bec-linux-gnueabi-clang --sysroot=/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/ghostscript/9.21-r0/recipe-sysroot /tmp/tmp.jrBJh4IskD/mediasize-36707b.c -c -mlittle-endian -march=armv7a -O
clang-5.0: error: unable to execute command: Segmentation fault (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 5.0.0 (git://github.com/llvm-mirror/clang.git 4c3e691e191e1bef23ee65d4c8d8a640a51c6733) (git://github.com/llvm-mirror/llvm.git d175f9addcfa01156feb0711fabc70e7bb72b7cb)
Target: arm-bec-linux-gnueabi
Thread model: posix
InstalledDir: /mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/ghostscript/9.21-r0/build/../recipe-sysroot-native/usr/bin/arm-bec-linux-gnueabi
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang-5.0: note: diagnostic msg: