Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-21107

make clean doesn't remove kernel object files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

      Since 31e5fc87aebf ("LU-18876 build: remove MOSTLYCLEANFILES"), `make clean` hasn't removed *.ko files. This actually caused a concrete problem for me - since 3cf87a83a0fd ("LU-18876 libcfs: move to its final place for upstreaming") moved the location of the libcfs.ko file, after I updated my lustre tree I ended up with 2 conflicting copies of the kernel module. This broke the llmount.sh script:

       

      lustre-release $ git checkout 3cf87a83a0fd~1
      lustre-release $ sh autogen.sh && ./configure --disable-gss-keyring --disable-gss --enable-server --with-linux=/lib/modules/$(uname -r)/build
      lustre-release & make -j8
      
      lustre-release $ git checkout 3cf87a83a0fd
      lustre-release $ make clean > /dev/null && make -j16 > /dev/null
      lustre-release $ find . -name libcfs.ko
      ./lnet/libcfs/libcfs.ko
      ./libcfs/libcfs/libcfs.ko
      
      lustre-release $ sudo ./lustre/tests/llmount.sh
      
      lustre-release $ dmesg | tail -3
      [82650.146615] obdclass: Unknown symbol compat_totalram_pages (err 0)
      [82650.146898] obdclass: disagrees about version of symbol llcrypt_sb_free
      [82650.146912] obdclass: Unknown symbol llcrypt_sb_free (err -22

       

            bertschinger Thomas Bertschinger
            bertschinger Thomas Bertschinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: