[Bug 296] Compile Error on FreeBSD PowerPC64

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Fri Jul 6 16:32:30 UTC 2018


https://bugzilla.gdcproject.org/show_bug.cgi?id=296

--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Curtis from comment #2)
> I'm sure you know that the patches above are against different gcc code
> bases.  It is difficult to determine if anything is missing, because the
> code is so different.  At any rate I applied the patch in master with code
> rejects for "powerpcspe" which are not in the gcc 7 code base. I got the
> error:
> 
> ".. fatal error: tm_d.h: No such file or directory"
> 

Indeed, I just spotted that there is nothing in the v7 patch that looks like
this:

    d_target_objs="rs6000-d.o"

If I recall right, that's because the powerpc configure path adds rs6000-d.o
using this assignment:

    d_target_objs="${d_target_objs} ${cpu_type}-d.o"

Which is too absent from the v7 patches.  So ig you look at that particular
hunk, what you are searching for in the config.gcc file is the following line:

    cxx_target_objs="${cxx_target_objs} ${cpu_type}-c.o"

You want to add the d_target_objs assignment *after* that.


> I also took a look at the v7 patches and there's a patch
> "patch-targetdm-untested-7.patch", that I gave a try, which presented
> different errors.
> 

The untested patch series just adds architectures not covered by CI, there's
nothing powerpc related there.  We already have powerpc64le builds tested, so I
know that everything more or less is fine on master.  The problem is that that
specific the change did not make it to other branches it seems.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the D.gnu mailing list