error: identifier "__size" is undefined
mpiicc -DMPI1 -c IMB.c
/usr/include/libio.h(336): error: expected an expression
char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
^
/usr/include/stdio.h(710): error: identifier "__size" is undefined
extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
^
/usr/include/stdio.h(711): error: identifier "__n" is undefined
size_t __n, FILE *__restrict __s) __wur;
^
/usr/include/stdio.h(732): error: identifier "__size" is undefined
extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
^
/usr/include/stdlib.h(756): error: identifier "__nmemb" is undefined
size_t __nmemb, size_t __size, __compar_fn_t __compar)
^
/usr/include/stdlib.h(756): error: identifier "__size" is undefined
size_t __nmemb, size_t __size, __compar_fn_t __compar)
^
/usr/include/stdlib.h(860): error: identifier "__n" is undefined
extern int mblen (__const char *__s, size_t __n) __THROW __wur;
^
/usr/include/stdlib.h(864): error: identifier "__n" is undefined
__const char *__restrict __s, size_t __n) __THROW __wur;
^
/usr/include/stdlib.h(872): error: identifier "__n" is undefined
__const char *__restrict __s, size_t __n) __THROW;
^
/usr/include/stdlib.h(875): error: identifier "__n" is undefined
__const wchar_t *__restrict __pwcs, size_t __n)
^
^
/usr/include/string.h(132): error: identifier "__n" is undefined
__const char *__restrict __src, size_t __n)
^
/usr/include/string.h(140): error: identifier "__n" is undefined
size_t __n) __THROW __nonnull ((1, 2));
^
/usr/include/string.h(146): error: identifier "__n" is undefined
extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
^
/usr/include/string.h(154): error: identifier "__n" is undefined
__const char *__restrict __src, size_t __n)
^
/usr/include/string.h(168): error: identifier "__n" is undefined
extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
^
compilation aborted for IMB.c (code 2)
gmake[2]: *** [IMB.o] Error 2
gmake[2]: Leaving directory `/app/setups/imb/4.0.0/src'
gmake[1]: *** [IMB-MPI1] Error 2
gmake[1]: Leaving directory `/app/setups/imb/4.0.0/src'
make: *** [MPI1] Error 2
-----------------------------------------------------------------------------
Targets: MPI1 (default), EXT, IO, NBC, all, clean
MPI1 builds the MPI-1 standard benchmarks
EXT builds the one sided communications benchmarks
IO builds the MPI-File I\/O benchmarks
NBC builds the nonblocking collective operations benchmarks
RMA builds the one-sided benchmarks (MPI-3 plus passive mode)
all = MPI1+EXT+IO+NBC
----------------------------------------------------------------------------------------
Intel MPI Benchmark - Compilation Error
While Compilation I got the below Error Message.
/usr/include/libio.h(365): error: identifier "__nbytes" is undefined
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
Error Message: /usr/include/libio.h(365): error: identifier "__nbytes" is undefined
DID: In the header file after adding the option.
#define __nbytes
We were getting below error message.
CONSEQUENCE 1:
/usr/include/libio.h(365): error: expected a type specifier
CONSEQUNENCE 2:
Also while edit the libio.h header file it is affecting other program while making example.
# make ex4
/app/intel/impi/4.1.0.024/intel64/bin/mpicc -g -Wall -I/app/hypre-2.9.0b/include -DHAVE_CONFIG_H -DHYPRE_TIMING -c ex4.c
In file included from /usr/include/stdio.h:75,
from /app/hypre-2.9.0b/include/_hypre_utilities.h:386,
from ex4.c:11:
/usr/include/libio.h:333: error: expected specifier-qualifier-list before ‘__pad5’
/usr/include/libio.h:365: error: expected declaration specifiers or ‘...’ before ‘)’ token
REASON : If we edit any file under /usr/include/headerfile.h(This is GLOBAL) header file.It will affect other program.
SOLUTION : Try to recompile with proper intel compiler then the problem has been resolved.
mpiicc -DMPI1 -c IMB.c
/usr/include/libio.h(336): error: expected an expression
char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
^
/usr/include/stdio.h(710): error: identifier "__size" is undefined
extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
^
/usr/include/stdio.h(711): error: identifier "__n" is undefined
size_t __n, FILE *__restrict __s) __wur;
^
/usr/include/stdio.h(732): error: identifier "__size" is undefined
extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
^
/usr/include/stdlib.h(756): error: identifier "__nmemb" is undefined
size_t __nmemb, size_t __size, __compar_fn_t __compar)
^
/usr/include/stdlib.h(756): error: identifier "__size" is undefined
size_t __nmemb, size_t __size, __compar_fn_t __compar)
^
/usr/include/stdlib.h(860): error: identifier "__n" is undefined
extern int mblen (__const char *__s, size_t __n) __THROW __wur;
^
/usr/include/stdlib.h(864): error: identifier "__n" is undefined
__const char *__restrict __s, size_t __n) __THROW __wur;
^
/usr/include/stdlib.h(872): error: identifier "__n" is undefined
__const char *__restrict __s, size_t __n) __THROW;
^
/usr/include/stdlib.h(875): error: identifier "__n" is undefined
__const wchar_t *__restrict __pwcs, size_t __n)
^
^
/usr/include/string.h(132): error: identifier "__n" is undefined
__const char *__restrict __src, size_t __n)
^
/usr/include/string.h(140): error: identifier "__n" is undefined
size_t __n) __THROW __nonnull ((1, 2));
^
/usr/include/string.h(146): error: identifier "__n" is undefined
extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
^
/usr/include/string.h(154): error: identifier "__n" is undefined
__const char *__restrict __src, size_t __n)
^
/usr/include/string.h(168): error: identifier "__n" is undefined
extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
^
compilation aborted for IMB.c (code 2)
gmake[2]: *** [IMB.o] Error 2
gmake[2]: Leaving directory `/app/setups/imb/4.0.0/src'
gmake[1]: *** [IMB-MPI1] Error 2
gmake[1]: Leaving directory `/app/setups/imb/4.0.0/src'
make: *** [MPI1] Error 2
-----------------------------------------------------------------------------
Targets: MPI1 (default), EXT, IO, NBC, all, clean
MPI1 builds the MPI-1 standard benchmarks
EXT builds the one sided communications benchmarks
IO builds the MPI-File I\/O benchmarks
NBC builds the nonblocking collective operations benchmarks
RMA builds the one-sided benchmarks (MPI-3 plus passive mode)
all = MPI1+EXT+IO+NBC
----------------------------------------------------------------------------------------
Intel MPI Benchmark - Compilation Error
While Compilation I got the below Error Message.
/usr/include/libio.h(365): error: identifier "__nbytes" is undefined
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
Error Message: /usr/include/libio.h(365): error: identifier "__nbytes" is undefined
DID: In the header file after adding the option.
#define __nbytes
We were getting below error message.
CONSEQUENCE 1:
/usr/include/libio.h(365): error: expected a type specifier
CONSEQUNENCE 2:
Also while edit the libio.h header file it is affecting other program while making example.
# make ex4
/app/intel/impi/4.1.0.024/intel64/bin/mpicc -g -Wall -I/app/hypre-2.9.0b/include -DHAVE_CONFIG_H -DHYPRE_TIMING -c ex4.c
In file included from /usr/include/stdio.h:75,
from /app/hypre-2.9.0b/include/_hypre_utilities.h:386,
from ex4.c:11:
/usr/include/libio.h:333: error: expected specifier-qualifier-list before ‘__pad5’
/usr/include/libio.h:365: error: expected declaration specifiers or ‘...’ before ‘)’ token
REASON : If we edit any file under /usr/include/headerfile.h(This is GLOBAL) header file.It will affect other program.
SOLUTION : Try to recompile with proper intel compiler then the problem has been resolved.
0 comments:
Post a Comment