|
From: Sisyphus <kal...@ii...> - 2004-11-29 02:59:50
|
Hi,
Firstly, I'm not on the list, so please cc me.
Having trouble building valgrind - './configure' looks ok but terminates
with:
Using the following suppressions by default:
glibc-2.3.supp xfree-4.supp xfree-3.supp
I don't know what that means, or if it's a problem - I mention it merely
in case it's relevant.
Running make terminates with:
gcc -Winline -Wall -Wshadow -O -fno-omit-frame-pointer
-mpreferred-stack-boundary=2 -g -DELFSZ=32 -o valgrind -static -g
-Wl,-e,_ume_entry stage1.o ume.o ume_entry.o ume_go.o
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[4]: *** [valgrind] Error 1
make[4]: Leaving directory `/home/rob/downloads/valgrind-2.2.0/coregrind'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/rob/downloads/valgrind-2.2.0/coregrind'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/rob/downloads/valgrind-2.2.0/coregrind'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rob/downloads/valgrind-2.2.0'
make: *** [all] Error 2
Why is it looking for 'libc.a' (which I can't find) ?
Do I need to locate and install a 'libc.a' in order to build valgrind ?
I note the occurrence of '-static' in the gcc command (above) - though I
can't find any occurrence of 'static' in the Makefile. Does the
'-static' need to be there ?
Anyone got advice on how to proceed from here ?
Cheers,
Rob
|
|
From: Paul P. <ppl...@gm...> - 2004-11-29 03:40:32
|
On Mon, 29 Nov 2004 01:53:49 +0000, Sisyphus <kal...@ii...> wrote: > gcc -Winline -Wall -Wshadow -O -fno-omit-frame-pointer > -mpreferred-stack-boundary=2 -g -DELFSZ=32 -o valgrind -static -g > -Wl,-e,_ume_entry stage1.o ume.o ume_entry.o ume_go.o > /usr/bin/ld: cannot find -lc > collect2: ld returned 1 exit status > Why is it looking for 'libc.a' (which I can't find) ? Because it *must* be statically linked. VG is not a "normal" program, it has special requirements. > Do I need to locate and install a 'libc.a' in order to build valgrind ? Yes. Cheers, |
|
From: Sisyphus <kal...@ii...> - 2004-11-29 04:33:00
|
Paul Pluzhnikov wrote: > On Mon, 29 Nov 2004 01:53:49 +0000, Sisyphus <kal...@ii...> wrote: > >>Why is it looking for 'libc.a' (which I can't find) ? > > > Because it *must* be statically linked. VG is not a "normal" program, > it has special requirements. > > >>Do I need to locate and install a 'libc.a' in order to build valgrind ? > > > Yes. > As I feared. Thanks for the confirmation. I expected that the OS installation disks would contain some 'glibc-devel' package that would install a '/usr/lib/libc.a'. But if there is such a package, then rpmdrake can't find it. Not sure where I go from here - probably back to Mr.Google for a few more hours, and I'm also trying alt.os.linux.mandrake. It would probably help if I understood linux a little better ... but that's not an issue for this group to concern itself with. Cheers, Rob |
|
From: MJH <mjh...@li...> - 2004-11-29 05:08:33
|
On Sunday 28 November 2004 10:27 pm, Sisyphus wrote: > >>Do I need to locate and install a 'libc.a' in order to build valgrind ? > I expected that the OS installation disks would contain some > 'glibc-devel' package that would install a '/usr/lib/libc.a'. But if > there is such a package, then rpmdrake can't find it. Actually it's in glibc-static-devel, not glibc-devel. You should have both of them on your install discs though. If you set up your repositories (cf. http://easyurpmi.zarb.org/) then urpmi or rpmdrake should grab whatever you don't have on CDs from the net. "urpmi glibc-static-devel" in a root shell should be all you need to get going. (For that matter, unless you need the latest version from CVS, "urpmi valgrind" should suffice). It's probably also worth upgrading to 10.1. -- "If you treat your information in a cavalier manner, you might just as well stick it into Word, where it will eventually just quietly go and die in a corner by itself." Peter Flynn (on the subject of XML) http://www.softwarereality.com/soapbox/softwarefashion.jsp |