Hi again Thank you Oscar you have been so helpful. i did the steps that you mentioned earlier and the application is linked statically.
Now when i run this command: build/ARM/gem5.opt configs/example/se.py -c /home/anoir/FFT\ work/FFT_opt_v1/fast_fourier_transform i get this this error message: fatal: Object file architecture does not match compiled ISA (ARM). i changed ARM with X86 like so: build/X86/gem5.opt configs/example/se.py -c /home/anoir/FFT\ work/FFT_opt_v1/fast_fourier_transform And it worked meaning that i have to compile my code with an ARM C compiler or something like that! Do you have any idea about this issue? Thank you. On Fri, Jul 8, 2016 at 3:03 PM, Oscar Rosell <[email protected]> wrote: > Hi, > > I'd think that the error is just what Gem5 says: > > > > > *fatal: Object file is a dynamic executable however only static > executables are supported! Please recompile your executable as a > static binary and try again.*You can check that the executable is static > by using file command: > > file /home/anoir/FFT\ work/FFT_opt_v2/fast_fourier_transform > > And it will tell you if your binary is "statically linked" or "dynamically > linked". If it's dynamically linked then you should link your program using > -static flag. The command line you provided for compilation > > gcc -c -static -Wall fast_fourier_transform.c -lm -o > fast_fourier_transform.o > > Is only for compilation phase. There should be a linking command that you > didn't provide and -static should be on that command line. This should > compile and statically link your program: > > gcc -static -Wall fast_fourier_transform.c -lm -o fast_fourier_transform > > Thanks, > > Oscar > > ---- On Thu, 07 Jul 2016 19:08:42 +0200 *anoir nechi<[email protected] > <[email protected]>>* wrote ---- > > HI > > I'm trying to run a c application of radix4 on gem5 simulator using SE > mode. This is the link to the code: > > http://gweep.net/~rocko/FFT/node6.html#SECTION00060000000000000000 > > i used this command to compile it : > gcc -c -static -Wall fast_fourier_transform.c -lm -o > fast_fourier_transform.o > > then i used this command to run it : > build/ARM/gem5.opt configs/example/se.py -c /home/anoir/FFT\ > work/FFT_opt_v2/fast_fourier_transform > > and i'm getting this error: > > > > > > > > > > > > > > > > > > *gem5 Simulator System. http://gem5.org <http://gem5.org>gem5 is > copyrighted software; use the --copyright option for details.gem5 compiled > Jun 9 2016 12:22:14gem5 started Jul 7 2016 18:53:41gem5 executing on > anoir-Lenovo-IdeaPad-Y510Pcommand line: build/ARM/gem5.opt > configs/example/se.py -c '/home/anoir/FFT > work/FFT_opt_v2/fast_fourier_transform'Global frequency set at > 1000000000000 ticks per secondwarn: DRAM device capacity (8192 Mbytes) does > not match the address range assigned (512 Mbytes)fatal: Object file is a > dynamic executable however only static executables are supported! > Please recompile your executable as a static binary and try again. @ tick > 0[create:build/ARM/sim/process.cc, line 644]Memory Usage: 637548 > KBytesProgram aborted at cycle 0Aborted (core dumped)* > > could someone tell me what's wrong!! > Thank you > -- > *Anouar NECHI* > > > *IT Engineer : Industrial systemsHigher Institute of Computer ScienceTunis > - El Manar University* > *Phone :* *(+216) 50 311 536 <%28%2B216%29%2050%20311%20536>* > *E-mail :* *[email protected] <[email protected]>* > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > -- *Anouar NECHI* *IT Engineer : Industrial systemsHigher Institute of Computer ScienceTunis - El Manar University* *Phone :* *(+216) 50 311 536* *E-mail :* *[email protected] <[email protected]>*
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
