Bug#881939: gcc: disable D when cross build native GCC
On Thu, 16 Nov 2017 20:45:44 +0100 Iain Buclawwrote: > On 16 November 2017 at 20:34, YunQiang Su wrote: > > Package: src:gcc-7 > > Version: 7.2.0-16 > > > > When we build native GCC with the cross gcc, D will always fails. > > So please disable D in this condition. > > > > @@ -891,6 +926,12 @@ ifeq ($(with_base_only),yes > >with_d := no > > endif > > > > +ifneq ($(DEB_BUILD_ARCH), $(DEB_HOST_ARCH)) > > +ifeq ($(DEB_HOST_ARCH), $(DEB_TARGET_ARCH)) > > + with_d := no > > +endif > > +endif > > + > > ifeq ($(with_d)-$(with_separate_gdc),yes-yes) > >ifneq (,$(findstring gdc,$(PKGSOURCE))) > > languages := c c++ > > > > Out of interest, why/how does it fail? It need to a object file twice, one time for native, one time for cross. To solve this problem, I guess we need to do lots of work to improve the build system of D. > > Iain. > >
Bug#881939: gcc: disable D when cross build native GCC
On 16 November 2017 at 20:34, YunQiang Suwrote: > Package: src:gcc-7 > Version: 7.2.0-16 > > When we build native GCC with the cross gcc, D will always fails. > So please disable D in this condition. > > @@ -891,6 +926,12 @@ ifeq ($(with_base_only),yes >with_d := no > endif > > +ifneq ($(DEB_BUILD_ARCH), $(DEB_HOST_ARCH)) > +ifeq ($(DEB_HOST_ARCH), $(DEB_TARGET_ARCH)) > + with_d := no > +endif > +endif > + > ifeq ($(with_d)-$(with_separate_gdc),yes-yes) >ifneq (,$(findstring gdc,$(PKGSOURCE))) > languages := c c++ > Out of interest, why/how does it fail? Iain.
Bug#881939: gcc: disable D when cross build native GCC
Package: src:gcc-7 Version: 7.2.0-16 When we build native GCC with the cross gcc, D will always fails. So please disable D in this condition. @@ -891,6 +926,12 @@ ifeq ($(with_base_only),yes with_d := no endif +ifneq ($(DEB_BUILD_ARCH), $(DEB_HOST_ARCH)) +ifeq ($(DEB_HOST_ARCH), $(DEB_TARGET_ARCH)) + with_d := no +endif +endif + ifeq ($(with_d)-$(with_separate_gdc),yes-yes) ifneq (,$(findstring gdc,$(PKGSOURCE))) languages := c c++ -- YunQiang Su