D being talked about at gcc.gnu.org (RPM)

Philip Van Hoof spam at pvanhoof.be
Wed Apr 19 01:54:40 PDT 2006


On Wed, 2006-04-19 at 00:25 +0200, Anders F Björklund wrote:
> Philip Van Hoof wrote:
> 
> > I tried transforming your spec file into one for specifically Fedora
> > Core 4. As Fedora Core 4 has a compiler (with updates installed it's
> > gcc
> > 4.0.2) that works with gdc.
> 
> > I failed because I'm getting this internal compiler error :(
> 
> "Almost works", I guess ? I know that 4.0.0 threw some fits,
> but 4.0.1 has been working OK for the Mac builds at least...
> 
> I'll give your package a spin in a virtual FC4 environment, later.

It looks like the problem has something todo with the changing of the
vendor and version which the spec file does it try keeping the version
exactly the same as the distribution compiler:

This part in the .spec file:

perl -pi -e 's/4\.0\.3/4.0.2/' gcc/version.c
perl -pi -e 's/"%{gcc_version}"/"%{gcc_version} \(release\)"/' gcc/version.c
perl -pi -e 's/\((prerelease|experimental|release|Red Hat[^)]*)\)/\(Red Hat %{version}-%{gcc_release}\)/' gcc/version.c

The code fails at an assertion that checks the version and vendor name
the first time the xgcc compiler is used.





More information about the D.gnu mailing list