Bug 11961 - [linux-yocto] Build error with aufs
Summary: [linux-yocto] Build error with aufs
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 2.3.1
Hardware: x86 x86
: Medium normal
Target Milestone: 2.4 M4
Assignee: Bruce Ashfield
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-08-21 13:10 UTC by skumarbdc11
Modified: 2017-09-19 16:22 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description skumarbdc11 2017-08-21 13:10:15 UTC
I am using poky pyro (2.3) and wanted to enable aufs in linux-yocto, for genericx86, by adding

    KERNEL_FEATURES_append = " features/aufs/aufs-enable.scc"

but unable to build the kernel and modules successfully.

The error started with undefined symbol "generic_readlink" (no EXPORT_SYMBOL found) in i_op.c and incompatible pointer type in few places.

As per the aufs github for the branch aufs4.10 there is no reference to generic_readlink. With this observation I am assuming that linux-yocto4.10 does not point to correct branch of aufs which is resulting in this build error.

Switching to linux-yocto4.9 also giving build errors so could not able to enabled aufs.

I tried the same on master branch and could not able to compile the kernel and modules successfully.

Need your help in finding perfect patches.
Comment 1 Bruce Ashfield 2017-08-21 13:17:26 UTC
aufs is no longer carried forward by me, but is supported by the users of it in linux-yocto.

I carry forward the core support, and patches are sent to deal with the changing kernel vfs layer.

i.e. my last touch on it was:

commit 79a6af59f8a4f06d2791f607dbfd558aaa2b1a66
Author: Bruce Ashfield <bruce.ashfield@windriver.com>
Date:   Tue Nov 22 11:20:29 2016 -0500

    aufs: refresh for 4.9-rc6
    
    Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>

And the following fix:

    aufs: fix compile warning
    
    1/1 [
    Author: "Kexin(Casey) Chen"
    Email: Casey.Chen@windriver.com
    Subject: aufs: fix compile warning
    Date: Tue, 29 Nov 2016 14:14:07 -0800
    
    fs/aufs/debug.h:95:19: warning: comparison of constant '0'
    with boolean expression is always false [-Wbool-compare]
       if (unlikely((e) < 0)) \
                        ^
    
    fs/aufs/vdir.c:852:2: note: in expansion of macro 'AuTraceErr'
       AuTraceErr(!valid);
       ^~~~~~~~~~
    
    In expansion of AuTraceErr(!valid), comparison of (!valid)
    and constant '0' always passes unlikely(x) false. function
    'static int seek_vdir(struct file *file, struct dir_context *ctx)'
    is to find whether there is a valid vd_deblk following ctx->pos.
    return 1 means valid, 0 for not. Change to AuTraceErr(valid - 1)
    makes more sense.
    
    Signed-off-by: Kexin(Casey) Chen <Casey.Chen@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
    ]

-------------

I can take patches to fix the issues, but it will be several weeks since I'm currently working on 4.12 and -stable updates for all the kernels.
Comment 2 Bruce Ashfield 2017-08-25 14:28:13 UTC
4.10 is fixed for this now. changes will be out in a few days. onto 4.12 now.
Comment 3 Bruce Ashfield 2017-09-19 16:22:15 UTC
this is merged with the latest kernel SRCREVs, and is also fixed in 4.12.