g_p g_p | 1 Feb 2012 22:13
Picon
Favicon

configure: error: The kernel source tree does not appear to be 2.6

Hello,

i'm using pvfs2 and i'm trying to load the kernel module
So i did:

1st try:

//print version

[~]      cat /proc/version
Linux version 2.6.35.7-23Mar  (gcc version 4.1.2 (Red Hat 4.1.2-48)) 
[~]     cd /usr/pvfs-2.8.1 
[pvfs-2.8.1]      sudo ./configure --with-kernel=/boot/vmlinuz-2.6.35.7-23Mar
Checking ... (etc)
ERROR: configure: error: The --with-kernel path /boot/vmlinuz- 2.6.35.7-23Mar  is not a directory.



2nd try:

[pvfs-2.8.1]      sudo ./configure --with-kernel=/usr/src/linux-2.6.35.7
Checking ... (etc)
ERROR: 
grep: /usr/src/linux-2.6.35.7/include/linux/utsrelease.h: No such file or directory

configure: error: The kernel source tree does not appear to be 2.6


So what shall i do in order to fix that?

Thanks, in advance
_______________________________________________
Pvfs2-users mailing list
Pvfs2-users <at> beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
Elaine Quarles | 1 Feb 2012 22:26
Favicon

RE: configure: error: The kernel source tree does not appear to be 2.6

Try --with-kernel=/lib/modules/`uname -r`/source

 

Hope that helps,

Elaine

 

From: pvfs2-users-bounces <at> beowulf-underground.org [mailto:pvfs2-users-bounces <at> beowulf-underground.org] On Behalf Of g_p g_p
Sent: Wednesday, February 01, 2012 4:13 PM
To: pvfs2
Subject: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6

 

Hello,

 

i'm using pvfs2 and i'm trying to load the kernel module

So i did:

 

1st try:

 

//print version

 

[~]      cat /proc/version

Linux version 2.6.35.7-23Mar  (gcc version 4.1.2 (Red Hat 4.1.2-48)) 

[~]     cd /usr/pvfs-2.8.1 

[pvfs-2.8.1]      sudo ./configure --with-kernel=/boot/vmlinuz-2.6.35.7-23Mar

Checking ... (etc)

ERROR: configure: error: The --with-kernel path /boot/vmlinuz- 2.6.35.7-23Mar  is not a directory.

 

 

2nd try:

 

[pvfs-2.8.1]      sudo ./configure --with-kernel=/usr/src/linux-2.6.35.7

Checking ... (etc)

ERROR: 

grep: /usr/src/linux-2.6.35.7/include/linux/utsrelease.h: No such file or directory

configure: error: The kernel source tree does not appear to be 2.6

 

So what shall i do in order to fix that?

 

Thanks, in advance

_______________________________________________
Pvfs2-users mailing list
Pvfs2-users <at> beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
g_p g_p | 1 Feb 2012 22:32
Picon
Favicon

RE: configure: error: The kernel source tree does not appear to be 2.6

Hello and thanks for replying,

i tried that but i still get that error

[pvfs-2.8.1]$ sudo ./configure --with-kernel=/lib/modules/`uname -r`/source 

grep: /lib/modules/2.6.35.7-23Mar/source/include/linux/utsrelease.h: No such file or directory
configure: error: The kernel source tree does not appear to be 2.6

What shall i do next?


From: elaine <at> omnibond.com
To: g_p_java <at> hotmail.com; pvfs2-users <at> beowulf-underground.org
Subject: RE: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6
Date: Wed, 1 Feb 2012 16:26:21 -0500

