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


Groups > linux.debian.kernel > #80276

Bug#1050991: FTCBFS amd64 -> arm64 due to using host-arch flags for native builds and vice-versa

From Johannes Schauer Marin Rodrigues <josch@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1050991: FTCBFS amd64 -> arm64 due to using host-arch flags for native builds and vice-versa
Date 2023-09-02 20:20 +0200
Message-ID <H9DnX-6eTa-7@gated-at.bofh.it> (permalink)
References <H95YZ-5SFI-1@gated-at.bofh.it> <H9DnX-6eTa-5@gated-at.bofh.it> <H95YZ-5SFI-1@gated-at.bofh.it> <H9DnX-6eTa-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

Hi,

Quoting Bastian Blank (2023-09-02 20:09:42)
> This is https://salsa.debian.org/kernel-team/linux/-/merge_requests/833 now.

thank you!

> > I had a look into debian/rules.d/tools/objtool/Makefile which seems to be
> > setting the flags for this but wasn't able to figure out a fitting solution
> > but maybe what is done with REALHOSTCC and REALHOSTLD has to be done with
> > to CFLAGS as well like REALHOSTCFLAGS? I need some advice here.
> 
> No idea.  This is already a workaround in a workaround.
> 
> > An ugly workaround that fixes both issues is to use the following in
> > debian/rules.real:
> > 
> > MAKE_CLEAN = $(setup_env) $(MAKE) KCFLAGS=-fdebug-prefix-map=$(CURDIR)/= KBUILD_HOSTCFLAGS='' HOSTCFLAGS='' KBUILD_HOSTLDFLAGS=''
> 
> We don't really care about all the tools built for the build
> environment.  Just the command line checker will go wild.
> 
> If it fixes the problem also the problem with subcmd, why not?

I'm not sure whether all of these tools are just for the build environment and
not shipped in any .deb. I also don't know whether, because flags are leaking
left and right, setting these variables to the empty string will have an effect
for tools that are meant to be shipped but get the wrong variables passed.

Thanks!

cheers, josch

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


Thread

Bug#1050991: FTCBFS amd64 -> arm64 due to using host-arch flags for native builds and vice-versa Johannes Schauer Marin Rodrigues <josch@debian.org> - 2023-09-01 08:40 +0200
  Bug#1050991: FTCBFS amd64 -> arm64 due to using host-arch flags for native builds and vice-versa Johannes Schauer Marin Rodrigues <josch@debian.org> - 2023-09-01 09:20 +0200
    Bug#1050991: FTCBFS amd64 -> arm64 due to using host-arch flags for native builds and vice-versa Bastian Blank <waldi@debian.org> - 2023-09-02 20:20 +0200
      Bug#1050991: FTCBFS amd64 -> arm64 due to using host-arch flags for native builds and vice-versa Johannes Schauer Marin Rodrigues <josch@debian.org> - 2023-09-03 10:10 +0200
        Bug#1050991: FTCBFS amd64 -> arm64 due to using host-arch flags for native builds and vice-versa Bastian Blank <waldi@debian.org> - 2023-09-03 10:30 +0200
  Bug#1050991: FTCBFS amd64 -> arm64 due to using host-arch flags for native builds and vice-versa Johannes Schauer Marin Rodrigues <josch@debian.org> - 2023-09-01 11:00 +0200
  Bug#1050991: FTCBFS amd64 -> arm64 due to using host-arch flags for native builds and vice-versa Bastian Blank <waldi@debian.org> - 2023-09-02 20:20 +0200
    Bug#1050991: FTCBFS amd64 -> arm64 due to using host-arch flags for native builds and vice-versa Johannes Schauer Marin Rodrigues <josch@debian.org> - 2023-09-02 20:20 +0200

csiph-web