|
From: David F. <36q...@sn...> - 2004-06-10 23:11:49
|
Hi folks, I just tried to compile Valgrind, but had the following problem... Any thoughts? Compiled on a Pentium III w/384mb GCC 3.4.0 GLIBC 2.3.2 mc_main.c: At top level: mc_main.c:773: error: conflicting types for 'vgMemCheck_helperc_LOADV4' mc_include.h:130: error: previous declaration of 'vgMemCheck_helperc_LOADV4' was here mc_main.c:773: error: conflicting types for 'vgMemCheck_helperc_LOADV4' mc_include.h:130: error: previous declaration of 'vgMemCheck_helperc_LOADV4' was here mc_main.c:798: error: conflicting types for 'vgMemCheck_helperc_STOREV4' mc_include.h:124: error: previous declaration of 'vgMemCheck_helperc_STOREV4' was here mc_main.c:798: error: conflicting types for 'vgMemCheck_helperc_STOREV4' mc_include.h:124: error: previous declaration of 'vgMemCheck_helperc_STOREV4' was here mc_main.c:823: error: conflicting types for 'vgMemCheck_helperc_LOADV2' mc_include.h:129: error: previous declaration of 'vgMemCheck_helperc_LOADV2' was here mc_main.c:823: error: conflicting types for 'vgMemCheck_helperc_LOADV2' mc_include.h:129: error: previous declaration of 'vgMemCheck_helperc_LOADV2' was here mc_main.c:846: error: conflicting types for 'vgMemCheck_helperc_STOREV2' mc_include.h:125: error: previous declaration of 'vgMemCheck_helperc_STOREV2' was here mc_main.c:846: error: conflicting types for 'vgMemCheck_helperc_STOREV2' mc_include.h:125: error: previous declaration of 'vgMemCheck_helperc_STOREV2' was here mc_main.c:867: error: conflicting types for 'vgMemCheck_helperc_LOADV1' mc_include.h:128: error: previous declaration of 'vgMemCheck_helperc_LOADV1' was here mc_main.c:867: error: conflicting types for 'vgMemCheck_helperc_LOADV1' mc_include.h:128: error: previous declaration of 'vgMemCheck_helperc_LOADV1' was here mc_main.c:890: error: conflicting types for 'vgMemCheck_helperc_STOREV1' mc_include.h:126: error: previous declaration of 'vgMemCheck_helperc_STOREV1' was here mc_main.c:890: error: conflicting types for 'vgMemCheck_helperc_STOREV1' mc_include.h:126: error: previous declaration of 'vgMemCheck_helperc_STOREV1' was here mc_main.c: In function `mc_rd_V4_SLOWLY': mc_main.c:975: warning: passing arg 4 of `vgPlain_skin_assert_fail' discards qualifiers from pointer target type mc_main.c: At top level: mc_main.c:1118: error: conflicting types for 'vgMemCheck_fpu_read_check' mc_include.h:133: error: previous declaration of 'vgMemCheck_fpu_read_check' was here mc_main.c:1118: error: conflicting types for 'vgMemCheck_fpu_read_check' mc_include.h:133: error: previous declaration of 'vgMemCheck_fpu_read_check' was here mc_main.c:1210: error: conflicting types for 'vgMemCheck_fpu_write_check' mc_include.h:132: error: previous declaration of 'vgMemCheck_fpu_write_check' was here mc_main.c:1210: error: conflicting types for 'vgMemCheck_fpu_write_check' mc_include.h:132: error: previous declaration of 'vgMemCheck_fpu_write_check' was here mc_main.c: In function `mc_is_valid_64k_chunk': mc_main.c:1433: warning: passing arg 4 of `vgPlain_skin_assert_fail' discards qualifiers from pointer target type mc_main.c: In function `mc_is_valid_address': mc_main.c:1450: warning: passing arg 4 of `vgPlain_skin_assert_fail' discards qualifiers from pointer target type mc_main.c: In function `vgSkin_pre_clo_init': mc_main.c:1693: warning: passing arg 1 of `vgPlain_track_new_mem_stack_4' from incompatible pointer type mc_main.c:1694: warning: passing arg 1 of `vgPlain_track_new_mem_stack_8' from incompatible pointer type mc_main.c:1695: warning: passing arg 1 of `vgPlain_track_new_mem_stack_12' from incompatible pointer type mc_main.c:1696: warning: passing arg 1 of `vgPlain_track_new_mem_stack_16' from incompatible pointer type mc_main.c:1697: warning: passing arg 1 of `vgPlain_track_new_mem_stack_32' from incompatible pointer type mc_main.c:1700: warning: passing arg 1 of `vgPlain_track_die_mem_stack_4' from incompatible pointer type mc_main.c:1701: warning: passing arg 1 of `vgPlain_track_die_mem_stack_8' from incompatible pointer type mc_main.c:1702: warning: passing arg 1 of `vgPlain_track_die_mem_stack_12' from incompatible pointer type mc_main.c:1703: warning: passing arg 1 of `vgPlain_track_die_mem_stack_16' from incompatible pointer type mc_main.c:1704: warning: passing arg 1 of `vgPlain_track_die_mem_stack_32' from incompatible pointer type make[3]: *** [mc_main.o] Error 1 make[3]: Leaving directory `/root/valgrind-2.0.0/memcheck' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/valgrind-2.0.0/memcheck' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/valgrind-2.0.0' make: *** [all] Error 2 |
|
From: Nicholas N. <nj...@ca...> - 2004-06-14 11:35:57
|
On Thu, 10 Jun 2004, David Fix wrote: > Hi folks, > > I just tried to compile Valgrind, but had the following problem... Any > thoughts? > Compiled on a Pentium III w/384mb > GCC 3.4.0 > GLIBC 2.3.2 > > > mc_main.c: At top level: > mc_main.c:773: error: conflicting types for 'vgMemCheck_helperc_LOADV4' > mc_include.h:130: error: previous declaration of 'vgMemCheck_helperc_LOADV4' > was here > mc_main.c:773: error: conflicting types for 'vgMemCheck_helperc_LOADV4' > mc_include.h:130: error: previous declaration of 'vgMemCheck_helperc_LOADV4' > was here Never seen that before. mc_include.h:130 looks like this: extern __attribute__ ((regparm(1))) UInt MC_(helperc_LOADV4) ( Addr ); mc_main.c:773 looks like this: __attribute__ ((regparm(1))) UInt MC_(helperc_LOADV4) ( Addr a ) they seem to match pretty well. Maybe it's a GCC bug? If you remove the __attribute__ part in both files, does the compile error go away? (Nb: that might fix the compile error, but it will break Valgrind.) It's weird that GCC is reporting the error twice. N |