Difference between revisions of "User talk:Ghaddab"
(Adding files to disk image) |
(→Compile FFT benchmarks for ALPHA ISA and run it on M5: new section) |
||
Line 20: | Line 20: | ||
please tell me how can i fixe it to make it run? | please tell me how can i fixe it to make it run? | ||
thank you | thank you | ||
+ | |||
+ | == Compile FFT benchmarks for ALPHA ISA and run it on M5 == | ||
+ | |||
+ | Hi, | ||
+ | i have a problem to compile FFT benchmarks for ALPHA ISA. | ||
+ | i use the alphaev67-unknown-linux-gnu as a cross compiler | ||
+ | i modified the CC, CFLAGS and LDFLAGS (splash-2/codes/Makefile.conf) : | ||
+ | |||
+ | CC := /home/ghaddab/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc | ||
+ | CFLAGS := $(CFLAGS) -I/home/ghaddab/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root/usr/include | ||
+ | LDFLAGS := $(LDFLAGS) -L/home/ghaddab/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/lib/ | ||
+ | CFLAGS := $(CFLAGS) -static -static-libgcc | ||
+ | |||
+ | and when i type : | ||
+ | |||
+ | ghaddab@WorkStation-T3400:/home/ghaddab/splash2/codes/kernels/fft$ make | ||
+ | |||
+ | its return this error : | ||
+ | |||
+ | /home/ghaddab/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc fft.o /home/ghaddab/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root/usr/include -static -static-libgcc -o FFT /home/ghaddab/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/lib/ | ||
+ | /home/ghaddab/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/bin/ld: fft.o: Relocations in generic ELF (EM: 62) | ||
+ | /home/ghaddab/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/bin/ld: fft.o: Relocations in generic ELF (EM: 62) | ||
+ | /home/ghaddab/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/bin/ld: fft.o: Relocations in generic ELF (EM: 62) | ||
+ | /home/ghaddab/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/bin/ld: fft.o: Relocations in generic ELF (EM: 62) | ||
+ | fft.o: could not read symbols: File in wrong format | ||
+ | collect2: ld returned 1 exit status | ||
+ | make: *** [FFT] Error 1 | ||
+ | |||
+ | |||
+ | Could you help me? | ||
+ | Thanks. |
Revision as of 10:51, 12 March 2012
Hi ,
i try to run my cross-compiled program in FS mode, so i need to add the hello binary of the program into the disk image
mkdir /home/ghaddab/disk_image
sudo /bin/mount -o loop,offset=32256 /home/ghaddab/m5_system_2.0b3/disks/linux-latest.img /home/ghaddab/disk_image
sudo cp /home/ghaddab/hello /home/ghaddab/disk_image/benchmarks/
sudo umount /home/ghaddab/disk_image
but when i use m5term in FS mode to run the hello binary
/benchmarks/hello
i get this error bash: /benchmarks/hello: No such file or directory
please tell me how can i fixe it to make it run? thank you
Compile FFT benchmarks for ALPHA ISA and run it on M5
Hi, i have a problem to compile FFT benchmarks for ALPHA ISA. i use the alphaev67-unknown-linux-gnu as a cross compiler i modified the CC, CFLAGS and LDFLAGS (splash-2/codes/Makefile.conf) :
CC := /home/ghaddab/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc CFLAGS := $(CFLAGS) -I/home/ghaddab/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root/usr/include LDFLAGS := $(LDFLAGS) -L/home/ghaddab/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/lib/ CFLAGS := $(CFLAGS) -static -static-libgcc
and when i type :
ghaddab@WorkStation-T3400:/home/ghaddab/splash2/codes/kernels/fft$ make
its return this error :
/home/ghaddab/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc fft.o /home/ghaddab/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root/usr/include -static -static-libgcc -o FFT /home/ghaddab/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/lib/ /home/ghaddab/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/bin/ld: fft.o: Relocations in generic ELF (EM: 62) /home/ghaddab/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/bin/ld: fft.o: Relocations in generic ELF (EM: 62) /home/ghaddab/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/bin/ld: fft.o: Relocations in generic ELF (EM: 62) /home/ghaddab/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/bin/ld: fft.o: Relocations in generic ELF (EM: 62) fft.o: could not read symbols: File in wrong format collect2: ld returned 1 exit status make: *** [FFT] Error 1
Could you help me?
Thanks.