Hi, I believe you would want to use the libgcpp.so type of libraryy instead of glibc.so for compiling c++ benchmarks. However, I don't see that on the linux-latest.img that I have been using (not sure which one you are using).
If your disk image does not have the glibcpp.so library, and you cannot find out that someone else has made/distributed, you would have to compile your own disk image with the linux kernel and the associated libraries for it. I don't think it would be quite as simple (although you can try) as copying the glibcpp.so library from your host machine into the disk image, unless the linux kernel versions matched or there are no issues using a newer version of glibcpp (assuming you are using a newer kernel version on the host machine, compared to a slightly older one on linux-latest.img). Hope that helps. Malek On Wed, Aug 25, 2010 at 6:06 AM, Shoaib Altaf <[email protected]> wrote: > Hi Malek, > > Thanks for the help. It worked. > > But now I have one more concern, compiling the same code (but the C++ > version) brought same issues ...Can you point out what libraries do I have > to include in case of compiling with g++?? > > Thanks > > > Shoaib > > > =============================================================== > > Hi Shoaib, > > You have to compile using a few of the libraries on the mounted disk > image in addition to the cross compiler. > > 1) libc.so.6.1 > 2) ld-linux.so.2 > > If multithreaded Program: > 3) libpthread.so.0 > > This is an example: (where mountpt is the location I have mounted the > prebuilt disk image) > > /home/malek/x-tools_modified_4/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc > ./source_file.c ../mountpt/lib/libpthread.so.0 > ../mountpt/lib/libc.so.6.1 ../mountpt/lib/ld-linux.so.2 > > I used the linux-latest.img, and these are the ones found on there, > the versions of the libraries might differ between disk images. > > Malek > > On Sat, Aug 21, 2010 at 12:46 AM, Muhammad Shoaib <[email protected]> > wrote: >> >> >> I am trying to add my own benchmarks for running the FS simulation for >> ALPHA. >> >> For this I used the crosstool-ng on the wiki page to get the cross >> compiler >> for ALPHA..and after building the tool I used the following command to >> compile my C file (which is nothing but a printf of Hello) >> >> 'alphaev4-unknown-linux-gnu-gcc' >> >> After including the binary in the image, (after unmounting) and running >> the >> FS simulation gives me this error (I have made the changes in the >> Becnhmark.py and added the .rcS file) >> >> ./hello: lib/lib.so.6.1: version 'GLIB_2.4' not found (required by >> ./hello) >> >> >> Any idea, where I am going wrong!! >> >> Shoaib >> _______________________________________________ >> m5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users >> > _______________________________________________ > m5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > > _______________________________________________ > m5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > _______________________________________________ m5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
