Re: [gem5-users] fail to run a c application in SE mode

2016-07-09 Thread anoir nechi
Thank you Oscar again
Thank you Abdul it's working !

Kind regards

On Sat, Jul 9, 2016 at 8:22 PM, Abdul Mutaal  wrote:

> arm-linux-gunueabi-gcc
>
>
> [image: --]
>
> Abdul Mutaal Ahmad
> [image: https://]about.me/mutaal
>
> 
>
>
> 2016-07-09 15:52 GMT+02:00 anoir nechi :
>
>> Do you mean ARM compiler 6 for example in this link
>>
>>
>> https://developer.arm.com/products/software-development-tools/compilers/arm-compiler-6
>>
>> On Fri, Jul 8, 2016 at 11:56 PM, Abdul Mutaal 
>> wrote:
>>
>>> You need an arm-gcc compiler for ARM ISA.
>>>
>>> Thanks
>>> Abdul Mutaal
>>> On Jul 8, 2016 8:28 PM, "anoir nechi"  wrote:
>>>
 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  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>* 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#SECTION0006
>
> 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 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
> 1 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 :* *anoirne...@gmail.com *
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
>
>
> 

Re: [gem5-users] fail to run a c application in SE mode

2016-07-09 Thread Abdul Mutaal
arm-linux-gunueabi-gcc


[image: --]

Abdul Mutaal Ahmad
[image: https://]about.me/mutaal



2016-07-09 15:52 GMT+02:00 anoir nechi :

> Do you mean ARM compiler 6 for example in this link
>
>
> https://developer.arm.com/products/software-development-tools/compilers/arm-compiler-6
>
> On Fri, Jul 8, 2016 at 11:56 PM, Abdul Mutaal 
> wrote:
>
>> You need an arm-gcc compiler for ARM ISA.
>>
>> Thanks
>> Abdul Mutaal
>> On Jul 8, 2016 8:28 PM, "anoir nechi"  wrote:
>>
>>> 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 
>>> 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>* 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#SECTION0006

 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 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
 1 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 :* *anoirne...@gmail.com *
 ___
 gem5-users mailing list
 gem5-users@gem5.org
 http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users




 ___
 gem5-users mailing list
 gem5-users@gem5.org
 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 

Re: [gem5-users] fail to run a c application in SE mode

2016-07-09 Thread anoir nechi
Do you mean ARM compiler 6 for example in this link

https://developer.arm.com/products/software-development-tools/compilers/arm-compiler-6

On Fri, Jul 8, 2016 at 11:56 PM, Abdul Mutaal 
wrote:

> You need an arm-gcc compiler for ARM ISA.
>
> Thanks
> Abdul Mutaal
> On Jul 8, 2016 8:28 PM, "anoir nechi"  wrote:
>
>> 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 
>> 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>* 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#SECTION0006
>>>
>>> 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 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
>>> 1 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 :* *anoirne...@gmail.com *
>>> ___
>>> gem5-users mailing list
>>> gem5-users@gem5.org
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>>
>>>
>>>
>>> ___
>>> gem5-users mailing list
>>> gem5-users@gem5.org
>>> 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 <%28%2B216%29%2050%20311%20536>*
>> *E-mail :* *anoirne...@gmail.com *
>>
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> 

Re: [gem5-users] fail to run a c application in SE mode

2016-07-08 Thread Abdul Mutaal
You need an arm-gcc compiler for ARM ISA.

Thanks
Abdul Mutaal
On Jul 8, 2016 8:28 PM, "anoir nechi"  wrote:

> 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 
> 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>* 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#SECTION0006
>>
>> 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 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
>> 1 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 :* *anoirne...@gmail.com *
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>>
>>
>>
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> 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 <%28%2B216%29%2050%20311%20536>*
> *E-mail :* *anoirne...@gmail.com *
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] fail to run a c application in SE mode

2016-07-08 Thread anoir nechi
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 
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 >* 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#SECTION0006
>
> 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 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
> 1 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 :* *anoirne...@gmail.com *
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
>
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> 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 :* *anoirne...@gmail.com *
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] fail to run a c application in SE mode

2016-07-08 Thread Oscar Rosell
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 nechianoirne...@gmail.com 
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#SECTION0006


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
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Jun  9 2016 12:22:14
gem5 started Jul  7 2016 18:53:41
gem5 executing on anoir-Lenovo-IdeaPad-Y510P
command line: build/ARM/gem5.opt configs/example/se.py -c '/home/anoir/FFT 
work/FFT_opt_v2/fast_fourier_transform'

Global frequency set at 1 ticks per second
warn: 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 KBytes
Program aborted at cycle 0
Aborted (core dumped)


could someone tell me what's wrong!!

Thank you
-- 
Anouar NECHIIT Engineer : Industrial systems
Higher Institute of Computer Science
Tunis - El Manar University
Phone : (+216) 50 311 536
E-mail : anoirne...@gmail.com


 



 ___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users




___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] fail to run a c application in SE mode

2016-07-07 Thread anoir nechi
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#SECTION0006

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 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
1 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*
*E-mail :* *anoirne...@gmail.com *
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users