I am trying to link a library compiled by RealView DS-5 in Code Composer Studio 5.1 for the LM4F232H5QD with M4 floating point support (--float_support=FPv4SPD16), and I am getting the error:
"fatal error #16016: file "../../xxx.lib<yyy.o>" was built without VFP coprocessor support while a previously seen file was; combining incompatible files"
The library that I am linking against has no floating point operations, and I have tried compiling the lib with every FPU type supported by the DS-5 compiler, including "FPv4-SP" (the Cortex-M4F cpu default). I have also tried every fpmode available. The DS-5 compiler is version 5.01 Build 64, and the TI toolchain version is 4.9.1. I've tried TI toolchain version 4.9.3 as well on CCS4 with the same results.
I have seen other threads with the same issue on different platforms with different toolchains. Is this an issue with the TI linker?
Please see if this Wiki article helps. -George
TI C/C++ Compiler Forum ModeratorPlease click Verify Answer on the best reply to your question.The Compiler Wiki answers most common questions.Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.
Thanks for the response. Unfortunately, It didn't resolve the issue for me.
Also, I have tried enabling eabi support with the DS-5 compiler, and it does not fix the issue.
I presume xxx.lib is the library compiled by DS-5. Please use the command-line utility ofd470 to dump xxx.lib and post the result here. If you would rather excise the names of symbols and whatnot, you can cut it down to just the file compatibility information for yyy.o. Search through the dump for the section corresponding to yyy.o and copy the "Object File Information" and "Build Attributes" sections.
Yes, xxx.lib is the library compiled by DS-5. I've attached the ofd dump here:
The command line options I used with the DS-5 are as follows:
--cpu=Cortex-M4.fp --fpu=FPv4-SP --library_interface=aeabi_clib --thumb -Ospace
Thank you for looking into this issue.
This is a known bug, SDSCM00033221. The issue is that the TI linker will always treat files from other vendors as not being built with VFP support, regardless of the options used. The bug has been fixed and will be available in the 5.0 release which will be available this summer.
Thanks for clearing this up for me. I will be looking forward to the next release.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.