Cannot build spl-0.6.0-rc7/8 on Debian Squeeze #721

Closed
TurboTurtle opened this Issue May 3, 2012 · 2 comments

Projects

None yet

2 participants

@TurboTurtle

I have been trying to build spl to no avail on a Debian Squeeze installation, running the 3.2 kernel. I have tried with the --with-linux option to ./configure with no luck.

This is the error message if I attempt make deb after ./configure:

make[7]: *** [/tmp/spl-build-root-QgVKbxnm/BUILD/spl-0.6.0/module/spl/../../module/spl/spl-debug.o] Error 1
make[6]: *** [/tmp/spl-build-root-QgVKbxnm/BUILD/spl-0.6.0/module/spl] Error 2
make[5]: *** [module/tmp/spl-build-root-QgVKbxnm/BUILD/spl-0.6.0/module] Error 2
make[4]: *** [modules] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
error: Bad exit status from /tmp/spl-build-root-QgVKbxnm/TMP/rpm-tmp.jtKe4G (%build)
Bad exit status from /tmp/spl-build-root-QgVKbxnm/TMP/rpm-tmp.jtKe4G (%build)
make[1]: *** [rpm-common] Error 1
make: *** [rpm-modules] Error 2

And if I try just a straint "make" after ./configure:

/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:311: warning: incompatible implicit declaration of built-in function âstrlenâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:345: error: âEINVALâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âspl_debug_dumplog_internalâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:376: error: âcurrentâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:381: error: âdumplog_priv_tâ has no member named âdp_pidâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:381: warning: passing argument 2 of âsnprintfâ makes pointer from integer without a cast
include/linux/kernel.h:306: note: expected âconst char â but argument is of type âlong unsigned intâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âspl_debug_dumplog_threadâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:394: error: âdumplog_priv_tâ has no member named âdp_doneâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âspl_debug_dumplogâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:409: error: âdumplog_priv_tâ has no member named âdp_pidâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:409: error: âcurrentâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:410: error: âdumplog_priv_tâ has no member named âdp_flagsâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:411: error: âdumplog_priv_tâ has no member named âdp_doneâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:413: error: âdumplog_priv_tâ has no member named âdp_flagsâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:419: error: âENOMEMâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:422: error: âdumplog_priv_tâ has no member named âdp_doneâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:422: error: âdumplog_priv_tâ has no member named âdp_doneâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âtrace_get_console_bufferâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:432: error: implicit declaration of function âraw_smp_processor_idâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:435: error: invalid type argument of â->â (have âintâ)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:437: error: invalid type argument of â->â (have âintâ)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âtrace_get_tcdâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:477: error: invalid type argument of â->â (have âintâ)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:479: error: invalid type argument of â->â (have âintâ)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âtrace_set_debug_headerâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:508: error: â__u32â undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:508: error: expected â;â before âtvâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:509: error: âstruct timevalâ has no member named âtv_usecâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:511: error: âcurrentâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âtage_allocâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:564: error: implicit declaration of function âkmallocâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:564: warning: assignment makes pointer from integer without a cast
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âspl_debug_msgâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:701: warning: incompatible implicit declaration of built-in function âstrlenâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:736: warning: passing argument 2 of âvsnprintfâ makes pointer from integer without a cast
include/linux/kernel.h:308: note: expected âconst char *â but argument is of type âintâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:736: warning: passing argument 3 of âvsnprintfâ from incompatible pointer type
include/linux/kernel.h:308: note: expected âstruct __va_list_tag *â but argument is of type âconst char *â
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:736: error: too many arguments to function âvsnprintfâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:748: error: too many arguments to function âmemcpyâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:786: error: âHZâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:786: warning: type defaults to âintâ in declaration of â__dummy2â
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:786: warning: comparison of distinct pointer types lacks a cast
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:813: warning: passing argument 2 of âvsnprintfâ makes pointer from integer without a cast
include/linux/kernel.h:308: note: expected âconst char *â but argument is of type âintâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:813: warning: passing argument 3 of âvsnprintfâ from incompatible pointer type
include/linux/kernel.h:308: note: expected âstruct __va_list_tag *â but argument is of type âconst char *â
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:813: error: too many arguments to function âvsnprintfâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:827: warning: passing argument 2 of âsnprintfâ makes pointer from integer without a cast
include/linux/kernel.h:306: note: expected âconst char *â but argument is of type âintâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âcollect_pagesâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:877: error: âdumplog_priv_tâ has no member named âdp_flagsâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âspl_debug_dump_all_pagesâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:926: error: âmm_segment_tâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:926: error: expected â;â before âoldfsâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:927: warning: ISO C90 forbids mixed declarations and code
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:931: error: âO_CREATâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:931: error: âO_EXCLâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:931: error: âO_WRONLYâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:931: error: âO_LARGEFILEâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:934: error: âEEXISTâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:940: error: unknown field âraw_lockâ specified in initializer
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:940: error: â__ARCH_SPIN_LOCK_UNLOCKEDâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:940: warning: excess elements in struct initializer
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:940: warning: (near initialization for â(anonymous)â)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:947: error: âoldfsâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:947: error: implicit declaration of function âget_fsâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:948: error: implicit declaration of function âset_fsâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:948: error: implicit declaration of function âget_dsâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:951: error: âconst struct file_operationsâ has no member named âwriteâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:951: error: âstruct fileâ has no member named âf_posâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:966: warning: passing argument 2 of âvfs_fsyncâ makes integer from pointer without a cast
include/linux/fs.h:2242: note: expected âintâ but argument is of type âstruct dentry *â
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:966: error: too many arguments to function âvfs_fsyncâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âspl_debug_flush_pagesâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:985: error: unknown field âraw_lockâ specified in initializer
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:985: error: â__ARCH_SPIN_LOCK_UNLOCKEDâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:985: warning: excess elements in struct initializer
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:985: warning: (near initialization for â(anonymous)â)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:987: error: âdumplog_priv_tâ has no member named âdp_pidâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:987: error: âcurrentâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:988: error: âdumplog_priv_tâ has no member named âdp_flagsâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:989: error: âdumplog_priv_tâ has no member named âdp_doneâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âspl_debug_set_mbâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1034: error: âEINVALâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âspl_debug_dumpstackâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1080: error: âcurrentâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1082: error: âstruct task_structâ has no member named âpidâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âspl_debug_bugâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1092: error: invalid type argument of â->â (have âintâ)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1095: error: invalid type argument of â->â (have âintâ)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1095: error: implicit declaration of function âarch_local_save_flagsâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1108: error: implicit declaration of function âset_mbâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1108: error: âcurrentâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âtrace_initâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1142: error: too many arguments to function âmemsetâ
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1145: warning: assignment makes pointer from integer without a cast
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1151: error: unknown field âraw_lockâ specified in initializer
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1151: error: â__ARCH_SPIN_LOCK_UNLOCKEDâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1151: warning: excess elements in struct initializer
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1151: warning: (near initialization for â(anonymous)â)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1167: warning: assignment makes pointer from integer without a cast
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1178: error: âENOMEMâ undeclared (first use in this function)
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c: In function âspl_debug_initâ:
/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.c:1186: error: âHZâ undeclared (first use in this function)
make[5]: *
* [/usr/src/spl-0.6.0-rc7/module/spl/../../module/spl/spl-debug.o] Error 1
make[4]: *** [/usr/src/spl-0.6.0-rc7/module/spl] Error 2
make[3]: *** [module/usr/src/spl-0.6.0-rc7/module] Error 2
make[3]: Leaving directory /usr/src/linux-headers-3.2.0-rc7turtle' make[2]: *** [modules] Error 2 make[2]: Leaving directory/usr/src/spl-0.6.0-rc7/module'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/spl-0.6.0-rc7'
make: *** [all] Error 2

This was for rc7, but same thing happens with rc8.

@behlendorf
Member

It looks like perhaps your just don't have all the build dependencies installed. Make sure they are all installed by running.

$ sudo apt-get install build-essential gawk alien fakeroot linux-headers-$(uname -r)

@behlendorf
Member

I'm closing this issue. I regularly build on Debian squeeze without issue.

@behlendorf behlendorf closed this Aug 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment