<div>I am installing SPLASH(<a href="http://www-flash.stanford.edu/SPLASH/">http://www-flash.stanford.edu/SPLASH/</a>) benchmark codes on CentOS 4.6. And there is compile error during make..</div>
<div>Here is the error messages. Does it come from the gcc library?  Should I update the gcc or other library?</div>
<div> </div>
<div>[root@localhost barnes]# make BARNES<br>make: Warning: File `code.C' has modification time 6e+02 s in the future<br>m4 -s -Ulen -Uindex /mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null code.C > code.c<br>
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded -Winline -Wpointer-arith -Wsign-compare -Wendif-labels code.c<br>m4 -s -Ulen -Uindex /mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null code_io.C > code_io.c<br>
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded -Winline -Wpointer-arith -Wsign-compare -Wendif-labels code_io.c<br>m4 -s -Ulen -Uindex /mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null load.C > load.c<br>
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded -Winline -Wpointer-arith -Wsign-compare -Wendif-labels load.c<br>m4 -s -Ulen -Uindex /mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null grav.C > grav.c<br>
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded -Winline -Wpointer-arith -Wsign-compare -Wendif-labels grav.c<br>m4 -s -Ulen -Uindex /mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null getparam.C > getparam.c<br>
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded -Winline -Wpointer-arith -Wsign-compare -Wendif-labels getparam.c<br>m4 -s -Ulen -Uindex /mnt/hgfs/CentOS-4.6-i386_Shared/splash2/codes/null_macros/c.m4.null util.C > util.c<br>
gcc -c -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded -Winline -Wpointer-arith -Wsign-compare -Wendif-labels util.c<br>gcc code.o code_io.o load.o grav.o getparam.o util.o -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded -Winline -Wpointer-arith -Wsign-compare -Wendif-labels -o BARNES -lm<br>
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o(.text+0x18): In function `_start':<br>: undefined reference to `main'<br>collect2: ld returned 1 exit status<br>make: *** [BARNES] Error 1<br></div>
<div> </div>
<div>FYI, here is the gcc version info.</div>
<div>[root@localhost barnes]# gcc -v<br>Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs<br>Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux<br>
Thread model: posix<br>gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)<br> </div>