[openib-general] there are compilation warnings in complib
Hal Rosenstock
halr at voltaire.com
Thu Jul 13 03:25:58 PDT 2006
On Thu, 2006-07-13 at 03:58, Dotan Barak wrote:
> Hi.
>
> I noticed that there are warnings during the compilation of the gen2 driver.
>
> machine props:
> *************************************************************
> Host Architecture : x86_64
> Linux Distribution: Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
> Kernel Version : 2.6.9-22.ELsmp
> Memory size : 4037872 kB
> Driver Version : gen2_linux-20060711-1731 (REV=8496)
> HCA ID(s) : mthca0
> HCA model(s) : 25218
> FW version(s) : 5.1.921
> Board(s) : MT_0150000001
> *************************************************************
>
> compilation log:
> make[1]: Entering directory `/tmp/openib_gen2/last_stable/src/userspace/management/osm/complib'
> if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -Wall -Werror -g -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -MT libosmcomp_la-cl_memory.lo -MD -MP -MF ".deps/libosmcomp_la-cl_memory.Tpo" -c -o libosmcomp_la-cl_memory.lo `test -f 'cl_memory.c' || echo './'`cl_memory.c; \
> then mv -f ".deps/libosmcomp_la-cl_memory.Tpo" ".deps/libosmcomp_la-cl_memory.Plo"; else rm -f ".deps/libosmcomp_la-cl_memory.Tpo"; exit 1; fi
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -Wall -Werror -g -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -MT libosmcomp_la-cl_memory.lo -MD -MP -MF .deps/libosmcomp_la-cl_memory.Tpo -c cl_memory.c -fPIC -DPIC -o .libs/libosmcomp_la-cl_memory.o
> In file included from cl_memory.c:55:
> ./../include/complib/cl_memtrack.h:99: warning: `cl_mem_tracker_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:82)
> cl_memory.c:74: warning: `cl_mem_tracker_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:82)
> cl_memory.c: In function `__cl_mem_track_start':
> cl_memory.c:106: warning: `cl_mem_tracker_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:82)
> cl_memory.c:106: warning: `cl_mem_tracker_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:82)
> cl_memory.c: In function `__cl_mem_track_stop':
> cl_memory.c:143: warning: `cl_mem_display' is deprecated (declared at ./../include/complib/cl_memory.h:139)
> cl_memory.c:152: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:152: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:159: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:159: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c: In function `cl_mem_display':
> cl_memory.c:192: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:206: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:206: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c: In function `cl_mem_check':
> cl_memory.c:229: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:245: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:245: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c: In function `__cl_malloc_trk':
> cl_memory.c:297: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:306: warning: `cl_mem_check' is deprecated (declared at cl_memory.c:223)
> cl_memory.c:354: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:354: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:359: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c: In function `__cl_zalloc_trk':
> cl_memory.c:403: warning: `__cl_malloc_trk' is deprecated (declared at cl_memory.c:296)
> cl_memory.c: In function `__cl_find_mem':
> cl_memory.c:430: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:433: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:433: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c: In function `__cl_free_trk':
> cl_memory.c:448: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:454: warning: `cl_mem_check' is deprecated (declared at cl_memory.c:223)
> cl_memory.c:476: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> cl_memory.c:476: warning: `cl_malloc_hdr_t' is deprecated (declared at ./../include/complib/cl_memtrack.h:96)
> make[1]: *** [libosmcomp_la-cl_memory.lo] Error 1
> make[1]: Leaving directory `/tmp/openib_gen2/last_stable/src/userspace/management/osm/complib'
>
>
> Can you please fix them?
These warnings are expected as those routines and structures are being
deprecated. There was a thread on openib-general on using malloc/free
directly which is what is now done in (at least in the Linux complib; I
don't know if this is being carried over to the Windows one as that is a
separate implementation).
-- Hal
More information about the general
mailing list