D on the Raspberry Pi
Stefan Frijters
sfrijters at gmail.com
Fri Aug 17 11:02:16 PDT 2012
On Monday, 13 August 2012 at 17:41:24 UTC, Johannes Pfau wrote:
> 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.
Just a small update in this - I did as you suggested and went
over the harass the folks at the Raspbian forum. It turns out
that there's actually an ancient version available as a package,
but it's gdc-4.4 and doesn't even support D2, so that doesn't
help me any at the moment. Will still to try and get the
nitty-gritty details on their patching strategy - it looked like
their patches were in fact in the sources package as well.
More information about the D.gnu
mailing list