Homebrew VFP linking errors even when setting -mfloat-abi=hard to both the compiler and linker

Pikachuk

Well-Known Member
OP
Member
Joined
Mar 19, 2016
Messages
768
Trophies
0
Age
23
Location
Bordeaux
XP
761
Country
France
Hi,
I have been working on trying to maintain the old wip godot 3ds port that got abandonned. I was able to get it updated to godot 2.1.7 RC and upgrade the build scripts to python 3 as well as fix the obsolete citro3d code, however when building I keep getting a bunch of VFP errors I can't find any way to fix.
This is normally an issue we encounter mostly when building with -mfloat-abi=soft, however, I am a 100% sure -mfloat-abi=hard is used, it is even shown when building with verbose compile options that this is the proper float type used for both compiler *and* linker

Here is the repository : https://github.com/SeleDreams/godot-3ds
the build options being in platform/3ds/detect.py

does anyone know why that might happen even with -mfloat-abi=hard ?
 

PabloMK7

Red Yoshi! ^ω^
Developer
Joined
Feb 21, 2014
Messages
2,617
Trophies
2
Age
24
Location
Yoshi's Island
XP
5,195
Country
Spain
Looking at the log, it looks like you are "using" the lib files found in "devkitARM\arm-none-eabi\lib", however those are compiled with soft float ABI. You should be using the lib files found in "devkitARM\arm-none-eabi\lib\armv6k\fpu" which have hard float ABI.
 
  • Like
Reactions: Pikachuk

Pikachuk

Well-Known Member
OP
Member
Joined
Mar 19, 2016
Messages
768
Trophies
0
Age
23
Location
Bordeaux
XP
761
Country
France
Looking at the log, it looks like you are "using" the lib files found in "devkitARM\arm-none-eabi\lib", however those are compiled with soft float ABI. You should be using the lib files found in "devkitARM\arm-none-eabi\lib\armv6k\fpu" which have hard float ABI.
Oh, thanks, I'm going to try it now, I never considered that this could be the issue

edit : that worked, thank you a lot
 

Pikachuk

Well-Known Member
OP
Member
Joined
Mar 19, 2016
Messages
768
Trophies
0
Age
23
Location
Bordeaux
XP
761
Country
France
Looking at the log, it looks like you are "using" the lib files found in "devkitARM\arm-none-eabi\lib", however those are compiled with soft float ABI. You should be using the lib files found in "devkitARM\arm-none-eabi\lib\armv6k\fpu" which have hard float ABI.
Unrelated but due to godot using scons and not makefile, it generates directly an elf with gcc, is there a devkitpro cli binary i could use to pack a 3dsx out of this binary and the godot game assets
edit: found it
 
Last edited by Pikachuk,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Ratings for it are calling it bad, but it looks cool. Damn 48/100 rating.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    looks are deceiving
  • BigOnYa @ BigOnYa:
    Yea people always down vote games anymore seems like, good or bad, bunch of haters
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, review bombing?
    +1
  • K3Nv2 @ K3Nv2:
    Yeah seems like people hate on original ideas anymore
  • K3Nv2 @ K3Nv2:
    Oh were sorry our small dev team can't shit out a cod clone every 6 months
    +1
  • K3Nv2 @ K3Nv2:
    Mostly positive on steam
  • BigOnYa @ BigOnYa:
    Eew, you use steam, I'm down voting you cause you not using or playing what I like.
  • K3Nv2 @ K3Nv2:
    Yes and epic and gog, sleep with me
  • K3Nv2 @ K3Nv2:
    Gay
  • BigOnYa @ BigOnYa:
    Homophobic
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, whats wrong with steam?
  • BigOnYa @ BigOnYa:
    Nothing, I was just teasing
  • K3Nv2 @ K3Nv2:
    He's a big tease trying to take my booty
  • BigOnYa @ BigOnYa:
    No, I don't wanna make ancientboi mad, I know you two already have a thing going
    +1
  • K3Nv2 @ K3Nv2:
    He divorced me once I threatened him with the fbi
    +2
  • Xdqwerty @ Xdqwerty:
    @K3Nv2,
    he also fucked uremum despite being gay
  • K3Nv2 @ K3Nv2:
    Yeah so did you and I want back child support pay enjoy the lawsuits
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, im virgin
  • K3Nv2 @ K3Nv2:
    So was mother Theresa
  • BigOnYa @ BigOnYa:
    @XdqwertyThat's ok, he is too
    +1
  • K3Nv2 @ K3Nv2:
    Uremum doesn't think so
    +2
  • Xdqwerty @ Xdqwerty:
    good night
    Xdqwerty @ Xdqwerty: good night