Hello, I want to test some benchmarks beside parsec. So I startet to set up the Splash Benchmark Suite for Full System Mode today.I followed the instructions, which are given here:
https://docs.google.com/document/d/1B7nZSqMLwkwoVNEj_58tMPTk4bKWvoEMbokOAjqeC-k/preview But I am hanging at the cross compiler section.When I compile the fft.c with normal x86 gcc on my host everything went fine. But with the cross-compiler (on my PC too) I get a strange behavior when trying to compile. I changed the Makefile, like it is proposed in the document. But maybe I am doing something wrong. Here are my crosscompiler Makefile Settings: CC := /home/chris/Downloads/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc CFLAGS := $(CFLAGS) -I/home/chris/Downloads/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root/usr/include CFLAGS := $(CFLAGS) -static -static-libgcc #CFLAGS := -g3 -pthread -D_POSIX_C_SOURCE=200112 #CFLAGS := $(CFLAGS) -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization #CFLAGS := $(CFLAGS) -Wpadded -Winline -Wpointer-arith -Wsign-compare -Wendif-labels LDFLAGS := $(LDFLAGS) -L/home/chris/Downloads/alphaev67-unknown-linux-gnu/lib/ BASEDIR := $(HOME)/Downloads/splash2/codes MACROS := $(BASEDIR)/null_macros/c.m4.null.POSIX M4 := m4 -s -Ulen -Uindex The output when comiling: chris@chris-VirtualBox:~/Downloads/splash2/codes/kernels/fft$ make m4 -s -Ulen -Uindex /home/chris/Downloads/splash2/codes/null_macros/c.m4.null fft.C > fft.c /home/chris/Downloads/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc -c -I/home/chris/Downloads/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root/usr/include -static -static-libgcc fft.c fft.C: In function 'main': fft.C:141: warning: incompatible implicit declaration of built-in function 'exit' fft.C:145: warning: incompatible implicit declaration of built-in function 'exit' fft.C:152: warning: incompatible implicit declaration of built-in function 'exit' fft.C:159: warning: incompatible implicit declaration of built-in function 'exit' fft.C:165: warning: incompatible implicit declaration of built-in function 'exit' fft.C:188: warning: incompatible implicit declaration of built-in function 'exit' fft.C:200: warning: incompatible implicit declaration of built-in function 'exit' fft.C:230: warning: incompatible implicit declaration of built-in function 'exit' fft.C:234: warning: incompatible implicit declaration of built-in function 'malloc' fft.C:244: warning: incompatible implicit declaration of built-in function 'exit' fft.C:247: warning: incompatible implicit declaration of built-in function 'exit' fft.C:250: warning: incompatible implicit declaration of built-in function 'exit' fft.C:253: warning: incompatible implicit declaration of built-in function 'exit' fft.C:256: warning: incompatible implicit declaration of built-in function 'exit' fft.C:322: warning: incompatible implicit declaration of built-in function 'exit' fft.C:415: warning: incompatible implicit declaration of built-in function 'exit' fft.C: In function 'SlaveStart': fft.C:442: warning: incompatible implicit declaration of built-in function 'malloc' fft.C:445: warning: incompatible implicit declaration of built-in function 'exit' /home/chris/Downloads/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc fft.o -I/home/chris/Downloads/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root/usr/include -static -static-libgcc -o FFT -L/home/chris/Downloads/alphaev67-unknown-linux-gnu/lib/ fft.o: In function `InitU': (.text+0x1590): undefined reference to `cos' fft.o: In function `InitU': (.text+0x15f8): undefined reference to `sin' fft.o: In function `InitU2': (.text+0x1724): undefined reference to `cos' fft.o: In function `InitU2': (.text+0x1798): undefined reference to `sin' collect2: ld returned 1 exit status make: *** [FFT] Error 1 Ive checked the paths twice and they are correct. I am working on a 64bit Ubuntu and trying to use a precompiled 64bit alpha cross compiler. I am missing something. I hope someone can help me with this. :) Best regards, Chris
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
