[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

Attachment: signature.asc
Description: signature


Reply to: