Compile Error

Kah-Song Cho cho at sgi.com
Thu May 1 18:24:58 UTC 2014


I got this warning followed by errors, any suggestion how to get around it?  Both gmp-5.0.2 and gmp-5.1.2 have this problem, and I'm using gcc version 4.7.3.

gcc -O2 -std=c99 -mtune=native -march=native -funroll-all-loops  -DNDEBUG -I. -Ideps -Isupport -I$DIR /include  -o gmp/tal-debug.o -c gmp/tal-debug.c
gmp/tal-debug.c:53: warning: 'struct tmp_debug_t' declared inside parameter list
gmp/tal-debug.c:53: warning: its scope is only this definition or declaration, which is probably not what you want
gmp/tal-debug.c: In function '__gmp_tmp_debug_mark':
gmp/tal-debug.c:67: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:67: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:67: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:67: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:69: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:69: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:76: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:77: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:78: error: dereferencing pointer to incomplete type
gmp/tal-debug.c: At top level:
gmp/tal-debug.c:84: warning: 'struct tmp_debug_t' declared inside parameter list
gmp/tal-debug.c: In function '__gmp_tmp_debug_alloc':
gmp/tal-debug.c:98: error: invalid application of 'sizeof' to incomplete type 'struct tmp_debug_entry_t'
gmp/tal-debug.c:99: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:100: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:101: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:101: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:102: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:103: error: dereferencing pointer to incomplete type
gmp/tal-debug.c: At top level:
gmp/tal-debug.c:109: warning: 'struct tmp_debug_t' declared inside parameter list
gmp/tal-debug.c: In function '__gmp_tmp_debug_free':
gmp/tal-debug.c:130: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:133: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:134: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:134: error: dereferencing pointer to incomplete type
gmp/tal-debug.c:135: error: invalid application of 'sizeof' to incomplete type 'struct tmp_debug_entry_t'
make: *** [gmp/tal-debug.o] Error 1

Thanks in advance!

--
 
Kah-Song
==================
Kah-Song Cho    
SGI HPC Benchmarking
Tel: 714-368-5960            
Fax: 714-368-5961
==================




More information about the gmp-bugs mailing list