|
From: Shinichi N. <no...@ta...> - 2005-12-25 04:01:58
|
From: Alasdair Ferro <alasdair@sp...>
Build Fail on Redhat 7.2
2005-12-22 05:15
> I'm trying to build Valgrind 3.1.0 on RedHat 7.2, and it fails in the
> "make install" stage - the compile runs fine. I've successfully built
> and installed on Redhat 9, and that binary runs fine on anything newer.
>
> I did:
> ./configure --prefix=/space/tools/
> make
> make install
# Since I subscribed this mailing list today, I couldn't
# continue the original thread, sorry.
The bourne shell (bash) script "for f in ; do ..." in Makefile
might not work on RHL 7.2. Non-void list is required after "in".
This "for" section seems useful only in coregrind/Makefile. So I
have removed it from other directories' one. I used a patch as
below, and then "make install" works.
(Note: this patch sould be applied before ./configure.)
---->8-------->8-------->8-------->8-------->8-------->8-------->8----
diff -rc valgrind-3.1.0-orig/addrcheck/Makefile.in valgrind-3.1.0/addrcheck/Makefile.in
*** valgrind-3.1.0-orig/addrcheck/Makefile.in Sat Nov 26 22:39:53 2005
--- valgrind-3.1.0/addrcheck/Makefile.in Tue Dec 20 21:11:22 2005
***************
*** 670,683 ****
n=`echo $$f | sed -e 's/-[^-]\{1,\}-[^-.]\{1,\}//'`; \
$(mkinstalldirs) $(DESTDIR)$(valdir)/$$p; \
$(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir)/$$p/$$n; \
- done ; \
- for f in $(noinst_LIBRARIES); do \
- if expr match $$f libcoregrind_ > /dev/null ; then \
- pU=`echo $$f | sed -e 's/libcoregrind_//g' -e 's/\.a//g'` ; \
- pD=`echo $$pU | sed -e 's/_/-/g'` ; \
- $(INSTALL_DATA) $$f $(DESTDIR)$(valdir)/$$pD/libcoregrind.a ; \
- $(INSTALL_DATA) @VEX_DIR@/libvex_$$pU.a $(DESTDIR)$(valdir)/$$pD/libvex.a ; \
- fi ; \
done
all-local:
for f in $(noinst_PROGRAMS); do \
--- 670,675 ----
diff -rc valgrind-3.1.0-orig/cachegrind/Makefile.in valgrind-3.1.0/cachegrind/Makefile.in
*** valgrind-3.1.0-orig/cachegrind/Makefile.in Sat Nov 26 22:39:56 2005
--- valgrind-3.1.0/cachegrind/Makefile.in Tue Dec 20 21:11:22 2005
***************
*** 824,837 ****
n=`echo $$f | sed -e 's/-[^-]\{1,\}-[^-.]\{1,\}//'`; \
$(mkinstalldirs) $(DESTDIR)$(valdir)/$$p; \
$(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir)/$$p/$$n; \
- done ; \
- for f in $(noinst_LIBRARIES); do \
- if expr match $$f libcoregrind_ > /dev/null ; then \
- pU=`echo $$f | sed -e 's/libcoregrind_//g' -e 's/\.a//g'` ; \
- pD=`echo $$pU | sed -e 's/_/-/g'` ; \
- $(INSTALL_DATA) $$f $(DESTDIR)$(valdir)/$$pD/libcoregrind.a ; \
- $(INSTALL_DATA) @VEX_DIR@/libvex_$$pU.a $(DESTDIR)$(valdir)/$$pD/libvex.a ; \
- fi ; \
done
all-local:
for f in $(noinst_PROGRAMS); do \
--- 824,829 ----
diff -rc valgrind-3.1.0-orig/helgrind/Makefile.in valgrind-3.1.0/helgrind/Makefile.in
*** valgrind-3.1.0-orig/helgrind/Makefile.in Sat Nov 26 22:40:04 2005
--- valgrind-3.1.0/helgrind/Makefile.in Tue Dec 20 21:11:22 2005
***************
*** 825,838 ****
n=`echo $$f | sed -e 's/-[^-]\{1,\}-[^-.]\{1,\}//'`; \
$(mkinstalldirs) $(DESTDIR)$(valdir)/$$p; \
$(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir)/$$p/$$n; \
- done ; \
- for f in $(noinst_LIBRARIES); do \
- if expr match $$f libcoregrind_ > /dev/null ; then \
- pU=`echo $$f | sed -e 's/libcoregrind_//g' -e 's/\.a//g'` ; \
- pD=`echo $$pU | sed -e 's/_/-/g'` ; \
- $(INSTALL_DATA) $$f $(DESTDIR)$(valdir)/$$pD/libcoregrind.a ; \
- $(INSTALL_DATA) @VEX_DIR@/libvex_$$pU.a $(DESTDIR)$(valdir)/$$pD/libvex.a ; \
- fi ; \
done
all-local:
for f in $(noinst_PROGRAMS); do \
--- 825,830 ----
diff -rc valgrind-3.1.0-orig/lackey/Makefile.in valgrind-3.1.0/lackey/Makefile.in
*** valgrind-3.1.0-orig/lackey/Makefile.in Sat Nov 26 22:40:05 2005
--- valgrind-3.1.0/lackey/Makefile.in Tue Dec 20 21:11:23 2005
***************
*** 737,750 ****
n=`echo $$f | sed -e 's/-[^-]\{1,\}-[^-.]\{1,\}//'`; \
$(mkinstalldirs) $(DESTDIR)$(valdir)/$$p; \
$(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir)/$$p/$$n; \
- done ; \
- for f in $(noinst_LIBRARIES); do \
- if expr match $$f libcoregrind_ > /dev/null ; then \
- pU=`echo $$f | sed -e 's/libcoregrind_//g' -e 's/\.a//g'` ; \
- pD=`echo $$pU | sed -e 's/_/-/g'` ; \
- $(INSTALL_DATA) $$f $(DESTDIR)$(valdir)/$$pD/libcoregrind.a ; \
- $(INSTALL_DATA) @VEX_DIR@/libvex_$$pU.a $(DESTDIR)$(valdir)/$$pD/libvex.a ; \
- fi ; \
done
all-local:
for f in $(noinst_PROGRAMS); do \
--- 737,742 ----
diff -rc valgrind-3.1.0-orig/massif/Makefile.in valgrind-3.1.0/massif/Makefile.in
*** valgrind-3.1.0-orig/massif/Makefile.in Sat Nov 26 22:40:07 2005
--- valgrind-3.1.0/massif/Makefile.in Tue Dec 20 21:11:23 2005
***************
*** 791,804 ****
n=`echo $$f | sed -e 's/-[^-]\{1,\}-[^-.]\{1,\}//'`; \
$(mkinstalldirs) $(DESTDIR)$(valdir)/$$p; \
$(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir)/$$p/$$n; \
- done ; \
- for f in $(noinst_LIBRARIES); do \
- if expr match $$f libcoregrind_ > /dev/null ; then \
- pU=`echo $$f | sed -e 's/libcoregrind_//g' -e 's/\.a//g'` ; \
- pD=`echo $$pU | sed -e 's/_/-/g'` ; \
- $(INSTALL_DATA) $$f $(DESTDIR)$(valdir)/$$pD/libcoregrind.a ; \
- $(INSTALL_DATA) @VEX_DIR@/libvex_$$pU.a $(DESTDIR)$(valdir)/$$pD/libvex.a ; \
- fi ; \
done
all-local:
for f in $(noinst_PROGRAMS); do \
--- 791,796 ----
diff -rc valgrind-3.1.0-orig/memcheck/Makefile.in valgrind-3.1.0/memcheck/Makefile.in
*** valgrind-3.1.0-orig/memcheck/Makefile.in Sat Nov 26 22:40:08 2005
--- valgrind-3.1.0/memcheck/Makefile.in Tue Dec 20 21:11:23 2005
***************
*** 1085,1098 ****
n=`echo $$f | sed -e 's/-[^-]\{1,\}-[^-.]\{1,\}//'`; \
$(mkinstalldirs) $(DESTDIR)$(valdir)/$$p; \
$(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir)/$$p/$$n; \
- done ; \
- for f in $(noinst_LIBRARIES); do \
- if expr match $$f libcoregrind_ > /dev/null ; then \
- pU=`echo $$f | sed -e 's/libcoregrind_//g' -e 's/\.a//g'` ; \
- pD=`echo $$pU | sed -e 's/_/-/g'` ; \
- $(INSTALL_DATA) $$f $(DESTDIR)$(valdir)/$$pD/libcoregrind.a ; \
- $(INSTALL_DATA) @VEX_DIR@/libvex_$$pU.a $(DESTDIR)$(valdir)/$$pD/libvex.a ; \
- fi ; \
done
all-local:
for f in $(noinst_PROGRAMS); do \
--- 1085,1090 ----
diff -rc valgrind-3.1.0-orig/none/Makefile.in valgrind-3.1.0/none/Makefile.in
*** valgrind-3.1.0-orig/none/Makefile.in Sat Nov 26 22:40:12 2005
--- valgrind-3.1.0/none/Makefile.in Tue Dec 20 21:11:23 2005
***************
*** 737,750 ****
n=`echo $$f | sed -e 's/-[^-]\{1,\}-[^-.]\{1,\}//'`; \
$(mkinstalldirs) $(DESTDIR)$(valdir)/$$p; \
$(INSTALL_PROGRAM) $$f $(DESTDIR)$(valdir)/$$p/$$n; \
- done ; \
- for f in $(noinst_LIBRARIES); do \
- if expr match $$f libcoregrind_ > /dev/null ; then \
- pU=`echo $$f | sed -e 's/libcoregrind_//g' -e 's/\.a//g'` ; \
- pD=`echo $$pU | sed -e 's/_/-/g'` ; \
- $(INSTALL_DATA) $$f $(DESTDIR)$(valdir)/$$pD/libcoregrind.a ; \
- $(INSTALL_DATA) @VEX_DIR@/libvex_$$pU.a $(DESTDIR)$(valdir)/$$pD/libvex.a ; \
- fi ; \
done
all-local:
for f in $(noinst_PROGRAMS); do \
--- 737,742 ----
---->8-------->8-------->8-------->8-------->8-------->8-------->8----
---------------------------------
Shinichi NODA
no...@ta...
---------------------------------
|
|
From: Tom H. <to...@co...> - 2005-12-29 16:22:22
|
In message <200...@ta...>
Shinichi Noda <no...@ta...> wrote:
> From: Alasdair Ferro <alasdair@sp...>
> Build Fail on Redhat 7.2
> 2005-12-22 05:15
>
> > I'm trying to build Valgrind 3.1.0 on RedHat 7.2, and it fails in the
> > "make install" stage - the compile runs fine. I've successfully built
> > and installed on Redhat 9, and that binary runs fine on anything newer.
> >
> > I did:
> > ./configure --prefix=/space/tools/
> > make
> > make install
>
> # Since I subscribed this mailing list today, I couldn't
> # continue the original thread, sorry.
>
> The bourne shell (bash) script "for f in ; do ..." in Makefile
> might not work on RHL 7.2. Non-void list is required after "in".
>
> This "for" section seems useful only in coregrind/Makefile. So I
> have removed it from other directories' one. I used a patch as
> below, and then "make install" works.
I fixed this in SVN a few weeks ago.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|