Hey folks, I am migrating our huge *Android* code base from GCC(Eclipse IDE) to clang(Android Studio). Error: SIGILL (signal SIGILL: illegal instruction) At a weird line in the code, I am getting this error. which points to a closing curly bracket of an if condition. After googling, I am assuming it is some kind of architecture flag issue. I am using same flags which were used for GCC. *Note:* I am currently working on Arm build. Here are the architecture flags for ARM7: -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mtune=cortex-a8 -mthumb -DTARGET_THUMB2 Can anyone help me debug this issue? Is there any issue with the flags with clang? Thanks, Rohit Kumar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170826/61a22667/attachment.html>
On Sat, Aug 26, 2017 at 02:16:10PM +0530, ROHIT KUMAR via llvm-dev wrote:> Error: SIGILL (signal SIGILL: illegal instruction) > > At a weird line in the code, I am getting this error. which points to a > closing curly bracket of an if condition.Look at the precise assembler instruction of the trap. Check the operands for unalignment, based on the description of the instruction. Trace back what data the operand is derived from. Joerg