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
759
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,182
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
759
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
759
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.
  • Sicklyboy @ Sicklyboy:
    @BigOnYa, I'll rip a bag off my Volcano to that, brother
    +2
  • a_username_that_is_cool @ a_username_that_is_cool:
    DDDS . Dual Developer Dedede System :)
    +1
  • BakerMan @ BakerMan:
    also happy birthday @Xdqwerty
    +1
  • BigOnYa @ BigOnYa:
    Is it me you're looking for?
  • MysticStarlight @ MysticStarlight:
    'Cause I wonder where you are
  • MysticStarlight @ MysticStarlight:
    wait I got the lyrics mixed up
    +1
  • BigOnYa @ BigOnYa:
    And I wonder what you do...Lol
  • BigOnYa @ BigOnYa:
    Its all good, I'm here to talk to you.
  • BigOnYa @ BigOnYa:
    Hello
  • BigOnYa @ BigOnYa:
    I've been playing fallout4 all day, I went into a elevator and it kept going, never stopped, waited 5 minutes, must of been a bug. How bout you, whatcha do today?
    +1
  • MysticStarlight @ MysticStarlight:
    I'm wondering why a stray tuxedo cat has a cloudy eye
  • MysticStarlight @ MysticStarlight:
    I've been playing TOTK all day also
    +1
  • MysticStarlight @ MysticStarlight:
    Oh you reminded me of those elevator nightmares
  • BigOnYa @ BigOnYa:
    Awesome game, fun how they force you to build, but you can build as you want
  • MysticStarlight @ MysticStarlight:
    It is super fun, I actually prefer it over BoTW
    +1
  • BigOnYa @ BigOnYa:
    The guy holding the sign always cracked me up, esp when you fail, and it falls
  • MysticStarlight @ MysticStarlight:
    Ah yes, that guy lol. I still need to find all his signs. The game has a lot to do though so I don't know what to finish first
  • MysticStarlight @ MysticStarlight:
    I'm 120 hours in and am still like 44.4% done
    +1
  • BigOnYa @ BigOnYa:
    Good times. Building is starting to get good around now for you. You making me want to make run thru again.
  • BigOnYa @ BigOnYa:
    Ok good chatting, enjoy your gaming, and avoid the lightning, or put your sword away. Good night.
  • K3Nv2 @ K3Nv2:
    All I gotta do is not spend $10 in the next 5 days and I'll break even this month lol
  • K3Nv2 @ K3Nv2:
    @BigOnYa, tell your wife not to forget her wallet
    K3Nv2 @ K3Nv2: @BigOnYa, tell your wife not to forget her wallet