[openib-general] Dapl compilation fails (openib branch 1.0)
Vladimir Sokolovsky
vlad at mellanox.co.il
Mon Mar 6 08:32:04 PST 2006
> -----Original Message-----
> From: James Lentini [mailto:jlentini at netapp.com]
> Sent: Monday, March 06, 2006 5:12 PM
> To: Vladimir Sokolovsky
> Cc: arlin.r.davis at intel.com; openib-general at openib.org
> Subject: Re: [openib-general] Dapl compilation fails (openib
> branch 1.0)
>
>
>
> On Sun, 5 Mar 2006, Vladimir Sokolovsky wrote:
>
> > Arlin,
> > I tried to compile dapl and it failed while linking
> libdapl.so Please
> > advise:
> >
> > Command line:
> >
> > librdmacm:
> > make -C src/userspace/librdmacm \
> > CPPFLAGS="-I../libibverbs/include" \
> > LDFLAGS="-L../libibverbs/src -libverbs"
> >
> > dat:
> > make -C $(SRC)userspace/dapl/dat/udat
> >
> > udapl:
> > make -C src/userspace/dapl/dapl/udapl \
> > CPPFLAGS="-I../../../libibverbs/include/infiniband
> > -I../../../librdmacm/include \
> > -I../../../libibverbs/include" \
> > LDFLAGS="-L../../../libibverbs/src/.libs -libverbs \
> > -L../../../dapl/dat/udat/Target/i686 -ldat
> > -L../../../librdmacm/src/.libs -lrdmacm"
>
> To compile dapl, you should install the userspace OpenIB
> libraries (verbs, provider, ib cm, and rdma cm) and then
> compile the dat registry (dat/udat) and OpenIB provider
> (dapl/dapl/udapl).
>
James,
I need to compile OpenIB userspace packages without installing them.
The problem that I can't add LDFLAGS to dapl make command, but I found a
workaround:
To override LD variable instead of overriding all LDFLAGS in the dapl's
Makefile.
make -C $(SRC)userspace/dapl/dapl/udapl VERBS=openib_cma \
CPPFLAGS="-I../../../libibverbs/include/infiniband
-I../../../librdmacm/include \
-I../../../libibverbs/include" \
LD="ld -L../../../libibverbs/src/.libs -libverbs \
-L../../../dapl/dat/udat/Target/$(shell uname -m) -ldat
-L../../../librdmacm/src/.libs -lrdmacm \
-L../../../libibcm/src/.libs -libcm"
Thanks,
Regards,
Vladimir
More information about the general
mailing list