Homebrew "Failed to merge target specific data of file..." "uses VFP register arguments..."

Substance12

Well-Known Member
OP
Member
Joined
Aug 2, 2015
Messages
562
Trophies
0
XP
549
Country
Argentina
Well, if any of you saw my previous thread, I was able to compile libsf2d by changing the makefile to an old one that used aemstro instead of nihstro, and updating ctrulib.

Now that i've got all the files I need, i'm having issues to compile the project. I'm trying to compile LÖVEPotion, and it creates files without issues until this point:

Code:
linking LovePotion-master.elf
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld.exe: error: c:/Users/censored/Downloads/LovePotion-master/LovePotion-master.elf uses VFP register arguments, c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/lib\libpng.a(libpng15_la-png.o) does not
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/lib\libpng.a(libpng15_la-png.o)

After that it's like a million lines of the same, from files related to the libraries libsf2d, libsftd, libfil, jpeg, png and a couple others, culminating with this:

Code:
collect2.exe: error: ld returned 1 exit status

I have already tried changing some flags in the makefile, trying using make in some different environments and using make clean, but it's always the same. Yes, I did put -mfloat-abi=hard.
 

Substance12

Well-Known Member
OP
Member
Joined
Aug 2, 2015
Messages
562
Trophies
0
XP
549
Country
Argentina
If you compiled everything (sf2d, png, z, jpeg, etc.) with -mfloat-abi=hard then there wouldn't a problem.

Oh my god, I think that was the issue. I was using mtheall's makefile and it was on softfp. The other libraries were on hard. I'll try changing softfp to hard.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Pass