[cfe-dev] Clang compiling needs help

Simon Dardis via cfe-dev cfe-dev at lists.llvm.org
Tue Feb 7 06:04:22 PST 2017


The "warning: linking abicalls files with non-abicalls files" warning is almost certainly arising from a
long standing LLVM bug where all files produced from the integrated assembler for MIPS were marked
as being abicalls files. It's fixed on ToT.

In theory the produced binary should be fine, as the error is occurring from incorrect ELF header
flags. The error from 'make' may be due to treating warnings as errors.

The CFLAGS you've specified appear to be inconsistent with your mips-elf target. "-fno-pic -mabicalls"
produces position dependant code that can call position independent code. This would be for environments
such as Linux/BSDs/etc. mips-elf I expect is a bare-metal environment, so -mabicalls would not be used for
that target.

Thanks,
Simon











More information about the cfe-dev mailing list