All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] Cluster ./configure fails with 2.6.31-rc* kernel headers
@ 2009-07-12  1:55 Andrew Price
  2009-07-12 11:21 ` Marc - A. Dahlhaus
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Price @ 2009-07-12  1:55 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi,

I've been experiencing cluster ./configure failures since this commit
went into the 2.6.31-rc* kernel:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c31ae4bb4a9fa4606a74c0a4fb61b74f804e861e

My config.log says:

----
configure:13727: checking linux/dlm_plock.h usability
configure:13744: gcc -c -g -O2 -I/lib/modules/2.6.31-rc2-plato34/build/include conftest.c >&5
In file included from /usr/include/asm/types.h:4,
                 from /lib/modules/2.6.31-rc2-plato34/build/include/linux/types.h:4,
                 from /lib/modules/2.6.31-rc2-plato34/build/include/linux/dlm_plock.h:12,
                 from conftest.c:81:
/lib/modules/2.6.31-rc2-plato34/build/include/asm-generic/int-ll64.h:11:29: error: asm/bitsperlong.h: No such file or directory
configure:13751: $? = 1
----

I haven't attempted this on a 32bit system yet but I suspect it only
affects 64bit builds.

For now I'm working around the problem using this ugly hack in
configure.ac:

-KERNEL_CPPFLAGS="-I$KERNEL_DIR/include"
+KERNEL_CPPFLAGS="-I$KERNEL_DIR/include -I$KERNEL_DIR/arch/x86/include"

But what really needs fixing, the kernel headers or the cluster build
system?

--
Andrew Price



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Cluster-devel] Cluster ./configure fails with 2.6.31-rc* kernel headers
  2009-07-12  1:55 [Cluster-devel] Cluster ./configure fails with 2.6.31-rc* kernel headers Andrew Price
@ 2009-07-12 11:21 ` Marc - A. Dahlhaus
  2009-07-12 14:44   ` Andrew Price
  0 siblings, 1 reply; 3+ messages in thread
From: Marc - A. Dahlhaus @ 2009-07-12 11:21 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hello,

Andrew Price schrieb:
> Hi,
>
> I've been experiencing cluster ./configure failures since this commit
> went into the 2.6.31-rc* kernel:
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c31ae4bb4a9fa4606a74c0a4fb61b74f804e861e
>
> My config.log says:
>
> ----
> configure:13727: checking linux/dlm_plock.h usability
> configure:13744: gcc -c -g -O2 -I/lib/modules/2.6.31-rc2-plato34/build/include conftest.c >&5
> In file included from /usr/include/asm/types.h:4,
>                  from /lib/modules/2.6.31-rc2-plato34/build/include/linux/types.h:4,
>                  from /lib/modules/2.6.31-rc2-plato34/build/include/linux/dlm_plock.h:12,
>                  from conftest.c:81:
> /lib/modules/2.6.31-rc2-plato34/build/include/asm-generic/int-ll64.h:11:29: error: asm/bitsperlong.h: No such file or directory
> configure:13751: $? = 1
> ----
>
> I haven't attempted this on a 32bit system yet but I suspect it only
> affects 64bit builds.
>
> For now I'm working around the problem using this ugly hack in
> configure.ac:
>
> -KERNEL_CPPFLAGS="-I$KERNEL_DIR/include"
> +KERNEL_CPPFLAGS="-I$KERNEL_DIR/include -I$KERNEL_DIR/arch/x86/include"
>
> But what really needs fixing, the kernel headers or the cluster build
> system?
Did you run "make prepare" inside of your kernel tree?
It should take care of linking asm to the right spot in arch tree...

Hope that helps,

Marc



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Cluster-devel] Cluster ./configure fails with 2.6.31-rc* kernel headers
  2009-07-12 11:21 ` Marc - A. Dahlhaus
@ 2009-07-12 14:44   ` Andrew Price
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Price @ 2009-07-12 14:44 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi Marc,

On Sun, Jul 12, 2009 at 01:21:17PM +0200, Marc - A. Dahlhaus wrote:
> Hello,
>
> Andrew Price schrieb:
>> configure:13727: checking linux/dlm_plock.h usability
>> configure:13744: gcc -c -g -O2 -I/lib/modules/2.6.31-rc2-plato34/build/include conftest.c >&5
>> In file included from /usr/include/asm/types.h:4,
>>                  from /lib/modules/2.6.31-rc2-plato34/build/include/linux/types.h:4,
>>                  from /lib/modules/2.6.31-rc2-plato34/build/include/linux/dlm_plock.h:12,
>>                  from conftest.c:81:
>> /lib/modules/2.6.31-rc2-plato34/build/include/asm-generic/int-ll64.h:11:29: error: asm/bitsperlong.h: No such file or directory
>> configure:13751: $? = 1
> Did you run "make prepare" inside of your kernel tree?

I did. The only header that gets linked into include/asm in "make
prepare" with both the old (good) version *and* the new (bad) version is
include/asm/offsets.h so that's not the issue.

--
Andrew Price



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-12 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-12  1:55 [Cluster-devel] Cluster ./configure fails with 2.6.31-rc* kernel headers Andrew Price
2009-07-12 11:21 ` Marc - A. Dahlhaus
2009-07-12 14:44   ` Andrew Price

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.