D on the Raspberry Pi

Johannes Pfau nospam at example.com
Mon Aug 13 10:41:23 PDT 2012


Am Mon, 13 Aug 2012 11:27:39 +0200
schrieb "Stefan Frijters" <sfrijters at gmail.com>:

> The relevant errors seem to be
> 
> conftest.c:1:0: sorry, unimplemented: -mfloat-abi=hard and VFP
> 
> This is something that is explicitly set in the configure command 
> above to match what I saw in gcc -v. If I remove this, will this 
> remove the advantage of having the hard floats available at all 
> in Raspbian (unlike Squeeze)? Or will this be implicit anyway 
> (and thus cause compilation to fail again) through the way the 
> base gcc is compiled?

Not sure if it's implicit, but if your new compiler doesn't match the
system ABI strange things will happen (especially related to floating
point, using math functions from libc wouldn't work, ...)

Looks like gcc usually doesn't support -mfloat-abi=hard and
--with-fpu=vfp, but the raspbian folks patched their gcc sources to
support that. I'm not sure why they haven patched the gcc-source
package though.

You probably have to ask the raspbian folks where you can get that
patch.
You could also try to use the gcc sources from the gcc package
(apt-get source gcc), but those sources are already patched for gdc
support, so the ./update-gcc.sh script could fail.




More information about the D.gnu mailing list