Hi,

I think my problem is very simple. I tried to compile a new binary other
than hello program (hello is already compiled and come with gem5). I used
this link and followed the steps

http://lacasa.uah.edu/portal/Upload/tutorials/gem5/RunningPrograms-gem5.txt

ARM Cross compilation
-----------------------------------

arm-linux-gnueabi-gcc -static -O3 -o hello_test hello_test.c


hello_test.c has actually the same code as what comes within the test
directory of gem5.

Now i'm running the following commands

*build/ARM/gem5.opt configs/example/se.py -c
tests/test-progs/hello/bin/arm/linux/hello_test *

still I am getting the same error which I posted in the previous email.

Did I miss something or the bug is inherent to gem5?

Thanks

2015-09-11 16:03 GMT+02:00 Joel Hestness <[email protected]>:

> Hi Abdul,
>   I believe this bug results from the recent gem5 changes to readlink and
> library changes in GLIBC. Your benchmark (GLIBC) is probably trying to use
> readlink to find the running binary's location, but gem5 changeset 10955
> <http://repo.gem5.org/gem5/rev/9abf6a7c14ab> makes the simulator return
> the benchmark path specified in the gem5 command line (which may not be a
> full path). You can try specifying the full path to your benchmark binary
> in your gem5 command line. Please let us know if that works, or send us
> your complete command line.
>
>   We're discussing this change in this email thread, but have not yet come
> up with a better solution:
> https://www.mail-archive.com/[email protected]/msg16660.html. Note that
> if you change the path to your running benchmark, your simulation is likely
> to change due to the host filesystem structure bleeding into the simulation
> through this change.
>
>   Joel
>
>
>
> On Fri, Sep 11, 2015 at 4:23 AM, Abdul Mutaal <[email protected]>
> wrote:
>
>> Hi,
>>
>> Did anyone solve this issue? I am also facing this error. Whenever I run
>> a different binary in SE mode, it gives me a same error
>>
>> 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
>> **** REAL SIMULATION ****
>> info: Entering event queue @ 0.  Starting simulation...
>> warn: readlink may yield unexpected results if multiple binaries are used
>> info: Increasing stack size by one page.
>> info: Increasing stack size by one page.
>> info: Increasing stack size by one page.
>> ../sysdeps/unix/sysv/linux/dl-origin.c:47: _dl_get_origin: Assertion
>> `linkval[0] == '/'' failed.
>> warn: ignoring syscall rt_sigprocmask(1, ...)
>>       (further warnings will be suppressed)
>> fatal: syscall gettid (#224) unimplemented.
>>  @ tick 4334500
>> [unimplementedFunc:build/ARM/sim/syscall_emul.cc, line 91]
>> Memory Usage: 780540 KBytes
>> Program aborted at cycle 4334500
>> Aborted
>>
>> Thanks
>>
>>
>> 2015-07-20 2:45 GMT+02:00 Fanfan Shen <[email protected]>:
>>
>>> Hi penghuicheng,
>>>
>>> I think it is someting wrong with your configuration. You can look at
>>> this blog (http://blog.csdn.net/fandroid/article/details/45701463), and
>>> then compare the steps you have done. Hope this help you!
>>>
>>> Best regards,
>>> Fanfan Shen
>>>
>>>
>>> ------------------ 原始邮件 ------------------
>>> *发件人:* "gem5-users-request";<[email protected]>;
>>> *发送时间:* 2015年7月20日(星期一) 凌晨0:00
>>> *收件人:* "gem5-users"<[email protected]>;
>>> *主题:* gem5-users Digest, Vol 108, Issue 17
>>>
>>> Send gem5-users mailing list submissions to
>>> [email protected]
>>>
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>> or, via email, send a message with subject or body 'help' to
>>> [email protected]
>>>
>>> You can reach the person managing the list at
>>> [email protected]
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of gem5-users digest..."
>>>
>>>
>>> Today's Topics:
>>>
>>>    1. some problems on gem5 (spec2006) (彭会成)
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Sun, 19 Jul 2015 20:19:30 +0800 (GMT+08:00)
>>> From: 彭会成 <[email protected]>
>>> To: [email protected]
>>> Subject: [gem5-users] some problems on gem5 (spec2006)
>>> Message-ID:
>>> <acaajqdcaeupg9sxpodlokp9.1.1437308370077.hmail.2014216...@tju.edu.cn>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>> To Whom It May Concern:
>>> I am a master student of Tianjin University,China.Recently,I do some
>>> research on computer perdormance.So,I need to run spec2006 on
>>> gem5.However,I met some problems.I think it may something wrong with the
>>> gem5. when I run one benchmark of spec2006  on gem5-stable,it shows the
>>> following information:
>>> phc@ubuntu:~/gem5/gem5-stable$ ./run.sh
>>> gem5 Simulator System.  http://gem5.org
>>> gem5 is copyrighted software; use the --copyright option for details.
>>> gem5 compiled Jul 19 2015 03:18:51
>>> gem5 started Jul 19 2015 04:48:18
>>> gem5 executing on ubuntu
>>> command line: build/X86/gem5.opt configs/example/se.py -c
>>> /home/phc/installspec2006/benchspec/CPU2006/401.bzip2/exe/bzip2_base.gcc41-64bit
>>> -o
>>> /home/phc/installspec2006/benchspec/CPU2006/401.bzip2/data/ref/input/control
>>> Global frequency set at 1000000000000 ticks per second
>>> warn: DRAM device capacity (8192 Mbytes) does not match the address
>>> range assigned (512 Mbytes)
>>> 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
>>> **** REAL SIMULATION ****
>>> info: Entering event queue @ 0.  Starting simulation...
>>> info: Increasing stack size by one page.
>>> fatal: syscall readlink (#85) unimplemented.
>>>  @ tick 1181000
>>> [unimplementedFunc:build/X86/sim/syscall_emul.cc, line 91]
>>> Memory Usage: 585544 KBytes
>>> Program aborted at cycle 1181000
>>> ./run.sh: line 3:  5175 Aborted                 (core dumped)
>>> build/X86/gem5.opt configs/example/se.py -c
>>> /home/phc/installspec2006/benchspec/CPU2006/401.bzip2/exe/bzip2_base.gcc41-64bit
>>> -o
>>> /home/phc/installspec2006/benchspec/CPU2006/401.bzip2/data/ref/input/control
>>> phc@ubuntu:~/gem5/gem5-stable$
>>>
>>> There is a fatal info that I think it may have some error in the source
>>> code.Due to it my first time to do experiment on the platform,it maybe my
>>> fault which  I do not configure the enviroment correctly.
>>> I hope that someone can give me an answer whether it's the error of the
>>> source code or my fault.
>>>
>>> penghuicheng
>>> Tianjin University VLSI Lab
>>>
>>>
>>>
>>>
>>> -------------- next part --------------
>>> An HTML attachment was scrubbed...
>>> URL: <
>>> http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20150719/faa8f896/attachment-0001.html
>>> >
>>>
>>> ------------------------------
>>>
>>> Subject: Digest Footer
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>> ------------------------------
>>>
>>> End of gem5-users Digest, Vol 108, Issue 17
>>> *******************************************
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>>
>>
>> --
>>
>> Regards,
>> Abdul Mutaal
>>
>>
>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
>
> --
>   Joel Hestness
>   PhD Candidate, Computer Architecture
>   Dept. of Computer Science, University of Wisconsin - Madison
>   http://pages.cs.wisc.edu/~hestness/
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>



-- 

Regards,
Abdul Mutaal
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to