[openib-general] ofed 1.2 - compilation erros on ppc64 and ia64

Yosef Etigin yosefe at voltaire.com
Mon Dec 25 07:29:43 PST 2006


Hello,
I've been testing ofed 1.2 build from 
http://staging.openfabrics.org/builds/ 
<http://staging.openfabrics.org/build/>, (latest.tgz versions both user 
and kernel) and got compilation erros on: ia64, ppc64:

*ppc64:*

    make -w -C ip ip
    make[2]: Entering directory
    `/tmp/openib_gen2/userspace/src/userspace/ipoibtools/iproute2/ip'
    [ ... omitted text ... ]
    gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include
    -DRESOLVE_HOSTNAMES -c -o xfrm_monitor.o xfrm_monitor.c
    gcc -g -O2 -m64 -L/usr/lib64 ip.o ipaddress.o iproute.o iprule.o
    rtm_map.o iptunnel.o ipneigh.o ipntable.o iplink.o ipmaddr.o
    ipmonitor.o ipmroute.o ipprefix.o ipxfrm.o xfrm_state.o
    xfrm_policy.o xfrm_monitor.o ../lib/libnetlink.a ../lib/libutil.a
    -lresolv -L../lib -lnetlink -lutil -o ip
    /usr/bin/ld: skipping incompatible ../lib/libnetlink.a when
    searching for -lnetlink
    /usr/bin/ld: skipping incompatible
    /usr/lib/gcc/powerpc64-suse-linux/4.1.0/../../../libnetlink.a when
    searching for -lnetlink
    /usr/bin/ld: skipping incompatible /usr/lib/libnetlink.a when
    searching for -lnetlink
    /usr/bin/ld: cannot find -lnetlink
    collect2: ld returned 1 exit status
    make[2]: *** [ip] Error 1

possible cause: the src/userspace/ipoibtools/iproute2/Makefile overrides 
CFLAGS (= instead of +=)

*ia64:*

    make -f /usr/src/linux-2.6.16.21-0.8/scripts/Makefile.build
    obj=/tmp/openib_gen2/kernel/drivers/infiniband/core
    gcc [ ... omitted text ... ] -c -o
    /tmp/openib_gen2/kernel/drivers/infiniband/core/.tmp_addr.o
    /tmp/openib_gen2/kernel/drivers/infiniband/core/addr.c
    In file included from /tmp/openib_gen2/kernel/include/rdma/ib_addr.h:37,
    from /tmp/openib_gen2/kernel/drivers/infiniband/core/addr.c:38:
    /tmp/openib_gen2/kernel/include/rdma/ib_verbs.h: In function
    ‘ib_sg_dma_address’:
    /tmp/openib_gen2/kernel/include/rdma/ib_verbs.h:1577: error:
    implicit declaration of function ‘sg_dma_address’
    /tmp/openib_gen2/kernel/include/rdma/ib_verbs.h: In function
    ‘ib_sg_dma_len’:
    /tmp/openib_gen2/kernel/include/rdma/ib_verbs.h:1590: error:
    implicit declaration of function ‘sg_dma_len’
    /tmp/openib_gen2/kernel/drivers/infiniband/core/addr.c: At top level:
    /tmp/openib_gen2/kernel/drivers/infiniband/core/addr.c:61: warning:
    initialization from incompatible pointer type
    [ ... omitted text ... ]
    make: *** [kernel] Error 2


Yossi




More information about the general mailing list