Thanks for the tip. I was trying to rebuild the toolchain with crosstool-ng 
after changing the minimum kernel version, however this time I’m getting this 
error:

[CFG  ]    *** These critical programs are missing or too old: as ld gcc make
[CFG  ]    *** Check the INSTALL file for required versions.
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library headers & start files'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: 
do_libc_backend_once[scripts/build/libc/glibc.sh@348]
[ERROR]  >>        called from: do_libc_backend[scripts/build/libc/glibc.sh@153]
[ERROR]  >>        called from: 
do_libc_start_files[scripts/build/libc/glibc.sh@70]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      
'/usr/local/share/doc/crosstool-ng/crosstool-ng-1.20.0-361-g85f9814/B - Known 
issues.txt'
[ERROR]
[ERROR]  (elapsed: 29:01.89)

I can’t seem to figure out what is causing this, I was able to build it 
successfully before.
Any ideas?
--
Adel Ejjeh
PhD Student | Computer Science
University of Illinois at Urbana-Champaign
Siebel Center for Computer Science
201 N Goodwin Ave, Urbana, IL 61801

On Nov 18, 2015, at 1:26 PM, 
shinga...@labware.com<mailto:shinga...@labware.com> wrote:

Shortly after the beginning of _start(), the C library issues the uname() 
syscall to verify for the minimum kernel version.
If you look at gem5/src/arch/arm/linux/process.cc<http://process.cc>, you will 
see that in 32-bit mode the emulated syscall returns "3.0.0" and in 64, 
"3.7.0+".
When you configured the toolchain in crosstool-ng, there is an option 
"CT_LIBC_GLIBC_MIN_KERNEL_VERSION".
If that's greater than what the emulated uname() reports, glibc will fatal().


-----"gem5-users" 
<gem5-users-boun...@gem5.org<mailto:gem5-users-boun...@gem5.org>> wrote: -----
To: gem5 users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
From: "Ejjeh, Adel"
Sent by: "gem5-users"
Date: 11/18/2015 12:46PM
Subject: [gem5-users] FATAL: Kernel to old

Hi all. I am trying to generate some simulation statistics by running an 
application on an ARM core simulation in gem5. I used crosstool-ng to build the 
cross-gcc compiler and then I used that to compile the application I want to 
run as well as it’s needed library. After that, when i tried to run the gem5 
simulation in SE mode, I got the following error:

**** REAL SIMULATION ****
info: Entering event queue @ 0.  Starting simulation...
FATAL: kernel too old
warn: ignoring syscall rt_sigprocmask(1, ...)
      (further warnings will be suppressed)
panic: Page table fault when accessing virtual address 0xfffffba8
 @ tick 614500
[invoke:build/ARM/sim/faults.cc<https://urldefense.proofpoint.com/v2/url?u=http-3A__faults.cc&d=BQMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=UiBzNUCbXCIYa6DeqCY_EVAw4uNMVxuG2JAYm-bLhwU&m=836Dp4CFsKElPT2YYIjHgkGYZ1tTkRuqEnHZuDpGLs4&s=nufv_WwQhBsC5XaoJOxN4CJRSs6Hq8CvFGeBb3eJJ6w&e=>,
 line 69]
Memory Usage: 820136 KBytes
Program aborted at tick 614500
Aborted (core dumped)

This is the command I used to run gem5:

build/ARM/gem5.opt configs/example/se.py -c 
../glennko-ssgibbs-cmodel-6be3aada6e9e/streamss -o "0 10 10 936”

I am running on fedora lxde. I read somewhere that this has to do with the 
version of glibc (Specifically that the one I used in the compilation is newer 
than the one supported in gem5 or something like that.) Any ideas?

Regards
--
Adel Ejjeh
PhD Student | Computer Science
University of Illinois at Urbana-Champaign
Siebel Center for Computer Science
201 N Goodwin Ave, Urbana, IL 61801

_______________________________________________
gem5-users mailing list
gem5-users@gem5.org<mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users<https://urldefense.proofpoint.com/v2/url?u=http-3A__m5sim.org_cgi-2Dbin_mailman_listinfo_gem5-2Dusers&d=BQMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=UiBzNUCbXCIYa6DeqCY_EVAw4uNMVxuG2JAYm-bLhwU&m=836Dp4CFsKElPT2YYIjHgkGYZ1tTkRuqEnHZuDpGLs4&s=CV3wZVz99HE_G_NWaX_ZbvH-n_-JVXiTTWX_xFYSkos&e=>
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org<mailto: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

Reply via email to