Hello everyone,
Im trying to test SPLASH-2 according to the instructions in the document found in the link below. https://docs.google.com/document/d/1B7nZSqMLwkwoVNEj_58tMPTk4bKWvoEMbokOAjqeC-k/preview?pli=1 when I try to do a make inside the /splash2/codes/kernels/ftt directory I get the following error, faris@faris-ThinkPad-X61:~/splash2/codes/kernels/fft$ make m4 -s -Ulen -Uindex home/faris/splash2/codes/null_macros/c.m4.null.POSIX fft.C > fft.c m4: cannot open `home/faris/splash2/codes/null_macros/c.m4.null.POSIX': No such file or directory make: *** [fft.o] Error 1 then I tried to do a sudo make resulting in the following, faris@faris-ThinkPad-X61:~/splash2/codes/kernels/fft$ sudo make [sudo] password for faris: 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 fft.c fft.C:59:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘struct’ fft.C: In function ‘main’: fft.C:134:3: warning: implicit declaration of function ‘CLOCK’ [-Wimplicit-function-declaration] fft.C:136:3: warning: implicit declaration of function ‘getopt’ [-Wimplicit-function-declaration] fft.C:138:7: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] fft.C:141:19: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] fft.C:141:19: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:145:19: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:152:19: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:159:19: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:165:19: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:188:3: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:193:3: warning: implicit declaration of function ‘MAIN_INITENV’ [-Wimplicit-function-declaration] fft.C:193:16: error: expected expression before ‘,’ token fft.C:200:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:204:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] fft.C:211:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] fft.C:219:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] fft.C:230:7: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:234:20: warning: implicit declaration of function ‘G_MALLOC’ [-Wimplicit-function-declaration] fft.C:234:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fft.C:235:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fft.C:236:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fft.C:237:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fft.C:238:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fft.C:240:9: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:240:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fft.C:241:9: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:241:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] fft.C:244:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:247:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:250:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:253:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:256:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:304:3: warning: implicit declaration of function ‘BARINIT’ [-Wimplicit-function-declaration] fft.C:304:17: error: ‘struct GlobalMemory’ has no member named ‘start’ fft.C:305:3: warning: implicit declaration of function ‘LOCKINIT’ [-Wimplicit-function-declaration] fft.C:305:18: error: ‘struct GlobalMemory’ has no member named ‘idlock’ fft.C:306:9: error: ‘struct GlobalMemory’ has no member named ‘id’ fft.C:322:3: warning: implicit declaration of function ‘CREATE’ [-Wimplicit-function-declaration] fft.C:323:3: warning: implicit declaration of function ‘WAIT_FOR_END’ [-Wimplicit-function-declaration] fft.C:334:21: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:340:16: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:340:38: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:341:25: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:341:48: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:343:24: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:344:26: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:345:25: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:346:22: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:347:22: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:348:30: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:348:53: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:349:30: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:349:53: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:350:34: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:350:57: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:352:17: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:353:27: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:355:17: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:356:28: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:358:17: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:359:26: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:361:17: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:362:26: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:364:26: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:364:49: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:365:34: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:365:57: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:367:26: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:367:49: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:368:34: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:368:57: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:371:22: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:371:44: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:372:29: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:372:52: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:373:29: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:374:28: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:375:37: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:375:60: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:384:9: error: ‘struct GlobalMemory’ has no member named ‘starttime’ fft.C:388:10: error: ‘struct GlobalMemory’ has no member named ‘starttime’ fft.C:390:10: error: ‘struct GlobalMemory’ has no member named ‘initdonetime’ fft.C:392:10: error: ‘struct GlobalMemory’ has no member named ‘finishtime’ fft.C:394:10: error: ‘struct GlobalMemory’ has no member named ‘finishtime’ fft.C:394:29: error: ‘struct GlobalMemory’ has no member named ‘starttime’ fft.C:396:10: error: ‘struct GlobalMemory’ has no member named ‘finishtime’ fft.C:396:29: error: ‘struct GlobalMemory’ has no member named ‘initdonetime’ fft.C:400:38: error: ‘struct GlobalMemory’ has no member named ‘finishtime’ fft.C:400:57: error: ‘struct GlobalMemory’ has no member named ‘initdonetime’ fft.C:415:3: error: ‘MAIN_END’ undeclared (first use in this function) fft.C:415:3: note: each undeclared identifier is reported only once for each function it appears in fft.C: In function ‘SlaveStart’: fft.C:430:3: warning: implicit declaration of function ‘LOCK’ [-Wimplicit-function-declaration] fft.C:430:14: error: ‘struct GlobalMemory’ has no member named ‘idlock’ fft.C:431:19: error: ‘struct GlobalMemory’ has no member named ‘id’ fft.C:432:11: error: ‘struct GlobalMemory’ has no member named ‘id’ fft.C:433:3: warning: implicit declaration of function ‘UNLOCK’ [-Wimplicit-function-declaration] fft.C:433:16: error: ‘struct GlobalMemory’ has no member named ‘idlock’ fft.C:435:3: warning: implicit declaration of function ‘BARINCLUDE’ [-Wimplicit-function-declaration] fft.C:435:20: error: ‘struct GlobalMemory’ has no member named ‘start’ fft.C:440:3: warning: implicit declaration of function ‘BARRIER’ [-Wimplicit-function-declaration] fft.C:440:17: error: ‘struct GlobalMemory’ has no member named ‘start’ fft.C:442:3: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] fft.C:442:22: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default] fft.C:445:5: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default] fft.C:456:17: error: ‘struct GlobalMemory’ has no member named ‘start’ fft.C:477:11: error: ‘struct GlobalMemory’ has no member named ‘transtimes’ fft.C:478:11: error: ‘struct GlobalMemory’ has no member named ‘totaltimes’ fft.C:481:11: error: ‘struct GlobalMemory’ has no member named ‘finishtime’ fft.C:482:11: error: ‘struct GlobalMemory’ has no member named ‘initdonetime’ fft.C: In function ‘FFT1D’: fft.C:603:17: error: ‘struct GlobalMemory’ has no member named ‘start’ fft.C:623:17: error: ‘struct GlobalMemory’ has no member named ‘start’ fft.C:643:17: error: ‘struct GlobalMemory’ has no member named ‘start’ fft.C:657:17: error: ‘struct GlobalMemory’ has no member named ‘start’ fft.C:666:17: error: ‘struct GlobalMemory’ has no member named ‘start’ fft.C: In function ‘main’: fft.C:416:1: warning: control reaches end of non-void function [-Wreturn-type] make: *** [fft.o] Error 1 I made the following changes in the makefile.config file . . BASEDIR := /home/faris/splash2/codes MACROS := /home/faris/splash2/codes/null_macros/c.m4.null.POSIX M4 := m4 -s -Ulen -Uindex where it originally was, . . . BASEDIR := $(HOME)/splash2/codes MACROS := $(BADEDIR)/null_macros/c.m4.null M4 := m4 -s -Ulen -Uindex Would anyone know why that error is showing up? Many Thanks, Faris
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
