Re: Bug#894965: dpkg-architecture should stop warning about unset CC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, Apr 05, 2018 at 05:46:18PM +0200, Helmut Grohne wrote:
Hi, Helmut -- and sorry for taking the CC off the bug:
if it feels rude to you, double sorry, but I felt queasy
to spam the bug itself with my newbie questions: I already
did, perhaps once too much :)
> Package: dpkg-dev
>
> On Thu, Apr 05, 2018 at 04:28:48PM +0200, tomas@tuxteam.de wrote:
> > - Need to set CC
> >
> > Yes, the warning was clear enough, but I was a bit surprised
> > I had to set CC like so:
>
> The warning you are talking about likely is this one:
>
> | dpkg-architecture: warning: specified GNU system type $DEB_HOST_GNU_TYPE does not match CC system type $DEB_BUILD_GNU_TYPE, try setting a correct CC environment variable
Yes, exactly.
> I think this warning is obsolete as we assume that the packaging sets up
> CC. For most cases, it actually happens automatically:
> * dh_auto_build passes it to make.
> * If you include /usr/share/dpkg/buildtools.mk in debian/rules, it'll
> be correct.
Hm. I can't find that file. Apt-file (and packages.debian.org) can't
either?
> * For many build systems, setting CC is not necessary and
> dh_auto_configure does the right thing anyway.
Yes, but how do I find out why it is failing in my case?
I'm reading now https://wiki.debian.org/Multiarch, that will
take a while anyway, but FWIW, such an error message can be
helpful -- it was in my case [1] (if it doesn't interfere with
the normal course of things: you seem to suggest it does).
Cheers & thanks
[1] the build system *was* using the wrong compiler, i.e. x86_64
instead of armhf.
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlrHQ84ACgkQBcgs9XrR2kaqzACfUnd+ISZbpD8LXNir9Zzrtg0b
EpYAnj+r+FZsjGDwuS2bjHFAsFp3fVmW
=kA50
-----END PGP SIGNATURE-----
Reply to: