Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #55002

Re: Debian kernel 4.7.2-1 build on Sid and Jessie fails

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.kernel, linux.debian.maint.boot
Subject Re: Debian kernel 4.7.2-1 build on Sid and Jessie fails
Date 2016-09-02 17:50 +0200
Message-ID <scYT7-1gF-3@gated-at.bofh.it> (permalink)
References <scUw9-7bm-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Fri, 2016-09-02 at 03:35 -0700, Jose R Rodriguez wrote:
> Niltze, all!
> 
> Currently running Reiser4-patched kernel 4.7 built from pristine
> source upstream:
> 
> Linux mictlantecuhtli 4.7.0.tezcatlipoca #1 SMP PREEMPT Wed Aug 10
> 05:04:17 PDT 2016 x86_64 GNU/Linux
> 
> On the other hand, I have experienced multiple issues building
> Debian'ized kernel 4.7.2-1 -- first building on Jessie modified for
> GCC 4.9;
>  and then attempting build on Jessie-built GCC 5.3. And finally I
> attempted the build on Debian Unstable and it failed, as well.
> Below are the offending sections -- which, by the way -- roughly
> correspond in all instances of Debian and GCC:
[...]

This happens if you invoke debian/rules directly and not through dpkg-
buildpackage.

debian/rules.real does:

    ifdef OVERRIDE_HOST_TYPE
      CROSS_COMPILE := $(OVERRIDE_HOST_TYPE)-
    else ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
      CROSS_COMPILE := $(DEB_HOST_GNU_TYPE)-
    else
      CROSS_COMPILE :=
    endif

So the assumption is that all those architecture variables, or none,
are defined.  dpkg-buildpackage does define them all.

However, debian/rules does:

    DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)

and does not define any other architecture variables.

We should probably include /usr/share/dpkg/architecture.mk in
debian/rules instead.

Ben.

-- 
Ben Hutchings
Unix is many things to many people,
but it's never been everything to anybody.

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Debian kernel 4.7.2-1 build on Sid and Jessie fails jose.r.r@metztli.com (Jose R Rodriguez) - 2016-09-02 13:10 +0200
  Re: Debian kernel 4.7.2-1 build on Sid and Jessie fails Ben Hutchings <ben@decadent.org.uk> - 2016-09-02 17:50 +0200
    Re: Debian kernel 4.7.2-1 build on Sid and Jessie fails Jose R R <jose.r.r@metztli.com> - 2016-09-03 18:40 +0200
    Re: Debian kernel 4.7.2-1 build on Sid and Jessie fails Ben Hutchings <ben@decadent.org.uk> - 2016-09-03 20:00 +0200
      Re: Debian kernel 4.7.2-1 build on Sid and Jessie fails Jose R R <jose.r.r@metztli.com> - 2016-09-05 23:50 +0200

csiph-web