.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {color:blue;text-decoration:underline;} .ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed {color:purple;text-decoration:underline;} .ExternalClass p {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass span.ecxEmailStyle18 {font-family:"Calibri","sans-serif";color:#1F497D;} .ExternalClass .ecxMsoChpDefault {font-size:10.0pt;} <at> page WordSection1 {size:8.5in 11.0in;} .ExternalClass div.ecxWordSection1 {page:WordSection1;}

Try --with-kernel=/lib/modules/`uname -r`/source

 

Hope that helps,

Elaine

 

From: pvfs2-users-bounces <at> beowulf-underground.org [mailto:pvfs2-users-bounces <at> beowulf-underground.org] On Behalf Of g_p g_p
Sent: Wednesday, February 01, 2012 4:13 PM
To: pvfs2
Subject: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6

 

Hello,

 

i'm using pvfs2 and i'm trying to load the kernel module

So i did:

 

1st try:

 

//print version

 

[~]      cat /proc/version

Linux version 2.6.35.7-23Mar  (gcc version 4.1.2 (Red Hat 4.1.2-48)) 

[~]     cd /usr/pvfs-2.8.1 

[pvfs-2.8.1]      sudo ./configure --with-kernel=/boot/vmlinuz-2.6.35.7-23Mar

Checking ... (etc)

ERROR: configure: error: The --with-kernel path /boot/vmlinuz- 2.6.35.7-23Mar  is not a directory.

 

 

2nd try:

 

[pvfs-2.8.1]      sudo ./configure --with-kernel=/usr/src/linux-2.6.35.7

Checking ... (etc)

ERROR: 

grep: /usr/src/linux-2.6.35.7/include/linux/utsrelease.h: No such file or directory

configure: error: The kernel source tree does not appear to be 2.6

 

So what shall i do in order to fix that?

 

Thanks, in advance

_______________________________________________
Pvfs2-users mailing list
Pvfs2-users <at> beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
vlad | 2 Feb 2012 14:28
Picon
Picon
Favicon

RE: configure: error: The kernel source tree does not appear to be 2.6

Hi !

On Thu, 2 Feb 2012 15:04:05 +0200, g_p g_p <g_p_java <at> hotmail.com> wrote:
> Hello and thanks for replying,
> i did what you told me with "locate"
> [~]$ locate
>
utsrelease.h/usr/btrfs-unstable/include/generated/utsrelease.h/usr/src/kernels/2.6.18-194.11.3.el5-x86_64/include/linux/utsrelease.h/usr/src/kernels/2.6.18-194.17.1.el5-x86_64/include/linux/utsrelease.h/usr/src/kernels/2.6.18-194.17.1.el5.centos.plus-x86_64/include/linux/utsrelease.h/usr/src/linux-2.6.35.7/include/generated/utsrelease.h/usr/src/redhat/BUILD/kernel-2.6.35.7custom/include/generated/utsrelease.h

> You are right the "utsrelease.h" is located under these directories.
> But how can --with-kernel path see that specific file?

I think, the script  is looking for "utsrelease.h"

since I think, you must have built the kernel by  yourself and the sources
for it  seem to lie under "/usr/src/redhat/BUILD/kernel-2.6.35.7custom",
I'd try the ./configure
--with-kernel="/usr/src/redhat/BUILD/kernel-2.6.35.7custom" option.

If the kernel is not self-built and the distribution kernel, try the
penultimate line.  Definitive take an ntry with the release number
matching  to your current running kernel

BTW May I ask, If you, by any chance, are trying this out on a rocks
cluster
machine ?
Just curious 
...

Greetings
Vlad

> previous files is the right one for loading the kernel module?
> Thanks, in advance
>> Date: Thu, 2 Feb 2012 12:31:09 +0100
>> From: vlad <at> cosy.sbg.ac.at
>> To: g_p_java <at> hotmail.com
>> Subject: Re: [Pvfs2-users] configure: error: The kernel source tree
does
>> not appear to be 2.6
>> 
>> Hi!
>> 
>> 
>> On Wed, 1 Feb 2012 23:13:25 +0200, g_p g_p <g_p_java <at> hotmail.com>
wrote:
>> > Hello,
>> > i'm using pvfs2 and i'm trying to load the kernel moduleSo i did:
>> > 1st try:
>> > //print version
>> > [~]      cat /proc/versionLinux version 2.6.35.7-23Mar  (gcc version
>> 4.1.2
>> > (Red Hat 4.1.2-48)) 
>> > [~]     cd /usr/pvfs-2.8.1 [pvfs-2.8.1]      sudo ./configure
>> > --with-kernel=/boot/vmlinuz-2.6.35.7-23MarChecking ... (etc)ERROR:
>> > configure: error: The --with-kernel path
>> > /boot/vmlinuz-
>> > 2.6.35.7-23Mar  is not a directory.
>> > 
>> > 2nd try:
>> > [pvfs-2.8.1]      sudo ./configure
>> > --with-kernel=/usr/src/linux-2.6.35.7Checking ... (etc)
>> > ERROR: grep:
>> > /usr/src/linux-2.6.35.7/include/linux/utsrelease.h: No such file or
>> > directory
>> 
>> If it is a distribution  kernel install the corresponding kernel header
>> files (RHEL/Centos: kernel-devel-≤VERSION-In-USE>,  debian:
>> linux-headers-≤VERSION-IN_USE>) and let the parameter --with-kernel
point
>> to that specific directory the headres get installed (which is usually
>> /usr/src, but sometimes also /usr/src/kernels/linux-...<VERSION> )
>> 
>> If the matching headers are actually installed and there are not found,

>> do a "locate utsrelease.h" after updating the db with updatedb.
>> 
>> 
>> Good Luck!
>> 
>> Greetings,
>> Vlad
Elaine Quarles | 2 Feb 2012 16:24
Favicon

RE: configure: error: The kernel source tree does not appear to be 2.6

It looks like you are using a vanilla kernel that does not yet have all the .h files in place that OrangeFS needs. If that is the case, these commands should work.

 

cd /lib/modules/`uname -r`/source

make oldconfig

 

Then build OrangeFS using --with-linux=/lib/modules/`uname -r`/source

 

-- Elaine

 

From: g_p g_p [mailto:g_p_java <at> hotmail.com]
Sent: Wednesday, February 01, 2012 4:32 PM
To: elaine <at> omnibond.com; pvfs2
Subject: RE: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6

 

Hello and thanks for replying,

 

i tried that but i still get that error


[pvfs-2.8.1]$ sudo ./configure --with-kernel=/lib/modules/`uname -r`/source 

grep: /lib/modules/2.6.35.7-23Mar/source/include/linux/utsrelease.h: No such file or directory

configure: error: The kernel source tree does not appear to be 2.6

 

What shall i do next?

 

 

From: elaine <at> omnibond.com
To: g_p_java <at> hotmail.com; pvfs2-users <at> beowulf-underground.org
Subject: RE: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6
Date: Wed, 1 Feb 2012 16:26:21 -0500

Try --with-kernel=/lib/modules/`uname -r`/source

 

Hope that helps,

Elaine

 

From: pvfs2-users-bounces <at> beowulf-underground.org [mailto:pvfs2-users-bounces <at> beowulf-underground.org] On Behalf Of g_p g_p
Sent: Wednesday, February 01, 2012 4:13 PM
To: pvfs2
Subject: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6

 

Hello,

 

i'm using pvfs2 and i'm trying to load the kernel module

So i did:

 

1st try:

 

//print version

 

[~]      cat /proc/version

Linux version 2.6.35.7-23Mar  (gcc version 4.1.2 (Red Hat 4.1.2-48)) 

[~]     cd /usr/pvfs-2.8.1 

[pvfs-2.8.1]      sudo ./configure --with-kernel=/boot/vmlinuz-2.6.35.7-23Mar

Checking ... (etc)

ERROR: configure: error: The --with-kernel path /boot/vmlinuz- 2.6.35.7-23Mar  is not a directory.

 

 

2nd try:

 

[pvfs-2.8.1]      sudo ./configure --with-kernel=/usr/src/linux-2.6.35.7

Checking ... (etc)

ERROR: 

grep: /usr/src/linux-2.6.35.7/include/linux/utsrelease.h: No such file or directory

configure: error: The kernel source tree does not appear to be 2.6

 

So what shall i do in order to fix that?

 

Thanks, in advance

_______________________________________________
Pvfs2-users mailing list
Pvfs2-users <at> beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
Elaine Quarles | 2 Feb 2012 16:28
Favicon

RE: configure: error: The kernel source tree does not appear to be 2.6

Sorry, I did not see the answer from Vlad until after replying. Glad he was able to help you!

 

Thanks,

Elaine

 

From: Elaine Quarles [mailto:elaine <at> omnibond.com]
Sent: Thursday, February 02, 2012 10:24 AM
To: 'g_p g_p'; 'pvfs2'
Subject: RE: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6

 

It looks like you are using a vanilla kernel that does not yet have all the .h files in place that OrangeFS needs. If that is the case, these commands should work.

 

cd /lib/modules/`uname -r`/source

make oldconfig

 

Then build OrangeFS using --with-linux=/lib/modules/`uname -r`/source

 

-- Elaine

 

From: g_p g_p [mailto:g_p_java <at> hotmail.com]
Sent: Wednesday, February 01, 2012 4:32 PM
To: elaine <at> omnibond.com; pvfs2
Subject: RE: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6

 

Hello and thanks for replying,

 

i tried that but i still get that error


[pvfs-2.8.1]$ sudo ./configure --with-kernel=/lib/modules/`uname -r`/source 

grep: /lib/modules/2.6.35.7-23Mar/source/include/linux/utsrelease.h: No such file or directory

configure: error: The kernel source tree does not appear to be 2.6

 

What shall i do next?

 

 

From: elaine <at> omnibond.com
To: g_p_java <at> hotmail.com; pvfs2-users <at> beowulf-underground.org
Subject: RE: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6
Date: Wed, 1 Feb 2012 16:26:21 -0500

Try --with-kernel=/lib/modules/`uname -r`/source

 

Hope that helps,

Elaine

 

From: pvfs2-users-bounces <at> beowulf-underground.org [mailto:pvfs2-users-bounces <at> beowulf-underground.org] On Behalf Of g_p g_p
Sent: Wednesday, February 01, 2012 4:13 PM
To: pvfs2
Subject: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6

 

Hello,

 

i'm using pvfs2 and i'm trying to load the kernel module

So i did:

 

1st try:

 

//print version

 

[~]      cat /proc/version

Linux version 2.6.35.7-23Mar  (gcc version 4.1.2 (Red Hat 4.1.2-48)) 

[~]     cd /usr/pvfs-2.8.1 

[pvfs-2.8.1]      sudo ./configure --with-kernel=/boot/vmlinuz-2.6.35.7-23Mar

Checking ... (etc)

ERROR: configure: error: The --with-kernel path /boot/vmlinuz- 2.6.35.7-23Mar  is not a directory.

 

 

2nd try:

 

[pvfs-2.8.1]      sudo ./configure --with-kernel=/usr/src/linux-2.6.35.7

Checking ... (etc)

ERROR: 

grep: /usr/src/linux-2.6.35.7/include/linux/utsrelease.h: No such file or directory

configure: error: The kernel source tree does not appear to be 2.6

 

So what shall i do in order to fix that?

 

Thanks, in advance

_______________________________________________
Pvfs2-users mailing list
Pvfs2-users <at> beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
Chuck Cranor | 2 Feb 2012 19:17
Picon
Favicon

OrangeFS 2.8.4 lebf_encode_req op 42 PVFS_SERV_TREE_GET_FILE_SIZE bug


[[ forwarding rejected message, as no one seems to 
   answer at pvfs2-users-owner <at> beowulf-underground.org ]]

From: pvfs2-users-owner <at> beowulf-underground.org
To: chuck <at> ece.cmu.edu
Date: Mon, 30 Jan 2012 16:22:47 -0500

You are not allowed to post to this mailing list, and your message has
been automatically rejected.  If you think that your messages are
being rejected in error, contact the mailing list owner at
pvfs2-users-owner <at> beowulf-underground.org.

Date: Mon, 30 Jan 2012 16:22:42 -0500
From: Chuck Cranor <chuck <at> ece.cmu.edu>
To: pvfs2-users <at> beowulf-underground.org
Cc: Garth Gibson <garth <at> cs.cmu.edu>
Subject: OrangeFS 2.8.4 lebf_encode_req op 42 PVFS_SERV_TREE_GET_FILE_SIZE bug
User-Agent: Mutt/1.4.2.3i
Organization: Carnegie Mellon University

hi-

    I've been trying to run the File System Test Suite (test-fs/MPI-IO TEST)
on PVFS (it is open source, here: https://sourceforge.net/projects/test-fs/ ),
and I found a bug in OrangeFS 2.8.4 that manifests itself with the 
following error in pvfs2-client.log when the number of I/O nodes is > 58:

[E 12:22:20.488759] lebf_encode_req: op 42 needed 536 bytes but alloced only 524

Google search didn't come up with anything on this, so I thought I'd
send a note here so the info gets indexed on the web (in case anyone
else needs help with this).

The problem is due to a buffer size management error in 
src/proto/PINT-le-bytefield.c.  The code is missing the line:

         reqsize = extra_size_PVFS_servreq_tree_get_file_size;

in the PVFS_SERV_TREE_GET_FILE_SIZE case of the lebf_initialize() 
function.

Oddly enough, this very bug was inadvertently(?) fixed way back 
in 21-Jun-2010 on a different branch:

http://www.beowulf-underground.org/pipermail/pvfs2-cvs/2010-June/013283.html

with the comment "fixes to make the new server state machines compile 
with robust security" and that fix was only recently merged into the SVN
head (r9123 on 2011-11-04).

This is all with UBUNTU-10.   I was initially trying to use UBUNTU-11
but I found that the current release of OrangeFS (2.8.4) does not 
compile on UBUNTU-11 due to Linux kernel API changes (see:

http://www.beowulf-underground.org/pipermail/pvfs2-users/2011-September/003479.html

).   I updated to the CVS head ....

  cvs -q -d :pserver:anonymous <at> cvs.parl.clemson.edu:/anoncvs \
          co -r Orange-Branch pvfs2

(this was back on 15-Oct-2011 before the move to subversion), but I
found that the developer branch was unstable, and test-fs/MPI-IO TEST
would break it like this (this is with a simple 3 node cluster, with
machines h0, h1, and h2):

mpirun -H h0,h1,h2 /usr/cmu/fs_test.x -target /m/pvfs/fs_test.out.death \
  -strided 1 -supersize 1024 -shift -barriers aopen \
  -experiment pvfs_20120130_0 -io posix -time 60 -touch 2 -type 2 \
  -check 2 -size 47001 -noextra 

runs OK the first time.  When you run it a second time it fails with:

MPI-IO TEST v$Revision: 1.109 $: Mon Jan 30 15:26:35 2012

Mon Jan 30 15:26:35 2012: at operation bopen.
Rank 1 Host h1.plfsbed.testbed.marmot.pdl.cmu.local FATAL ERROR 1327955195: Unable to open file
/m/pvfs/fs_test.out.death for write. (errno=No such file or directory)
Rank 2 Host h2.plfsbed.testbed.marmot.pdl.cmu.local FATAL ERROR 1327955195: Unable to open file
/m/pvfs/fs_test.out.death for write. (errno=No such file or directory)
Mon Jan 30 15:26:35 2012: at operation aopen.

and it leaves a garbage file in 2 of the 3 nodes:

h0:/users/chuck/usr/bin# ssh h0 ls -l /m/pvfs
total 8
-rw-r--r-- 1 root root    0 2012-01-30 15:26 fs_test.out.death
drwxrwxrwx 1 root root 4096 2012-01-30 14:51 lost+found
h0:/users/chuck/usr/bin# ssh h1 ls -l /m/pvfs
ls: cannot access /m/pvfs/fs_test.out.death: No such file or directory
total 4
?????????? ? ?    ?       ?                ? fs_test.out.death
drwxrwxrwx 1 root root 4096 2012-01-30 14:51 lost+found
h0:/users/chuck/usr/bin# ssh h2 ls -l /m/pvfs
ls: cannot access /m/pvfs/fs_test.out.death: No such file or directory
total 4
?????????? ? ?    ?       ?                ? fs_test.out.death
drwxrwxrwx 1 root root 4096 2012-01-30 14:51 lost+found
h0:/users/chuck/usr/bin# 

At that point I decided I would be better off not using developer code,
so I had to downgrade my OS from UBUNTU-11 to UBUNTU-10 in order to
be able to compile the current OrangeFS 2.8.4 release.  That's when
I discovered the "lebf_encode_req op 42 error"...

--- src/proto/PINT-le-bytefield.c-ORIG	2012-01-26 08:22:09.000000000 -0700
+++ src/proto/PINT-le-bytefield.c	2012-01-26 08:22:26.000000000 -0700
 <at>  <at>  -276,6 +276,7  <at>  <at> 
 		resp.u.tree_get_file_size.error = NULL;
 		resp.u.tree_get_file_size.handle_count = 0;
                 resp.u.tree_get_file_size.caller_handle_index = 0;
+                reqsize = extra_size_PVFS_servreq_tree_get_file_size;
 		respsize = extra_size_PVFS_servresp_tree_get_file_size;
 		break;
             case PVFS_SERV_NUM_OPS:  /* sentinel, should not hit */

chuck
Boyd Wilson | 3 Feb 2012 03:53
Favicon

2.8.5 Release

We just released OrangeFS 2.8.5 and it is available at orangefs.org/download


The Windows Client has also been updated.  This release fixes several bugs and also provides support for newer kernels.

enjoy,
-boyd
_______________________________________________
Pvfs2-users mailing list
Pvfs2-users <at> beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
g_p g_p | 4 Feb 2012 18:24
Picon
Favicon

RE: configure: error: The kernel source tree does not appear to be 2.6

Hello,

i actually did:

sudo ./configure --with-kernel=/usr/src/kernels/2.6.18-194.17.1.el5-x86_64

and then it outputted:

----------------------------------------------------------------------

***** Displaying PVFS Configuration Information *****

------------------------------------------------------

PVFS2 configured to build karma gui               :  no

PVFS2 configured to perform coverage analysis     :  no

PVFS2 configured for aio threaded callbacks       : yes

PVFS2 configured to use FUSE                      :  no

PVFS2 configured for the 2.6.x kernel module      : yes

PVFS2 configured for the 2.4.x kernel module      :  no

PVFS2 configured for using the mmap-ra-cache      :  no

PVFS2 will use workaround for redhat 2.4 kernels  :  no

PVFS2 will use workaround for buggy NPTL          :  no

PVFS2 server will be built                        : yes


PVFS2 version string: 2.8.1

---------------------------------------------------------------------

(Previously i had tested: 
[pvfs-2.8.1]$ sudo ./configure --with-kernel=/usr/src/redhat/BUILD/kernel-2.6.35.7custom
OUTPUT:configure: error: The kernel source tree does not appear to be 2.6)

What shall i do next?

In the quick start guide says: "The module itself is the file pvfs2.ko in subdirectory src/kernel/linux-2.6 in your build tree"
In my folder "/usr/pvfs-2.8.1/src/kernel/linux-2.6" there is no file named pvfs2.ko or any file created  today.
Tha only file that is modified is the "Makefile" in that specific folder.
So what about the next step? Cause i can't not "insmod" anything.

Thanks, in advance

ps. I don't know if the machine is a cluster

> Date: Thu, 2 Feb 2012 14:28:18 +0100
> From: vlad <at> cosy.sbg.ac.at
> To: g_p_java <at> hotmail.com
> CC: pvfs2-users <at> beowulf-underground.org
> Subject: RE: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6
>
> Hi !
>
>
> On Thu, 2 Feb 2012 15:04:05 +0200, g_p g_p <g_p_java <at> hotmail.com> wrote:
> > Hello and thanks for replying,
> > i did what you told me with "locate"
> > [~]$ locate
> >
> utsrelease.h/usr/btrfs-unstable/include/generated/utsrelease.h/usr/src/kernels/2.6.18-194.11.3.el5-x86_64/include/linux/utsrelease.h/usr/src/kernels/2.6.18-194.17.1.el5-x86_64/include/linux/utsrelease.h/usr/src/kernels/2.6.18-194.17.1.el5.centos.plus-x86_64/include/linux/utsrelease.h/usr/src/linux-2.6.35.7/include/generated/utsrelease.h/usr/src/redhat/BUILD/kernel-2.6.35.7custom/include/generated/utsrelease.h
>
>
> > You are right the "utsrelease.h" is located under these directories.
> > But how can --with-kernel path see that specific file?
>
> I think, the script is looking for "utsrelease.h"
>
> since I think, you must have built the kernel by yourself and the sources
> for it seem to lie under "/usr/src/redhat/BUILD/kernel-2.6.35.7custom",
> I'd try the ./configure
> --with-kernel="/usr/src/redhat/BUILD/kernel-2.6.35.7custom" option.
>
>
> If the kernel is not self-built and the distribution kernel, try the
> penultimate line. Definitive take an ntry with the release number
> matching to your current running kernel
>
>
>
> BTW May I ask, If you, by any chance, are trying this out on a rocks
> cluster
> machine ?
> Just curious
> ...
>
> Greetings
> Vlad
>
>
> > previous files is the right one for loading the kernel module?
> > Thanks, in advance
> >> Date: Thu, 2 Feb 2012 12:31:09 +0100
> >> From: vlad <at> cosy.sbg.ac.at
> >> To: g_p_java <at> hotmail.com
> >> Subject: Re: [Pvfs2-users] configure: error: The kernel source tree
> does
> >> not appear to be 2.6
> >>
> >> Hi!
> >>
> >>
> >> On Wed, 1 Feb 2012 23:13:25 +0200, g_p g_p <g_p_java <at> hotmail.com>
> wrote:
> >> > Hello,
> >> > i'm using pvfs2 and i'm trying to load the kernel moduleSo i did:
> >> > 1st try:
> >> > //print version
> >> > [~] cat /proc/versionLinux version 2.6.35.7-23Mar (gcc version
> >> 4.1.2
> >> > (Red Hat 4.1.2-48))
> >> > [~] cd /usr/pvfs-2.8.1 [pvfs-2.8.1] sudo ./configure
> >> > --with-kernel=/boot/vmlinuz-2.6.35.7-23MarChecking ... (etc)ERROR:
> >> > configure: error: The --with-kernel path
> >> > /boot/vmlinuz-
> >> > 2.6.35.7-23Mar is not a directory.
> >> >
> >> > 2nd try:
> >> > [pvfs-2.8.1] sudo ./configure
> >> > --with-kernel=/usr/src/linux-2.6.35.7Checking ... (etc)
> >> > ERROR: grep:
> >> > /usr/src/linux-2.6.35.7/include/linux/utsrelease.h: No such file or
> >> > directory
> >>
> >> If it is a distribution kernel install the corresponding kernel header
> >> files (RHEL/Centos: kernel-devel-<VERSION-In-USE>, debian:
> >> linux-headers-<VERSION-IN_USE>) and let the parameter --with-kernel
> point
> >> to that specific directory the headres get installed (which is usually
> >> /usr/src, but sometimes also /usr/src/kernels/linux-...<VERSION> )
> >>
> >> If the matching headers are actually installed and there are not found,
>
> >> do a "locate utsrelease.h" after updating the db with updatedb.
> >>
> >>
> >> Good Luck!
> >>
> >> Greetings,
> >> Vlad
_______________________________________________
Pvfs2-users mailing list
Pvfs2-users <at> beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
g_p g_p | 4 Feb 2012 21:39
Picon
Favicon

RE: configure: error: The kernel source tree does not appear to be 2.6

Hello and thanks for replying,

if i execute "make oldconfig",
is that command going to configure the kernel using some old parameters from an old configuration file?

Cause i wouldn't like to make some changes that are going to affect others work.
Cause a lot of people are working on the same machine.

Is that command harmless?

Thanks, in advance

From: elaine <at> omnibond.com
To: g_p_java <at> hotmail.com; pvfs2-users <at> beowulf-underground.org
Subject: RE: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6
Date: Thu, 2 Feb 2012 10:24:11 -0500

.ExternalClass .ecxshape {;} .ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {color:blue;text-decoration:underline;} .ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed {color:purple;text-decoration:underline;} .ExternalClass p {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass p.ecxecxmsochpdefault, .ExternalClass li.ecxecxmsochpdefault, .ExternalClass div.ecxecxmsochpdefault {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass span.ecxecxmsohyperlink {;} .ExternalClass span.ecxecxmsohyperlinkfollowed {;} .ExternalClass span.ecxecxemailstyle18 {;} .ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1 {margin-right:0in;margin-bottom:0in;margin-left:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman","serif";} .ExternalClass span.ecxecxmsohyperlink1 {color:blue;text-decoration:underline;} .ExternalClass span.ecxecxmsohyperlinkfollowed1 {color:purple;text-decoration:underline;} .ExternalClass span.ecxecxemailstyle181 {font-family:"Calibri","sans-serif";color:#1F497D;} .ExternalClass p.ecxecxmsochpdefault1, .ExternalClass li.ecxecxmsochpdefault1, .ExternalClass div.ecxecxmsochpdefault1 {margin-right:0in;margin-left:0in;font-size:10.0pt;font-family:"Times New Roman","serif";} .ExternalClass span.ecxEmailStyle28 {font-family:"Calibri","sans-serif";color:#1F497D;} .ExternalClass .ecxMsoChpDefault {font-size:10.0pt;} <at> page WordSection1 {size:8.5in 11.0in;} .ExternalClass div.ecxWordSection1 {page:WordSection1;}

It looks like you are using a vanilla kernel that does not yet have all the .h files in place that OrangeFS needs. If that is the case, these commands should work.

 

cd /lib/modules/`uname -r`/source

make oldconfig

 

Then build OrangeFS using --with-linux=/lib/modules/`uname -r`/source

 

-- Elaine

 

From: g_p g_p [mailto:g_p_java <at> hotmail.com]
Sent: Wednesday, February 01, 2012 4:32 PM
To: elaine <at> omnibond.com; pvfs2
Subject: RE: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6

 

Hello and thanks for replying,

 

i tried that but i still get that error


[pvfs-2.8.1]$ sudo ./configure --with-kernel=/lib/modules/`uname -r`/source 

grep: /lib/modules/2.6.35.7-23Mar/source/include/linux/utsrelease.h: No such file or directory

configure: error: The kernel source tree does not appear to be 2.6

 

What shall i do next?

 

 

From: elaine <at> omnibond.com
To: g_p_java <at> hotmail.com; pvfs2-users <at> beowulf-underground.org
Subject: RE: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6
Date: Wed, 1 Feb 2012 16:26:21 -0500

Try --with-kernel=/lib/modules/`uname -r`/source

 

Hope that helps,

Elaine

 

From: pvfs2-users-bounces <at> beowulf-underground.org [mailto:pvfs2-users-bounces <at> beowulf-underground.org] On Behalf Of g_p g_p
Sent: Wednesday, February 01, 2012 4:13 PM
To: pvfs2
Subject: [Pvfs2-users] configure: error: The kernel source tree does not appear to be 2.6

 

Hello,

 

i'm using pvfs2 and i'm trying to load the kernel module

So i did:

 

1st try:

 

//print version

 

[~]      cat /proc/version

Linux version 2.6.35.7-23Mar  (gcc version 4.1.2 (Red Hat 4.1.2-48)) 

[~]     cd /usr/pvfs-2.8.1 

[pvfs-2.8.1]      sudo ./configure --with-kernel=/boot/vmlinuz-2.6.35.7-23Mar

Checking ... (etc)

ERROR: configure: error: The --with-kernel path /boot/vmlinuz- 2.6.35.7-23Mar  is not a directory.

 

 

2nd try:

 

[pvfs-2.8.1]      sudo ./configure --with-kernel=/usr/src/linux-2.6.35.7

Checking ... (etc)

ERROR: 

grep: /usr/src/linux-2.6.35.7/include/linux/utsrelease.h: No such file or directory

configure: error: The kernel source tree does not appear to be 2.6

 

So what shall i do in order to fix that?

 

Thanks, in advance

_______________________________________________
Pvfs2-users mailing list
Pvfs2-users <at> beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Gmane