<p dir="ltr">On Feb 3, 2016 08:54, "Andreas Beckmann" <<a href="mailto:anbe@debian.org">anbe@debian.org</a>> wrote:<br>
><br>
> On 2016-02-03 02:40, Luca Boccassi wrote:<br>
> > DKMS is passing down ARCH=<binary ABI triplet> when it calls make. But<br>
> > conftest.sh uses $ARCH for the arch-specific Linux headers directory.<br>
> > I solved it by simply unsetting ARCH in the dkms.conf, and now it's<br>
> > building on all architectures, as upstream's Makefile will derive ARCH<br>
> > from uname if it's not set.<br>
><br>
> Are you sure that's dkms setting this variable? I haven't seen this here<br>
> ... where amd64 built fine and armhf in a foreign-arch pbuilder<br>
> environment as well. Anyway, thanks for the fix.</p>
<p dir="ltr">I assumed it was dkms because that's the top of the chain, and when unsetting it there it wasn't defined anymore down the stack up to the makefile. This is in a very basic sid chroot with nothing but build dependencies installed, and tested by installing nvidia-kernel-dkms and calling dkms install.</p>
<p dir="ltr">Any idea what else could be setting that var?</p>
<p dir="ltr">Note that I haven't tested running with this yet, only the module build in all archs. I'll do that tonight.</p>
<p dir="ltr">> Maybe we should increase conftest verboseness in case it emits an #error ...</p>
<p dir="ltr">Unfortunately as far as I can see all tests individually redirect to dev/null, so we'd have to patch every single one of them :-(</p>
<p dir="ltr">Kind regards,<br>
Luca Boccassi</p>