Topic
  • 4 replies
  • Latest Post - ‏2013-12-06T20:58:36Z by Amy.S
Amy.S
Amy.S
14 Posts

Pinned topic make World fails

‏2013-12-06T19:59:36Z |

I am trying to install GPFS on a Redhat Enterprise Linux. I get an error with make Autoconfig

cd /usr/lpp/mmfs/src/config; ./configure --genenvonly; if [ $? -eq 0 ]; then /usr/bin/cpp -P def.mk.proto > ./def.mk; exit $? || exit 1; else exit $?; fi
Cannot find a valid kernel include dir
make: *** [Autoconfig] Error 1

So I tried manual creation of the env.mcr file with the following edits:

#define GPFS_LINUX
#define GPFS_ARCH_X86_64

LINUX_DISTRIBUTION = REDHAT_AS_LINUX
#define LINUX_KERNEL_VERSION 2063299
KERNEL_BUILD_DIR = /lib/modules/2.6.32-358.11.1.e16.x86_64/build

 

But I get the following error with make World

sudo make World
Verifying that tools to build the portability layer exist....
cpp present
gcc present
g++ present
ld present
cd /usr/lpp/mmfs/src/config; /usr/bin/cpp -P def.mk.proto > ./def.mk; exit $? || exit 1
rm -rf /usr/lpp/mmfs/src/include /usr/lpp/mmfs/src/bin /usr/lpp/mmfs/src/lib
mkdir /usr/lpp/mmfs/src/include /usr/lpp/mmfs/src/bin /usr/lpp/mmfs/src/lib
rm -f //usr/lpp/mmfs/src/gpl-linux/gpl_kernel.tmp.ver
cleaning (/usr/lpp/mmfs/src/ibm-kxi)
make[1]: Entering directory `/usr/lpp/mmfs/src/ibm-kxi'
rm -f ibm_kxi.trclst
rm -f  install.he; \
     for i in cxiTypes.h cxiSystem.h cxi2gpfs.h cxiVFSStats.h cxiCred.h cxiIOBuffer.h cxiSharedSeg.h cxiMode.h Trace.h cxiMmap.h cxiAtomic.h cxiTSFattr.h cxiAclUser.h cxiLinkList.h cxiDmapi.h Dynassert.h LockNames.h lxtrace.h cxiGcryptoDefs.h DirIds.h; do \
        (set -x; rm -f -r /usr/lpp/mmfs/src/include/cxi/$i) done
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiTypes.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiSystem.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxi2gpfs.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiVFSStats.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiCred.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiIOBuffer.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiSharedSeg.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiMode.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/Trace.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiMmap.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiAtomic.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiTSFattr.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiAclUser.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiLinkList.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiDmapi.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/Dynassert.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/LockNames.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/lxtrace.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/cxiGcryptoDefs.h
+ rm -f -r /usr/lpp/mmfs/src/include/cxi/DirIds.h
make[1]: Leaving directory `/usr/lpp/mmfs/src/ibm-kxi'
cleaning (/usr/lpp/mmfs/src/ibm-linux)
make[1]: Entering directory `/usr/lpp/mmfs/src/ibm-linux'
rm -f install.he; \
     for i in cxiTypes-plat.h cxiSystem-plat.h cxiIOBuffer-plat.h cxiSharedSeg-plat.h cxiMode-plat.h Trace-plat.h cxiAtomic-plat.h cxiMmap-plat.h cxiVFSStats-plat.h cxiCred-plat.h cxiDmapi-plat.h; do \
                (set -x; rm -rf /usr/lpp/mmfs/src/include/cxi/$i) done
+ rm -rf /usr/lpp/mmfs/src/include/cxi/cxiTypes-plat.h
+ rm -rf /usr/lpp/mmfs/src/include/cxi/cxiSystem-plat.h
+ rm -rf /usr/lpp/mmfs/src/include/cxi/cxiIOBuffer-plat.h
+ rm -rf /usr/lpp/mmfs/src/include/cxi/cxiSharedSeg-plat.h
+ rm -rf /usr/lpp/mmfs/src/include/cxi/cxiMode-plat.h
+ rm -rf /usr/lpp/mmfs/src/include/cxi/Trace-plat.h
+ rm -rf /usr/lpp/mmfs/src/include/cxi/cxiAtomic-plat.h
+ rm -rf /usr/lpp/mmfs/src/include/cxi/cxiMmap-plat.h
+ rm -rf /usr/lpp/mmfs/src/include/cxi/cxiVFSStats-plat.h
+ rm -rf /usr/lpp/mmfs/src/include/cxi/cxiCred-plat.h
+ rm -rf /usr/lpp/mmfs/src/include/cxi/cxiDmapi-plat.h
make[1]: Leaving directory `/usr/lpp/mmfs/src/ibm-linux'
cleaning (/usr/lpp/mmfs/src/gpl-linux)
make[1]: Entering directory `/usr/lpp/mmfs/src/gpl-linux'
Pre-kbuild step 1...
/usr/bin/make -C /usr/src/linux M=/usr/lpp/mmfs/src/gpl-linux clean
make: Entering an unknown directory
make: *** /usr/src/linux: No such file or directory.  Stop.
make: Leaving an unknown directory
make[1]: *** [Clean] Error 2
make[1]: Leaving directory `/usr/lpp/mmfs/src/gpl-linux'
make: *** [Clean] Error 1
[amina@oc0157427437 src]$
 

 

