Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCC: Warnings in pre-1.9.0 release #51

Closed
ax3l opened this issue Jul 6, 2015 · 2 comments
Closed

GCC: Warnings in pre-1.9.0 release #51

ax3l opened this issue Jul 6, 2015 · 2 comments

Comments

@ax3l
Copy link
Contributor

ax3l commented Jul 6, 2015

the current master version as of 649ec37 still contains a few warnings that might need a fix before the next release.

Environment

Compiler: gcc 4.8.2 (on Titan/ORNL)
MPICH: 3.1.1
relevant modules (extract): craype/2.2.1 cray-mpich/7.0.4 craype-interlagos gcc/4.8.2 PrgEnv-gnu/5.2.40 mxml/2.9
configure:

LDFLAGS="-fPIC -pthread" CFLAGS="-fPIC -g -O2" CXXFLAGS="-fPIC -g -O2" \
  ./configure --prefix=$MEMBERWORK/$proj/lib/adios-pre1.9.0 --with-zlib \
    --with-mpi=$MPICH_DIR --enable-static --enable-shared \
    --with-mxml=$MXML_DIR --without-dataspaces

MPI-Related

write/adios_mpi_amr.c: In function 'adios_mpi_amr_ag_close':
write/adios_mpi_amr.c: In function 'adios_mpi_amr_ag_close':
write/adios_mpi_amr.c:2954:29: warning: passing argument 5 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
                             ,0, md->g_comm1);
                             ^
In file included from ./public/adios_mpi.h:16:0,
                 from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
 int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
     ^
write/adios_mpi_amr.c:2954:29: warning: passing argument 5 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
                             ,0, md->g_comm1);
                             ^
In file included from ./public/adios_mpi.h:16:0,
                 from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
 int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
     ^
write/adios_mpi_amr.c:2954:29: warning: passing argument 6 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
                             ,0, md->g_comm1);
                             ^
In file included from ./public/adios_mpi.h:16:0,
                 from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
 int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
     ^
write/adios_mpi_amr.c:2954:29: warning: passing argument 6 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
                             ,0, md->g_comm1);
                             ^
In file included from ./public/adios_mpi.h:16:0,
                 from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
 int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
     ^
write/adios_mpi_amr.c: In function 'adios_mpi_amr_ag_close':
write/adios_mpi_amr.c:2954:29: warning: passing argument 5 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
                             ,0, md->g_comm1);
                             ^
In file included from ./public/adios_mpi.h:16:0,
                 from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
 int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
     ^
write/adios_mpi_amr.c:2954:29: warning: passing argument 6 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
                             ,0, md->g_comm1);
                             ^
In file included from ./public/adios_mpi.h:16:0,
                 from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
 int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf

skeldump

In file included from skeldump.c:38:0:
skeldump.h:23:0: warning: "strndup" redefined [enabled by default]
 #  define strndup(str,len) strdup(str)
 ^
In file included from /usr/include/string.h:635:0,
                 from skeldump.c:26:
/usr/include/bits/string2.h:1344:0: note: this is the location of the previous definition
 #   define strndup(s, n) __strndup (s, n)
 ^
skeldump.c:107:5: warning: initialization from incompatible pointer type [enabled by default]
     {"hidden_attrs",         no_argument,          &hidden_attrs,    true}, 
     ^
skeldump.c:107:5: warning: (near initialization for 'options[5].flag') [enabled by default]

bpls

In file included from bpls.c:34:0:
bpls.h:16:0: warning: "strndup" redefined [enabled by default]
 #  define strndup(str,len) strdup(str)
 ^
In file included from /usr/include/string.h:635:0,
                 from bpls.c:23:
/usr/include/bits/string2.h:1344:0: note: this is the location of the previous definition
 #   define strndup(s, n) __strndup (s, n)
 ^
@ax3l ax3l changed the title Warnings in pre-1.9.0 release GCC: Warnings in pre-1.9.0 release Jul 6, 2015
@pnorbert
Copy link
Contributor

pnorbert commented Jul 6, 2015

This warning is intentionally left there to remind us that that particular
piece does not work if a block of data is > 2GB.
It won't be fixed before the release, probably that piece is never executed
in practice.

On Mon, Jul 6, 2015 at 9:04 AM, Axel Huebl notifications@github.com wrote:

Compiler: gcc 4.8.2 (on Titan/ORNL)

the current master version as of ... still contains a few warnings that
might need a fix before the next release:

write/adios_mpi_amr.c: In function 'adios_mpi_amr_ag_close':
write/adios_mpi_amr.c: In function 'adios_mpi_amr_ag_close':
write/adios_mpi_amr.c:2954:29: warning: passing argument 5 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
,0, md->g_comm1);
^
In file included from ./public/adios_mpi.h:16:0,
from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
^
write/adios_mpi_amr.c:2954:29: warning: passing argument 5 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
,0, md->g_comm1);
^
In file included from ./public/adios_mpi.h:16:0,
from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
^
write/adios_mpi_amr.c:2954:29: warning: passing argument 6 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
,0, md->g_comm1);
^
In file included from ./public/adios_mpi.h:16:0,
from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
^
write/adios_mpi_amr.c:2954:29: warning: passing argument 6 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
,0, md->g_comm1);
^
In file included from ./public/adios_mpi.h:16:0,
from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
^
write/adios_mpi_amr.c: In function 'adios_mpi_amr_ag_close':
write/adios_mpi_amr.c:2954:29: warning: passing argument 5 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
,0, md->g_comm1);
^
In file included from ./public/adios_mpi.h:16:0,
from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf,
^
write/adios_mpi_amr.c:2954:29: warning: passing argument 6 of 'MPI_Gatherv' from incompatible pointer type [enabled by default]
,0, md->g_comm1);
^
In file included from ./public/adios_mpi.h:16:0,
from write/adios_mpi_amr.c:24:
/opt/cray/mpt/7.0.4/gni/mpich2-gnu/48/include/mpi.h:972:5: note: expected 'const int *' but argument is of type 'uint64_t *'
int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf


Reply to this email directly or view it on GitHub
#51.

@ax3l
Copy link
Contributor Author

ax3l commented Jul 6, 2015

all right, thank you for the info!

I added two additional small warnings (redefines in macros) with an online edit for bpls and skeldump (redefine of strndup).

@ax3l ax3l closed this as completed May 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants