-
Notifications
You must be signed in to change notification settings - Fork 23
setting target FPU #2
Comments
Unfortunately I won't be of much help to you here. You might want to try asking on the Yocto mailing list. Someone on there might have some experience compiling to your target. |
Ok. I'm in contact with the community throurgh their irc channel. I'll close the issue but will keep it updated as soon as a solution comes up. |
@HerrMuellerluedenscheid , we ran into a similar issue when compiling for the RPi 3. Our work around was to switch to soft float ABI and disable the VFP unit. This isn't a great solution as this has an impact on performance, but it goes us going. I'd be interested in hearing if you got any better solutions from talking to the larger community. |
@mcampbellizo Sure, I'm happy to keep you updated. For now, I would be super happy if the soft float ABI would work. Can you give me a hint on how you did that? So far I only found the |
@HerrMuellerluedenscheid we had to change the DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4" and we changed it to DEFAULTTUNE ?= "cortexa7t-neon" This changed from the hard float ABI To soft float ABI and disabled used of the vector floating point unit. The base |
That works! I'll see how bad the performance loss is but for now this allows to compile this recipe on Allwinner H2 plus (branch: warrior)! |
That's awesome! We didn't get exact numbers but did note a measurable difference in at least Scipy performance. Depending on how bad it is for us we may investigate how to get this working with hard float and VFP enabled. Either way, do you think a note about needing to disable VFP and hard float with an example in the |
I've just made the wiki for this repo publicly editable, so I think that would be a good place to add things like this. You can create a new page for your particular architecture/target with specific instructions. Let me know if you're not able to do so. |
Hi, I also ran into the same issue, changing the default tune worked (a9 core). I'm curious if someone finds a way to keep hard abi. |
I'm also hitting this issue. Looking into a bit it seems like the issue is that the fortran compiler is not called with the -mfloat-abi -mfpu set as it should, so it generates soft-float binaries and then the linker complains when linking with the other objects file correctly compiled from C with correct float options. I'll most likely be digging into this the next few days, and will provide updates here if I have any news. |
Hi,
This recipe compiles perfectly fine using qemu_x86-64 but unfortunately I'm stuck with the compilation for the target platform which is powered by an Allwinner H2 SoC. 'do_compile' fails with:
(Note the warning on the VFP register arguments)
I did some research and assume that it is linked to the floating point processing on the target device. I tried to enforce hard and soft FPU handling by setting
target_FPU="soft"
(orhard
) in the machine configuration. In both cases compilation crashed at the same step.Do you have an idea how to fix the compilation for this target machine?
The text was updated successfully, but these errors were encountered: