Hi Ferran,
I have never done chroot before, so this was my first attempt. What I did was:
a) Install schroot and debootstrap
b) Creating a chroot at my mounted image
c) Edit the schroot.conf
d) Created basic installation of Ubuntu 14.04 in the chroot
But I encountered errors while trying to create a basic installation of Ubuntu
- all on GLIBC
- Failure trying to run: chroot
/home/llw1n14RTS/gemfi/x86/disks/mountpoint mount -t proc proc /proc
- mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found
(required by mount)
- mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found
(required by /lib/i386-linux-gnu/libblkid.so.1)
- mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found
(required by /lib/i386-linux-gnu/libselinux.so.1)
- mount: /lib32/libc.so.6: version 'GLIBC_2.8' not found
(required by /lib/i386-linux-gnu/libblkid.so.1)
- mount: /lib32/libc.so.6: version 'GLIBC_2.8' not found
(required by /lib/i386-linux-gnu/libmount.so.1)
- mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found
(required by /lib/i386-linux-gnu/libmount.so.1)
I can't create a basic installation of Ubuntu in my mounted image, and I can
chroot to my mounted image. All due to the issue of libc.so.6
A check in the folder /lib32, /lib64 and /lib, I found that libc.so.6 is a link
to libc-2.19.so.
I don't understand what happen. If it is link to libc-2.19.so (which is the
EGLIBC 2.19 I presume), then logically it shouldn’t have any error on GLIBC.
Really needed help here.
Thanks.
Elena
-----Original Message-----
From: gem5-users [mailto:[email protected]] On Behalf Of Ferran Olid
Sent: 03 February 2017 10:38
To: [email protected]
Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in
FS Mode
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:[email protected]] On Behalf Of
> Pierre-Yves Péneau
> Sent: 03 February 2017 10:14
> To: [email protected]
> 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: [email protected]<mailto:[email protected]>
>> Website: www.ecs.soton.ac.uk<http://www.ecs.soton.ac.uk>
>>
>>
>>
>>
>> _______________________________________________
>> 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
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users