[openib-general] Installation on openSUSE 10.2 Beta1 fails

Diego Guella diego.guella at sircomtech.com
Thu Nov 9 00:31:35 PST 2006


MessageDotan,
thanks for your reply.
In my distribution I found 
-----
#define USER_HZ 100
-----
so I added this line
-----
#define HZ 100
-----
in utils.h.

Now, I get another error!
I tried also to not include 'ipoibtools', as Tziporet told me, and this is the same error I got.
This is my previous message, with the error I got:
-----
> 
> From: "Tziporet Koren"
>> The failing is utility is used for IPoIB high availability. If you don't 
>> need to use them you can just change this line in ofed.conf:
>> ipoibtools=n
>>
>> Tziporet
>>
> Thanks Tziporet for your answer.
> 
> 
> Tried just right now, i disabled ipoibtools. I get another, more strange 
> error:
> (attached OFED.3816.log)
> -----
> /bin/rm -f /var/tmp/OFEDRPM/BUILD/openib-1.1/configure.cache
> cd /var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/examples
> cd /var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/libibverbs
> Running: 
> ./configure --cache-file=/var/tmp/OFEDRPM/BUILD/openib-1.1/configure.cache --disable-libcheck 
> --prefix /usr/local/ofed --libdir /usr/local/ofed/lib 
> CPPFLAGS="-I../libibverbs/include"
> configure: creating cache /var/tmp/OFEDRPM/BUILD/openib-1.1/configure.cache
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking for style of include used by make... GNU
> checking for gcc... gcc
> checking for C compiler default output file name... configure: error: C 
> compiler cannot create executables
> See `config.log' for more details.
> Failed to execute: 
> ./configure --cache-file=/var/tmp/OFEDRPM/BUILD/openib-1.1/configure.cache --disable-libcheck 
> --prefix /usr/local/ofed --libdir /usr/local/ofed/lib 
> CPPFLAGS="-I../libibverbs/include"
> error: Bad exit status from /var/tmp/rpm-tmp.46102 (%install)
> -----
> 
> Am I right? It says my C compiler cannot create executables???? Is it joking 
> me????
> In the log file, line 6393, it says:
> -----
> checking for C compiler default output file name... a.out
> -----
> 
> I don't understand....!
> Is there something I can do to fix this?
> 
> 
> Thanks,
> Diego
> 
>
-----

Why on line 6393 it says my compiler default output file name is a.out, and 5000 lines after it says my C compiler cannot create executables??

It seems this is the last error preventing me to have OFED built!

What can I do now?


Thanks,
Diego

  ----- Original Message ----- 
  From: Dotan Barak 
  To: Diego Guella ; openib-general at openib.org 
  Sent: Wednesday, November 08, 2006 5:00 PM
  Subject: RE: [openib-general] Installation on openSUSE 10.2 Beta1 fails


  Hi Diego.

  You got the following output:

  utils.c: In function '__get_hz':
  utils.c:368: error: 'HZ' undeclared (first use in this function)
  utils.c:368: error: (Each undeclared identifier is reported only once
  utils.c:368: error: for each function it appears in.)


  because the macro HZ wasn't found by the compiler.


  in my machine HZ is defined in 2 files)
  1 ) asm/param.h:#define HZ sysconf(_SC_CLK_TCK)
  2) in asm-x86_64/param.h I noticed the following code (this define is being used in the compilation process in my 1000 MHz machine):

  #ifndef HZ
  #define HZ 100
  #endif



  I believe that there is a missing include in this distribution.
  I think that if you'll add the later lines everything will work ...

  Dotan

   -----Original Message-----
  From: openib-general-bounces at openib.org [mailto:openib-general-bounces at openib.org] On Behalf Of Diego Guella
  Sent: Wednesday, November 08, 2006 11:21 AM
  To: openib-general at openib.org
  Subject: [openib-general] Installation on openSUSE 10.2 Beta1 fails


    <<cut>>
    -----
    ERROR: Failed executing "rpmbuild --rebuild --define '_topdir /var/tmp/OFEDRPM' --define '_prefix /usr/local/ofed' --define 'build_root /var/tmp/OFED' --define 'configure_options --with-dapl --with-ipoibtools --with-libibcm --with-libibcommon --with-libibmad --with-libibumad --with-libibverbs --with-libipathverbs --with-libmthca --with-opensm --with-librdmacm --with-libsdp --with-openib-diags --with-srptools --with-mstflint --with-perftest --with-ipath_inf-mod --with-ipoib-mod --with-mthca-mod --with-sdp-mod --with-srp-mod --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod' --define 'configure_options32 --with-dapl --with-ipoibtools --with-libibcm --with-libibcommon --with-libibmad --with-libibumad --with-libibverbs --with-libipathverbs --with-libmthca --with-opensm --with-librdmacm --with-libsdp --with-openib-diags --with-srptools ' --define 'KVERSION 2.6.18.1-13-default' --define 'KSRC /lib/modules/2.6.18.1-13-default/build' --define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' --define 'NETWORK_CONF_DIR /etc/sysconfig/network' --define 'modprobe_update 1' --define 'include_ipoib_conf 1' --define 'build_32bit 1' /opt/nfs_public/OFED-1.1/SRPMS/openib-1.1-0.src.rpm"

    See log file: /tmp/OFED.29778.log
    -----

    OFED.29778.log attached.
    The 'interesting' part of the log is:
    -----
    gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES   -c -o utils.o utils.c
    utils.c: In function 'inet_addr_match':
    utils.c:333: warning: initialization discards qualifiers from pointer target type
    utils.c:334: warning: initialization discards qualifiers from pointer target type
    utils.c: In function '__get_hz':
    utils.c:368: error: 'HZ' undeclared (first use in this function)
    utils.c:368: error: (Each undeclared identifier is reported only once
    utils.c:368: error: for each function it appears in.)
    make[2]: *** [utils.o] Error 1
    make[2]: Leaving directory `/var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/ipoibtools/iproute2/lib'
    make[1]: *** [lib] Error 2
    make[1]: Leaving directory `/var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/ipoibtools/iproute2'
    make: *** [ipoibtools] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.4033 (%install)
    -----

    Here, I give up: I don't understand where 'HZ' should be defined, or where it comes from.
    Where is the problem?
    Is there a solution to fix it?


    Thanks,
    Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20061109/a9eaff7f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OFED.3816.log.tar.gz
Type: application/octet-stream
Size: 93119 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20061109/a9eaff7f/attachment.obj>


More information about the general mailing list