public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* Fix for: "/usr/bin/install: cannot stat `libinproctrace.so': No such file or directory"
@ 2010-09-02 23:20 Anmol P. Paralkar
  2010-09-02 23:33 ` Michael Snyder
  0 siblings, 1 reply; 4+ messages in thread
From: Anmol P. Paralkar @ 2010-09-02 23:20 UTC (permalink / raw)
  To: gdb-patches; +Cc: Emilian Medve

Hello,

  My colleague, Emil kindly pointed out a typo in gdbserver/Makefile.in
  while looking at the failure below.

  The following patch fixes the problem.

Thanks,
Anmol.

===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/Makefile.in,v
retrieving revision 1.92
diff -u -r1.92 Makefile.in
--- Makefile.in	26 Aug 2010 18:03:02 -0000	1.92
+++ Makefile.in	2 Sep 2010 20:13:01 -0000
@@ -165,7 +165,7 @@
  install-only:
  	n=`echo gdbserver | sed '$(program_transform_name)'`; \
  	if [ x$$n = x ]; then n=gdbserver; else true; fi; \
-	if [ x$IPA_DEPFILES != x ]; then \
+	if [ x$$IPA_DEPFILES != x ]; then \
  		$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
  		$(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
  	fi; \

================================================================================
Wed Sep  1 12:08:07 CDT 2010: Make install gdbserver
================================================================================
make: Warning: File `Makefile' has modification time 3.1e+02 s in the future
n=`echo gdbserver | sed 's,x,x,'`; \
         if [ x$n = x ]; then n=gdbserver; else true; fi; \
         if [ xPA_DEPFILES != x ]; then \
                 /bin/sh /proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/../../mkinstalldirs /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/lib; \
                 /usr/bin/install -c libinproctrace.so /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/lib/libinproctrace.so; \
         fi; \
         /bin/sh /proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/../../mkinstalldirs /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/bin; \
         /usr/bin/install -c gdbserver /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/bin/$n; \
         /bin/sh /proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/../../mkinstalldirs /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/share/man/man1; \
         /usr/bin/install -c -m 644 /proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/gdbserver.1 /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/share/man/man1/$n.1
/usr/bin/install: cannot stat `libinproctrace.so': No such file or directory

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fix for: "/usr/bin/install: cannot stat `libinproctrace.so': No such file or directory"
  2010-09-02 23:20 Fix for: "/usr/bin/install: cannot stat `libinproctrace.so': No such file or directory" Anmol P. Paralkar
@ 2010-09-02 23:33 ` Michael Snyder
  2010-09-02 23:49   ` Paralkar Anmol-B07584
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Snyder @ 2010-09-02 23:33 UTC (permalink / raw)
  To: Anmol P. Paralkar; +Cc: gdb-patches, Emilian Medve

Anmol P. Paralkar wrote:
> Hello,
> 
>   My colleague, Emil kindly pointed out a typo in gdbserver/Makefile.in
>   while looking at the failure below.
> 
>   The following patch fixes the problem.

How about a change log entry?


> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbserver/Makefile.in,v
> retrieving revision 1.92
> diff -u -r1.92 Makefile.in
> --- Makefile.in	26 Aug 2010 18:03:02 -0000	1.92
> +++ Makefile.in	2 Sep 2010 20:13:01 -0000
> @@ -165,7 +165,7 @@
>   install-only:
>   	n=`echo gdbserver | sed '$(program_transform_name)'`; \
>   	if [ x$$n = x ]; then n=gdbserver; else true; fi; \
> -	if [ x$IPA_DEPFILES != x ]; then \
> +	if [ x$$IPA_DEPFILES != x ]; then \
>   		$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
>   		$(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
>   	fi; \
> 
> ================================================================================
> Wed Sep  1 12:08:07 CDT 2010: Make install gdbserver
> ================================================================================
> make: Warning: File `Makefile' has modification time 3.1e+02 s in the future
> n=`echo gdbserver | sed 's,x,x,'`; \
>          if [ x$n = x ]; then n=gdbserver; else true; fi; \
>          if [ xPA_DEPFILES != x ]; then \
>                  /bin/sh /proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/../../mkinstalldirs /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/lib; \
>                  /usr/bin/install -c libinproctrace.so /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/lib/libinproctrace.so; \
>          fi; \
>          /bin/sh /proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/../../mkinstalldirs /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/bin; \
>          /usr/bin/install -c gdbserver /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/bin/$n; \
>          /bin/sh /proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/../../mkinstalldirs /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/share/man/man1; \
>          /usr/bin/install -c -m 644 /proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/gdbserver.1 /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-gnu/share/man/man1/$n.1
> /usr/bin/install: cannot stat `libinproctrace.so': No such file or directory
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Fix for: "/usr/bin/install: cannot stat `libinproctrace.so': No such file or directory"
  2010-09-02 23:33 ` Michael Snyder
@ 2010-09-02 23:49   ` Paralkar Anmol-B07584
  2010-09-06 11:57     ` Pedro Alves
  0 siblings, 1 reply; 4+ messages in thread
From: Paralkar Anmol-B07584 @ 2010-09-02 23:49 UTC (permalink / raw)
  To: Michael Snyder; +Cc: gdb-patches, Medve Emilian-EMMEDVE1

[-- Attachment #1: Type: text/plain, Size: 3089 bytes --]

Hello Michael,

 Sorry! Please see the (attached) re-spun patch.

Thanks,
Anmol.

> -----Original Message-----
> From: Michael Snyder [mailto:msnyder@vmware.com]
> Sent: Thursday, September 02, 2010 3:47 PM
> To: Paralkar Anmol-B07584
> Cc: gdb-patches@sourceware.org; Medve Emilian-EMMEDVE1
> Subject: Re: Fix for: "/usr/bin/install: cannot stat
`libinproctrace.so':
> No such file or directory"
> 
> Anmol P. Paralkar wrote:
> > Hello,
> >
> >   My colleague, Emil kindly pointed out a typo in
gdbserver/Makefile.in
> >   while looking at the failure below.
> >
> >   The following patch fixes the problem.
> 
> How about a change log entry?
> 
> 
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/gdbserver/Makefile.in,v
> > retrieving revision 1.92
> > diff -u -r1.92 Makefile.in
> > --- Makefile.in	26 Aug 2010 18:03:02 -0000	1.92
> > +++ Makefile.in	2 Sep 2010 20:13:01 -0000
> > @@ -165,7 +165,7 @@
> >   install-only:
> >   	n=`echo gdbserver | sed '$(program_transform_name)'`; \
> >   	if [ x$$n = x ]; then n=gdbserver; else true; fi; \
> > -	if [ x$IPA_DEPFILES != x ]; then \
> > +	if [ x$$IPA_DEPFILES != x ]; then \
> >   		$(SHELL) $(srcdir)/../../mkinstalldirs
$(DESTDIR)$(libdir); \
> >   		$(INSTALL_PROGRAM) $(IPA_LIB)
$(DESTDIR)$(libdir)/$(IPA_LIB); \
> >   	fi; \
> >
> >
>
========================================================================
===
> =====
> > Wed Sep  1 12:08:07 CDT 2010: Make install gdbserver
> >
>
========================================================================
===
> =====
> > make: Warning: File `Makefile' has modification time 3.1e+02 s in
the
> future
> > n=`echo gdbserver | sed 's,x,x,'`; \
> >          if [ x$n = x ]; then n=gdbserver; else true; fi; \
> >          if [ xPA_DEPFILES != x ]; then \
> >                  /bin/sh
>
/proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/../../mkinsta
lld
> irs /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-
> gnu/lib; \
> >                  /usr/bin/install -c libinproctrace.so
> /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-
> gnu/lib/libinproctrace.so; \
> >          fi; \
> >          /bin/sh
>
/proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/../../mkinsta
lld
> irs /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-
> gnu/bin; \
> >          /usr/bin/install -c gdbserver
> /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-
> gnu/bin/$n; \
> >          /bin/sh
>
/proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/../../mkinsta
lld
> irs /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-
> gnu/share/man/man1; \
> >          /usr/bin/install -c -m 644
> /proj/ppc/sysperf/labhome/b07584/gnu/src/src/gdb/gdbserver/gdbserver.1
> /proj/ppc/sysperf/labhome/b07584/gnu/gdbserver/src/powerpc-linux-
> gnu/share/man/man1/$n.1
> > /usr/bin/install: cannot stat `libinproctrace.so': No such file or
> directory
> >
> 


[-- Attachment #2: IPA_DEPFILES.patch --]
[-- Type: application/octet-stream, Size: 1554 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/ChangeLog,v
retrieving revision 1.423
diff -c -p -r1.423 ChangeLog
*** ChangeLog	1 Sep 2010 18:57:12 -0000	1.423
--- ChangeLog	2 Sep 2010 22:00:41 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2010-09-02  Anmol P. Paralkar  <anmol@freescale.com>
+ 
+ 	* Makefile.in ($IPA_DEPFILES): Prefix with '$' to ensure it makes it
+ 	to the shell.
+ 
  2010-09-01  Joel Brobecker  <brobecker@adacore.com>
  
  	* gdbserver/lynx-low.c, gdbserver/lynx-low.h,
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/Makefile.in,v
retrieving revision 1.96
diff -c -p -r1.96 Makefile.in
*** Makefile.in	1 Sep 2010 18:57:12 -0000	1.96
--- Makefile.in	2 Sep 2010 22:00:41 -0000
*************** install: all install-only
*** 167,173 ****
  install-only:
  	n=`echo gdbserver | sed '$(program_transform_name)'`; \
  	if [ x$$n = x ]; then n=gdbserver; else true; fi; \
! 	if [ x$IPA_DEPFILES != x ]; then \
  		$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
  		$(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
  	fi; \
--- 167,173 ----
  install-only:
  	n=`echo gdbserver | sed '$(program_transform_name)'`; \
  	if [ x$$n = x ]; then n=gdbserver; else true; fi; \
! 	if [ x$$IPA_DEPFILES != x ]; then \
  		$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
  		$(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
  	fi; \

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fix for: "/usr/bin/install: cannot stat `libinproctrace.so': No such file or directory"
  2010-09-02 23:49   ` Paralkar Anmol-B07584
@ 2010-09-06 11:57     ` Pedro Alves
  0 siblings, 0 replies; 4+ messages in thread
From: Pedro Alves @ 2010-09-06 11:57 UTC (permalink / raw)
  To: gdb-patches; +Cc: Paralkar Anmol-B07584, Michael Snyder, Medve Emilian-EMMEDVE1

On Thursday 02 September 2010 23:12:46, Paralkar Anmol-B07584 wrote:
> Hello Michael,
> 
>  Sorry! Please see the (attached) re-spun patch.

Hi!  Thanks for spotting this.

> *************** install: all install-only
> *** 167,173 ****
>   install-only:
>   	n=`echo gdbserver | sed '$(program_transform_name)'`; \
>   	if [ x$$n = x ]; then n=gdbserver; else true; fi; \
> ! 	if [ x$IPA_DEPFILES != x ]; then \
>   		$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
>   		$(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
>   	fi; \
> --- 167,173 ----
>   install-only:
>   	n=`echo gdbserver | sed '$(program_transform_name)'`; \
>   	if [ x$$n = x ]; then n=gdbserver; else true; fi; \
> ! 	if [ x$$IPA_DEPFILES != x ]; then \
>   		$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
>   		$(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
>   	fi; \


This however isn't correct.  The intent is not to make the variable reference visible
to the shell (it'd always be empty), but to expand it before the shell sees it.

I've applied this patch below to fix this, after confirming "make install" does install
the library on a amd64-linux build.  I'll apply this to the 7.2 branch as well shortly.

2010-09-06  Pedro Alves  <pedro@codesourcery.com>

	* Makefile.in (install-only): Replace $IPA_DEPFILES with
	"$(IPA_DEPFILES)".

---
 gdb/gdbserver/Makefile.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: src/gdb/gdbserver/Makefile.in
===================================================================
--- src.orig/gdb/gdbserver/Makefile.in	2010-09-06 11:28:19.000000000 +0100
+++ src/gdb/gdbserver/Makefile.in	2010-09-06 11:42:54.000000000 +0100
@@ -167,7 +167,7 @@ install: all install-only
 install-only:
 	n=`echo gdbserver | sed '$(program_transform_name)'`; \
 	if [ x$$n = x ]; then n=gdbserver; else true; fi; \
-	if [ x$IPA_DEPFILES != x ]; then \
+	if [ x"$(IPA_DEPFILES)" != x ]; then \
 		$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir); \
 		$(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
 	fi; \

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-06 10:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02 23:20 Fix for: "/usr/bin/install: cannot stat `libinproctrace.so': No such file or directory" Anmol P. Paralkar
2010-09-02 23:33 ` Michael Snyder
2010-09-02 23:49   ` Paralkar Anmol-B07584
2010-09-06 11:57     ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).