On Wed, 20 Jun 2012 08:34:59 -0300
Lucas De Marchi <[email protected]> wrote:

> Hi Robert,
> 
> please CC [email protected] so others can benefit from the
> responses. I'm doing so now.
> 
> On Wed, Jun 20, 2012 at 8:21 AM, Robert Milasan <[email protected]>
> wrote:
> > Hello, I'm trying now to build kmod 9 on 64 and 32 bits opensuse. On
> > 64bits everything is fine, but on 32bits it fails in init_modules.c:
> > 150:assert(mkdir_p(buf, 0755) >= 0);
> >
> > If I drop assert, all works. Do you have an idea why it fails?
> 
> Does "make check" work for you after removing this assert? Some of the
> tests that rely on being able to create dirs on testsuite's rootfs
> should fail if you didn't create the dirs.
> 
> On your 32 bits machine, is your testsuite/rootfs dir (or any of the
> dirs below)  read-only?
> 
> Lucas De Marchi

If I drop assert(mkdir_p...) then all works. rootfs and the below dirs
all have the rights "0755" so all good, but this issue doesn't happen
on 64bits which is a bit strange for me. Maybe there is something wrong
in mkdir.c -> mkdir_p function.

Anyway I've asked around and some people said that using assert on
"mkdir_p" is kind of a bad idea, but I'm not a developer so I wouldn't
know.

-- 
Robert Milasan
L3 Support Engineer
SUSE
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to