ARM compilation error, VFP registers used by executable, not object file

后端 未结 11 685
面向向阳花
面向向阳花 2020-11-28 07:47

I have been having this problem for the last few days and I can\'t get my head around what is really happening here, or what is the problem.

I have a makefile with t

11条回答
  •  抹茶落季
    2020-11-28 08:17

    I was facing the same issue. I was trying to build linux application for Cyclone V FPGA-SoC. I faced the problem as below:

    Error:  uses VFP register arguments, main.o does not
    

    I was using the toolchain arm-linux-gnueabihf-g++ provided by embedded software design tool of altera.

    It is solved by exporting: mfloat-abi=hard to flags, then arm-linux-gnueabihf-g++ compiles without errors. Also include the flags in both CC & LD.

提交回复
热议问题