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


Groups > linux.kernel > #1669119 > unrolled thread

ufs build failure (no __udivdi3) on i386 in linux tip (edf9364d3f92)

Started byIan Jackson <ian.jackson@eu.citrix.com>
First post2017-06-19 16:40 +0200
Last post2017-06-19 19:40 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  ufs build failure (no __udivdi3) on i386 in linux tip (edf9364d3f92) Ian Jackson <ian.jackson@eu.citrix.com> - 2017-06-19 16:40 +0200
    Re: ufs build failure (no __udivdi3) on i386 in linux tip  (edf9364d3f92) Al Viro <viro@ZenIV.linux.org.uk> - 2017-06-19 17:10 +0200
      Re: ufs build failure (no __udivdi3) on i386 in linux tip (edf9364d3f92) Geert Uytterhoeven <geert@linux-m68k.org> - 2017-06-19 19:30 +0200
        Re: ufs build failure (no __udivdi3) on i386 in linux tip  (edf9364d3f92) Al Viro <viro@ZenIV.linux.org.uk> - 2017-06-19 19:40 +0200

#1669119 — ufs build failure (no __udivdi3) on i386 in linux tip (edf9364d3f92)

FromIan Jackson <ian.jackson@eu.citrix.com>
Date2017-06-19 16:40 +0200
Subjectufs build failure (no __udivdi3) on i386 in linux tip (edf9364d3f92)
Message-ID<tU60q-3Pk-17@gated-at.bofh.it>
osstest service owner writes ("[linux-linus bisection] complete build-i386-pvops"):
> branch xen-unstable
> xenbranch xen-unstable
> job build-i386-pvops
> testid kernel-build
> 
> Tree: linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git
> 
> *** Found and reproduced problem changeset ***
> 
>   Bug is in tree:  linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
>   Bug introduced:  edf9364d3f924aff6f77176b8e52a4b68e5c30d6
>   Bug not present: 791a9a666d1afe2603bcb2c6a4852d684e879252
>   Last fail repro: http://logs.test-lab.xenproject.org/osstest/logs/110566/

This is a merge commit, so the bisection result is not very useful:

   git-log --pretty=oneline 791a9a666d1afe2603bcb2c6a4852d684e879252..edf9364d3f924aff6f77176b8e52a4b68e5c30d6 | wc -l
   2233

The error message is this:

   ERROR: "__udivdi3" [fs/ufs/ufs.ko] undefined!
   scripts/Makefile.modpost:91: recipe for target '__modpost' failed
   make[1]: *** [__modpost] Error 1

I searched the commit log and CC'd a couple of people who have fixed
similar bugs elsewhere.

Ian.

[toc] | [next] | [standalone]


#1669178 — Re: ufs build failure (no __udivdi3) on i386 in linux tip (edf9364d3f92)

FromAl Viro <viro@ZenIV.linux.org.uk>
Date2017-06-19 17:10 +0200
SubjectRe: ufs build failure (no __udivdi3) on i386 in linux tip (edf9364d3f92)
Message-ID<tU6ts-4hT-33@gated-at.bofh.it>
In reply to#1669119
On Mon, Jun 19, 2017 at 03:36:47PM +0100, Ian Jackson wrote:
> osstest service owner writes ("[linux-linus bisection] complete build-i386-pvops"):
> > branch xen-unstable
> > xenbranch xen-unstable
> > job build-i386-pvops
> > testid kernel-build
> > 
> > Tree: linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> > Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git
> > 
> > *** Found and reproduced problem changeset ***
> > 
> >   Bug is in tree:  linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> >   Bug introduced:  edf9364d3f924aff6f77176b8e52a4b68e5c30d6
> >   Bug not present: 791a9a666d1afe2603bcb2c6a4852d684e879252
> >   Last fail repro: http://logs.test-lab.xenproject.org/osstest/logs/110566/
> 
> This is a merge commit, so the bisection result is not very useful:
> 
>    git-log --pretty=oneline 791a9a666d1afe2603bcb2c6a4852d684e879252..edf9364d3f924aff6f77176b8e52a4b68e5c30d6 | wc -l
>    2233
> 
> The error message is this:
> 
>    ERROR: "__udivdi3" [fs/ufs/ufs.ko] undefined!
>    scripts/Makefile.modpost:91: recipe for target '__modpost' failed
>    make[1]: *** [__modpost] Error 1

It's 64bit ->s_dsize going through "multiply by this, divide by 100".
Can be papered over by using mul_64_u32_div() in ufs_new_fragments(),
but
	* expression remains unchanged, so it's better done at
mount time
	* there's a braino (since circa 2002) in the same code
- the expression(s) are for the levels of fragmentation that
trigger switches in hysteresis loop and both switches lead to
the same state due to cut'n'paste damage
	* for really low minfree we get those levels too close
to each other - at minfree 5 we get 0.025 .. 0.03, at minfree 4
they outright merge and below that the upper bound is less than
the lower one.  We'd copied the original 4.4BSD here; at 1995
FreeBSD got switched to "minfree 5 or below means using OPTSPACE
all the time".

Fixed in vfs.git#ufs-fixes; see commit 77e9ce327d9b607cd6e57c0f4524a654dc59c4b1
there.  Not sure if it's worth splitting...

[toc] | [prev] | [next] | [standalone]


#1669536

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2017-06-19 19:30 +0200
Message-ID<tU8EW-5CR-31@gated-at.bofh.it>
In reply to#1669178
Hi Al,

On Mon, Jun 19, 2017 at 5:08 PM, Al Viro <viro@zeniv.linux.org.uk> wrote:
> Fixed in vfs.git#ufs-fixes; see commit 77e9ce327d9b607cd6e57c0f4524a654dc59c4b1
> there.  Not sure if it's worth splitting...

I can confirm that commit fixes the build for m68k.
Let's hope it fixes the build for all other 32-bit platforms, too ;-)

If I'm not mistaken, the commit that caused the breakage was never part of
linux-next before it entered mainline?
Can you please make sure all commits cook a few days in linux-next before
they are sent upstream?

Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

[toc] | [prev] | [next] | [standalone]


#1669541 — Re: ufs build failure (no __udivdi3) on i386 in linux tip (edf9364d3f92)

FromAl Viro <viro@ZenIV.linux.org.uk>
Date2017-06-19 19:40 +0200
SubjectRe: ufs build failure (no __udivdi3) on i386 in linux tip (edf9364d3f92)
Message-ID<tU8OC-5H3-13@gated-at.bofh.it>
In reply to#1669536
On Mon, Jun 19, 2017 at 07:22:39PM +0200, Geert Uytterhoeven wrote:
> Hi Al,
> 
> On Mon, Jun 19, 2017 at 5:08 PM, Al Viro <viro@zeniv.linux.org.uk> wrote:
> > Fixed in vfs.git#ufs-fixes; see commit 77e9ce327d9b607cd6e57c0f4524a654dc59c4b1
> > there.  Not sure if it's worth splitting...
> 
> I can confirm that commit fixes the build for m68k.
> Let's hope it fixes the build for all other 32-bit platforms, too ;-)
> 
> If I'm not mistaken, the commit that caused the breakage was never part of
> linux-next before it entered mainline?
> Can you please make sure all commits cook a few days in linux-next before
> they are sent upstream?

It's not an excuse, but I got too used to 0-day buildbot catching that kind
of stuff within a day or so ;-/  Should've done cross-builds myself, of course -
my fault...

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web