Hi all
Using a cheap Rpi Zero 32 bit for a project.
Using version 1.10 on Debian 11 everything is fine.
When I try to use it with Debian 12 I get this error:
-mfloat-abi=hard :selected architecture lacks an FPU
Recall many years ago there was a compile switch to emulate an FPU, but looking
at all the options now that does not seem to be the case.
Tried the various -fpu options to no avail.
Can someone shed some light on this please.
Regards
fbc works on Debian 11 but not on Debian 12
Re: fbc works on Debian 11 but not on Debian 12
If that really is the zero (and not -W etc), that is the same processor as the original RPI (BCM2835). Which does have FPU, but a lower level (ARMV6) vs later ones (ARMV7 or V8). So maybe the debian compiler dropped armv6, or you must explicitly select it ?
Re: fbc works on Debian 11 but not on Debian 12
Hi All
marcov, after using the magnifying glass to read the back of the board,
it is a Rpi Zero W v1.1. without Wifi.
Are there compile options that would rectify this problem. ?
Regards
marcov, after using the magnifying glass to read the back of the board,
it is a Rpi Zero W v1.1. without Wifi.
Are you referring to the FreeBasic compiler ? I don't understand your statement.So maybe the debian compiler dropped armv6, or you must explicitly select it ?
Are there compile options that would rectify this problem. ?
Regards
Re: fbc works on Debian 11 but not on Debian 12
Re: fbc works on Debian 11 but not on Debian 12
Hi All
fxm , I tried -fpu but will try -arch.
ps: Still not getting email notifications of replies ??
fxm , I tried -fpu but will try -arch.
ps: Still not getting email notifications of replies ??
Re: fbc works on Debian 11 but not on Debian 12
Hi Dinosaur
try the arm6 build from https://users.freebasic-portal.de/stw/b ... armv6-rpi/
try the arm6 build from https://users.freebasic-portal.de/stw/b ... armv6-rpi/
Re: fbc works on Debian 11 but not on Debian 12
Hi All
srvaldez , it does not show any 32 bit installs.
Regards
srvaldez , it does not show any 32 bit installs.
Regards
Re: fbc works on Debian 11 but not on Debian 12
Hi All
@fxm
Managed to get it to work with -arch native
Just as an observation: Debian 12 takes 3 min to boot on the Rpi Zero W v1.1
whereas Debian 11 takes 2 min.
Many thanks for the help.
Regards
@fxm
Managed to get it to work with -arch native
Just as an observation: Debian 12 takes 3 min to boot on the Rpi Zero W v1.1
whereas Debian 11 takes 2 min.
Many thanks for the help.
Regards
Re: fbc works on Debian 11 but not on Debian 12
fbc uses gcc to compile programs.
fbc intends to build to 'arm-linux-gnueabihf' target, but gcc default options have changed over the years
- required on gcc 12: -march=armv7-a does not enable hard float so -march=armv7-a+fp required
- optional on gcc 8 through 11: -march=armv7-a has hard-float by default so is same as -march=armv7-a+fp
- won't work on gcc 7 and earlier: -march=armv7-a only, hard-float by default, '-march=armv7-a+fp' is not recognized and can't be used
https://freebasic.net/forum/viewtopic.p ... 36#p301636
-
- Posts: 43
- Joined: Jun 21, 2016 13:06
Re: fbc works on Debian 11 but not on Debian 12
I am trying to install fbc 10.1 on debian 12.5 (not arm). It installs but doesn't run as the dependencies are not met. I have tried to put symbolic links to the current versions and that sort of works, but then the contents of the files in the link seem to find other dependencies that are not met. Is there a non arm build for debian that I am not seeing, or does one of the ubuntu builds work?
Thanks,
John
Thanks,
John