openafs 1.4.12+dfsg-3 kernel module failed to build on2.6.32-305-ec2

Bug #576035 reported by zwluxx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openafs (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

On a Lucid amd64 system with kernel 2.6.32-305-ec2 (as a Xen guest in a RHEL5/CentOS5 Dom0),

compiling afs kernel module (openafs-modules-source 1.4.12+dfsg-3) failed:

...
checking if linux kbuild requires EXTRA_CFLAGS... yes
checking for linux kernel module build works... no
configure: error: in `/usr/src/modules/openafs':
configure: error: Fix problem or use --disable-kernel-module...
See `config.log' for more details.

config.log does not give any more information than that. afs kernel module builds just fine for
2.6.32-21/22 generic and server kernels.

Revision history for this message
Anders Kaseorg (andersk) wrote :

Can you please attach a copy of config.log anyway?

Revision history for this message
zwluxx (zwlu) wrote :

config.log file

Revision history for this message
zwluxx (zwlu) wrote : Re: [Bug 576035] Re: openafs 1.4.12+dfsg-3 kernel module failed to build on2.6.32-305-ec2

On 05/05/2010 03:51 PM, Anders Kaseorg wrote:
> Can you please attach a copy of config.log anyway?
>
>
Anders,

I sent a config.log file to the bug report.

Thank you.

--
Zhi-Wei Lu
Bioinformatics Core
Genome Center
University of California, Davis
(530) 752-2698

Revision history for this message
Anders Kaseorg (andersk) wrote :

Ah, but there _is_ more information in config.log:

In file included from /usr/src/linux-headers-2.6.32-305-ec2/arch/x86/include/asm/unistd.h:5,
                 from include/linux/unistd.h:7,
                 from /usr/src/linux-headers-2.6.32-305-ec2/arch/x86/include/asm/seccomp_64.h:4,
                 from /usr/src/linux-headers-2.6.32-305-ec2/arch/x86/include/asm/seccomp.h:4,
                 from include/linux/seccomp.h:8,
                 from include/linux/sched.h:80,
                 from /usr/src/modules/openafs/conftest.dir/conftest.c:27:
/usr/src/linux-headers-2.6.32-305-ec2/arch/x86/include/asm/unistd_64.h:693:29: error: asm/asm-offsets.h: No such file or directory
make[1]: *** [/usr/src/modules/openafs/conftest.dir/conftest.o] Error 1

I have reported this as bug 576558 in linux-ec2. You may be able to work around it by repairing the broken symlink:

sudo ln -nsf asm-x86 /usr/src/linux-headers-2.6.32-305-ec2/include/asm

Revision history for this message
zwluxx (zwlu) wrote :

On 05/06/2010 11:22 AM, Anders Kaseorg wrote:
> Ah, but there _is_ more information in config.log:
>
> In file included from /usr/src/linux-headers-2.6.32-305-ec2/arch/x86/include/asm/unistd.h:5,
> from include/linux/unistd.h:7,
> from /usr/src/linux-headers-2.6.32-305-ec2/arch/x86/include/asm/seccomp_64.h:4,
> from /usr/src/linux-headers-2.6.32-305-ec2/arch/x86/include/asm/seccomp.h:4,
> from include/linux/seccomp.h:8,
> from include/linux/sched.h:80,
> from /usr/src/modules/openafs/conftest.dir/conftest.c:27:
> /usr/src/linux-headers-2.6.32-305-ec2/arch/x86/include/asm/unistd_64.h:693:29: error: asm/asm-offsets.h: No such file or directory
> make[1]: *** [/usr/src/modules/openafs/conftest.dir/conftest.o] Error 1
>
> I have reported this as bug 576558 in linux-ec2. You may be able to
> work around it by repairing the broken symlink:
>
> sudo ln -nsf asm-x86 /usr/src/linux-headers-2.6.32-305-ec2/include/asm
>
>
Thanks, Anders!

I didn't pay that much of detail to see the problem.

asm was pointed to non-existent asm-x86_64 directory

I have now change the sym link (/usr/src/linux/include)

asm -> asm-x86_64

All is well with openafs. Thank you very much for trouble-shooting. I
should have seen this.

--
Zhi-Wei Lu
Bioinformatics Core
Genome Center
University of California, Davis
(530) 752-2698

Revision history for this message
zwluxx (zwlu) wrote :

This bug is in 2.6.32-308-ec2 kernel as well.

Revision history for this message
Russ Allbery (rra-debian) wrote :

Not a bug in openafs but rather a bug in the build system for these kernels, so marking the openafs bug as invalid accordingly (since it was already reported separately as a bug against the broken package).

Changed in openafs (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.