[LU-6149] build broken by latest spl Created: 23/Jan/15  Updated: 23/Jan/15  Resolved: 23/Jan/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Bob Glossman (Inactive) Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Related
is related to LU-6038 ZFS 0.6.4 Compatibility Resolved
Severity: 3
Rank (Obsolete): 17176

 Description   

this looks a bit like LU-5826. It may be a dup or being addressed by changes for LU-6038. I'm seeing builds failing in osd-zfs if I try to use the latest master version spl/zfs. example errors, seen in current lustre master built for el6.6

make[3]: Entering directory `/home/bogl/rb/BUILD/kernel-2.6.32.504.3.3.l1216'
  LD      /home/bogl/lustre-release/lustre/osd-zfs/built-in.o
  CC [M]  /home/bogl/lustre-release/lustre/osd-zfs/osd_handler.o
  CC [M]  /home/bogl/lustre-release/lustre/osd-zfs/osd_lproc.o
  CC [M]  /home/bogl/lustre-release/lustre/osd-zfs/osd_quota.o
  CC [M]  /home/bogl/lustre-release/lustre/osd-zfs/osd_object.o
cc1: warnings being treated as errors
/home/bogl/lustre-release/lustre/osd-zfs/osd_object.c: In function 'osd_object_alloc':
/home/bogl/lustre-release/lustre/osd-zfs/osd_object.c:285: error: passing argument 1 of 'spl_kmem_cache_alloc' from incompatible pointer type
/home/bogl/spl/include/sys/kmem_cache.h:218: note: expected 'struct spl_kmem_cache_t *' but argument is of type 'struct kmem_cache *'
/home/bogl/lustre-release/lustre/osd-zfs/osd_object.c:285: error: passing argument 1 of 'spl_kmem_cache_free' from incompatible pointer type
/home/bogl/spl/include/sys/kmem_cache.h:219: note: expected 'struct spl_kmem_cache_t *' but argument is of type 'struct kmem_cache *'
/home/bogl/lustre-release/lustre/osd-zfs/osd_object.c: In function 'osd_object_free':
/home/bogl/lustre-release/lustre/osd-zfs/osd_object.c:432: error: passing argument 1 of 'spl_kmem_cache_free' from incompatible pointer type
/home/bogl/spl/include/sys/kmem_cache.h:219: note: expected 'struct spl_kmem_cache_t *' but argument is of type 'struct kmem_cache *'
make[6]: *** [/home/bogl/lustre-release/lustre/osd-zfs/osd_object.o] Error 1
make[5]: *** [/home/bogl/lustre-release/lustre/osd-zfs] Error 2
make[4]: *** [/home/bogl/lustre-release/lustre] Error 2
make[3]: *** [_module_/home/bogl/lustre-release] Error 2
make[3]: Leaving directory `/home/bogl/rb/BUILD/kernel-2.6.32.504.3.3.l1216'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/home/bogl/lustre-release'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bogl/lustre-release'
make: *** [all] Error 2

This isn't a problem when building with known, good, tagged versions of spl/zfs like 0.6.3. It is a problem with the latest master spl/zfs. It could become a blocker for moving to a later tag for spl/zfs.



 Comments   
Comment by Jodi Levi (Inactive) [ 23/Jan/15 ]

Bob,
Do you think this is a duplicate of LU-6038?

Comment by Bob Glossman (Inactive) [ 23/Jan/15 ]

Jodi,
I think it might be, but I didn't see enough detail in that ticket to tell for sure. Also it suggests it has been fixed in a recent tag. I am still seeing build failure with the latest spl/zfs as of yesterday, so it may be something else and different.

Comment by Bob Glossman (Inactive) [ 23/Jan/15 ]

I now think this ticket is in fact a dup of LU-6038. If I apply both patches from there it fixes the osd-zfs build for both el6 and el7.

Comment by Bob Glossman (Inactive) [ 23/Jan/15 ]

dup of LU-6038

Generated at Sat Feb 10 01:57:41 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.