Hi Elena,

Maybe you could try to mount the image you are using to run the experiments in FS mode, chroot to it and compile these benchmarks there. You'll also have to mount /proc, /dev and /sys to your mounte image before chrooting.

Hope this helps,
Ferran O.

On 03/02/17 11:30, Woo L.L. wrote:
Hi Pierre-Yves,

I did tried compiling it with the -static flag for the first few benchmarks 
that I have run, but I got a segmentation fault. So, I tried compiling it 
without the -static flag, and it works.

But for this benchmark (QSort and Dijkstra) from MiBench, I tried to compile 
without the -static flag, and I got the error /lib/libc.so.6: version 
'GLIBC_2.7' not found. If I compile it with the -static flag, I got 
segmentation error.

So I am really stuck at this. Please help.
Thanks.

Regards,
Elena

-----Original Message-----
From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of Pierre-Yves 
Péneau
Sent: 03 February 2017 10:14
To: gem5-users@gem5.org
Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in 
FS Mode

Hi Elena,

You should try to compile with the -static flag.

On 02/03/2017 11:09 AM, Woo L.L. wrote:
Hi there,

I run a couple of benchmarks from MiBench Automotive package under FS Mode 
successfully.
I wanted to test other benchmarks from the same MiBench, so I compiled those C 
programs as usual using GCC (I have GCC 4.8.4 in my Ubuntu). No errors in 
compiling and even running it from the terminal.

However, when I try to run it with Gem5 un FS Mode, it gives me the problem 
/lib/libc.so.6: version 'GLIBC_2.7' not found. In my system, I had EGLIBC 2.19 
installed (I checked using ldd -version). I tried to search for some solutions, 
where most users suggest to recompile again with the newer GLIBC (which I did), 
but it didn't solve the problem. I am able to run it from the terminal, but not 
from Gem5.

Has anyone ever encounter this issue and is there a solution to it?
Appreciate all your help.
Thanks.

Thanks and Regards,

Elena Woo Lai Leng
Faculty of Electronic and Computer Science (ECS) University of
Southampton

Email: l.l....@soton.ac.uk<mailto:l.l....@soton.ac.uk>
Website: www.ecs.soton.ac.uk<http://www.ecs.soton.ac.uk>




_______________________________________________
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

Reply via email to