What am I doing wrong?

Thanks for your help,

Amy

  • oester
    oester
    108 Posts

    Re: make World fails

    ‏2013-12-06T20:05:11Z  

    This error: Cannot find a valid kernel include dir

     

    You need to install the kernel source packages to match your running kernel before you can build GPFS.

  • Amy.S
    Amy.S
    14 Posts

    Re: make World fails

    ‏2013-12-06T20:28:15Z  
    • oester
    • ‏2013-12-06T20:05:11Z

    This error: Cannot find a valid kernel include dir

     

    You need to install the kernel source packages to match your running kernel before you can build GPFS.

    uname -a
    Linux oc0157427437.ibm.com 2.6.32-358.2.1.el6.x86_64 #1 SMP Wed Feb 20 12:17:37 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

    While my /lib/modules has a 2.6.32-358.11.1.el6.x86_64 directory, and I have the

    kernel-headers-2.6.32-358.2.1.el6.x86_64 and kernel-devel-2.6.32-358.2.1.el6.x86_64 packages installed.

    So I tried the manual creation of env.mcr, which also returns an error.

  • oester
    oester
    108 Posts

    Re: make World fails

    ‏2013-12-06T20:46:28Z  
    • Amy.S
    • ‏2013-12-06T20:28:15Z

    uname -a
    Linux oc0157427437.ibm.com 2.6.32-358.2.1.el6.x86_64 #1 SMP Wed Feb 20 12:17:37 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

    While my /lib/modules has a 2.6.32-358.11.1.el6.x86_64 directory, and I have the

    kernel-headers-2.6.32-358.2.1.el6.x86_64 and kernel-devel-2.6.32-358.2.1.el6.x86_64 packages installed.

    So I tried the manual creation of env.mcr, which also returns an error.

    If  /lib/modules has a 2.6.32-358.11.1.el6.x86_64 directory, you still have a package mis-match. For example, what do you et when you run this?

    rpm -qa | grep 2.6.32-358.2.1

    I get this:

    [root@nrg5-gpfs01 ~]# rpm -qa | grep 2.6.32-279.14.1

    kernel-headers-2.6.32-279.14.1.el6.x86_64
    kernel-firmware-2.6.32-279.14.1.el6.noarch
    perf-2.6.32-279.14.1.el6.x86_64
    kernel-2.6.32-279.14.1.el6.x86_64
    kernel-devel-2.6.32-279.14.1.el6.x86_64

     

  • Amy.S
    Amy.S
    14 Posts

    Re: make World fails

    ‏2013-12-06T20:58:36Z  
    • oester
    • ‏2013-12-06T20:46:28Z

    If  /lib/modules has a 2.6.32-358.11.1.el6.x86_64 directory, you still have a package mis-match. For example, what do you et when you run this?

    rpm -qa | grep 2.6.32-358.2.1

    I get this:

    [root@nrg5-gpfs01 ~]# rpm -qa | grep 2.6.32-279.14.1

    kernel-headers-2.6.32-279.14.1.el6.x86_64
    kernel-firmware-2.6.32-279.14.1.el6.noarch
    perf-2.6.32-279.14.1.el6.x86_64
    kernel-2.6.32-279.14.1.el6.x86_64
    kernel-devel-2.6.32-279.14.1.el6.x86_64

     

    Thankyou. I get nothing. but  when i try installing kernel-devel or kernel-headers using yum I get:

    Setting up Install Process
    Package matching kernel-devel-2.6.32-358.2.1.el6.x86_64 already installed. Checking for update.
    Nothing to do
     

    But I just realized there was a typo in my manually created env.mcr file, after correcting it, I was able to run make World directly bypassing the make Autoconfig step.

     

    Thanks for your help,

    amina