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

Michael S. Tsirkin mst at mellanox.co.il
Mon Dec 25 07:46:54 PST 2006


> Quoting r. Yosef Etigin <yosefe at voltaire.com>:
> Subject: ofed 1.2 - compilation erros on ppc64 and ia64

Which distro are you testing on?

> 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 +=)

Isn't this makefile part of iproute2?
Can you build iproute on this platform?
	
> *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

Probably a distro-specific backport problem - check how come sg_dma_len is not defined.
I see this on upstream 2.6.16
	asm-powerpc/scatterlist.h:#define sg_dma_len(sg) ((sg)->dma_length)


-- 
MST




More information about the general mailing list