gcc: arparse.c: No such file or directory

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

gcc: arparse.c: No such file or directory

Christian Joensson-2
Are we still having dependency issues?

On

Windows XP Pro/SP3 cygwin Intel Core2 Duo T9600@2.80GHz system with packages:

binutils             2.19.51-1      2.19.51.20090704
bison                2.3-1          2.3
cloog-ppl            0.15.3-1
cygwin               1.7.0-60
dejagnu              20021217-2     1.4.2.x
expect               20030128-1     5.26
gcc-ada              3.4.4-999
gcc-core             3.4.4-999
gcc-g++              3.4.4-999
gmp                  4.3.1-3
libcloog-devel       0.15.3-1
libgmp-devel         4.3.1-3
libmpfr-devel        2.4.1-4
libppl               0.10.2-1
make                 3.81-2
mpfr                 2.4.1-4
ppl                  0.10.2-1
ppl-devel            0.10.2-1
tcltk                20080420-1     8.4
w32api               3.13-1


and for binutils daily snapshot of today (ie. 20090831) I get this:

/bin/sh ./libtool --tag=CC   --mode=link gcc -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2
-Wl,--stack,8388608 -o objdump.exe objdump.o dwarf.o prdbg.o rddbg.o
debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o
../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a
-lintl -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Werror -g -O2 -Wl,--stack -Wl,8388608 -o .libs/objdump.exe objdump.o
dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o
version.o filemode.o  ../opcodes/.libs/libopcodes.a
-L/usr/local/src/trunk/objdir-binutils/opcodes/../bfd
-L/usr/local/src/trunk/objdir-binutils/bfd/../libiberty
-L/usr/local/src/trunk/objdir-binutils/bfd/../intl -L/usr/lib
-L/usr/local/src/trunk/objdir-binutils/opcodes/../libiberty
-L/usr/local/src/trunk/objdir-binutils/opcodes/../intl
/usr/local/src/trunk/objdir-binutils/opcodes/../bfd/.libs/libbfd.a
../bfd/.libs/libbfd.a -liberty -lcygwin -lkernel32
../libiberty/libiberty.a /usr/lib/libintl.dll.a
/usr/lib/libiconv.dll.a -lz
gcc -DHAVE_CONFIG_H -I. -I../../src/binutils  -I. -I../../src/binutils
-I../bfd -I../../src/binutils/../bfd -I../../src/binutils/../include
-DLOCALEDIR="\"/usr/local/gnu/share/locale\""
-Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT arparse.o
-MD -MP -MF .deps/arparse.Tpo -c -o arparse.o arparse.c -Wno-error
gcc: arparse.c: No such file or directory
gcc: no input files
make[4]: *** [arparse.o] Error 1
make[4]: Leaving directory `/usr/local/src/trunk/objdir-binutils/binutils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/trunk/objdir-binutils/binutils'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/trunk/objdir-binutils/binutils'
make[1]: *** [all-binutils] Error 2
make[1]: Leaving directory `/usr/local/src/trunk/objdir-binutils'
make: *** [all] Error 2


--
Cheers,

/ChJ
Reply | Threaded
Open this post in threaded view
|

Re: gcc: arparse.c: No such file or directory

Christian Joensson-2
2009/8/31 Christian Joensson <[hidden email]>:

> and for binutils daily snapshot of today (ie. 20090831) I get this:
>
> /bin/sh ./libtool --tag=CC   --mode=link gcc -W -Wall
> -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2
> -Wl,--stack,8388608 -o objdump.exe objdump.o dwarf.o prdbg.o rddbg.o
> debug.o stabs.o ieee.o rdcoff.o bucomm.o version.o filemode.o
> ../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a
> -lintl -lz
> libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Werror -g -O2 -Wl,--stack -Wl,8388608 -o .libs/objdump.exe objdump.o
> dwarf.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o
> version.o filemode.o  ../opcodes/.libs/libopcodes.a
> -L/usr/local/src/trunk/objdir-binutils/opcodes/../bfd
> -L/usr/local/src/trunk/objdir-binutils/bfd/../libiberty
> -L/usr/local/src/trunk/objdir-binutils/bfd/../intl -L/usr/lib
> -L/usr/local/src/trunk/objdir-binutils/opcodes/../libiberty
> -L/usr/local/src/trunk/objdir-binutils/opcodes/../intl
> /usr/local/src/trunk/objdir-binutils/opcodes/../bfd/.libs/libbfd.a
> ../bfd/.libs/libbfd.a -liberty -lcygwin -lkernel32
> ../libiberty/libiberty.a /usr/lib/libintl.dll.a
> /usr/lib/libiconv.dll.a -lz
> gcc -DHAVE_CONFIG_H -I. -I../../src/binutils  -I. -I../../src/binutils
> -I../bfd -I../../src/binutils/../bfd -I../../src/binutils/../include
> -DLOCALEDIR="\"/usr/local/gnu/share/locale\""
> -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall
> -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT arparse.o
> -MD -MP -MF .deps/arparse.Tpo -c -o arparse.o arparse.c -Wno-error
> gcc: arparse.c: No such file or directory
> gcc: no input files
> make[4]: *** [arparse.o] Error 1
> make[4]: Leaving directory `/usr/local/src/trunk/objdir-binutils/binutils'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/usr/local/src/trunk/objdir-binutils/binutils'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/local/src/trunk/objdir-binutils/binutils'
> make[1]: *** [all-binutils] Error 2
> make[1]: Leaving directory `/usr/local/src/trunk/objdir-binutils'
> make: *** [all] Error 2

well, if it rings a bell in someones ears, I don't get this problem if
I use a cvs checkout... and I do get it when I use the daily snapshot
tar ball. Am I missing something on my system or is something missed
when the tar ball is spun?

--
Cheers,

/ChJ
Reply | Threaded
Open this post in threaded view
|

Re: gcc: arparse.c: No such file or directory

Ralf Wildenhues
In reply to this post by Christian Joensson-2
Hello Christian,

* Christian Joensson wrote on Mon, Aug 31, 2009 at 11:09:29AM CEST:
> and for binutils daily snapshot of today (ie. 20090831) I get this:

> gcc -DHAVE_CONFIG_H -I. -I../../src/binutils  -I. -I../../src/binutils
> -I../bfd -I../../src/binutils/../bfd -I../../src/binutils/../include
> -DLOCALEDIR="\"/usr/local/gnu/share/locale\""
> -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall
> -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT arparse.o
> -MD -MP -MF .deps/arparse.Tpo -c -o arparse.o arparse.c -Wno-error
> gcc: arparse.c: No such file or directory
> gcc: no input files

I assume arparse.c exists in the source tree?

Will fix tonight.  (The old code used $< which is however not portable
to non-GNU make outside of inference rules.)

Thanks,
Ralf
Reply | Threaded
Open this post in threaded view
|

Re: gcc: arparse.c: No such file or directory

Christian Joensson-2
2009/8/31 Ralf Wildenhues <[hidden email]>:

> Hello Christian,
>
> * Christian Joensson wrote on Mon, Aug 31, 2009 at 11:09:29AM CEST:
>> and for binutils daily snapshot of today (ie. 20090831) I get this:
>
>> gcc -DHAVE_CONFIG_H -I. -I../../src/binutils  -I. -I../../src/binutils
>> -I../bfd -I../../src/binutils/../bfd -I../../src/binutils/../include
>> -DLOCALEDIR="\"/usr/local/gnu/share/locale\""
>> -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall
>> -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT arparse.o
>> -MD -MP -MF .deps/arparse.Tpo -c -o arparse.o arparse.c -Wno-error
>> gcc: arparse.c: No such file or directory
>> gcc: no input files
>
> I assume arparse.c exists in the source tree?

yes, it's in there:

chj@li004043 /usr/local/src/trunk/binutils-2.19.51/binutils
$ ls -l arparse.c
-rw-r--r-- 1 chj Domain Users 38005 Aug 31 07:39 arparse.c

chj@li004043 /usr/local/src/trunk/binutils-2.19.51/binutils
$

> Will fix tonight.  (The old code used $< which is however not portable
> to non-GNU make outside of inference rules.)


--
Cheers,

/ChJ
Reply | Threaded
Open this post in threaded view
|

Re: gcc: arparse.c: No such file or directory

Ralf Wildenhues
* Christian Joensson wrote on Mon, Aug 31, 2009 at 12:00:23PM CEST:

> 2009/8/31 Ralf Wildenhues:
> > * Christian Joensson wrote on Mon, Aug 31, 2009 at 11:09:29AM CEST:
> >> gcc -DHAVE_CONFIG_H -I. -I../../src/binutils  -I. -I../../src/binutils
> >> -I../bfd -I../../src/binutils/../bfd -I../../src/binutils/../include
> >> -DLOCALEDIR="\"/usr/local/gnu/share/locale\""
> >> -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall
> >> -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT arparse.o
> >> -MD -MP -MF .deps/arparse.Tpo -c -o arparse.o arparse.c -Wno-error
> >> gcc: arparse.c: No such file or directory
> >> gcc: no input files
> >
> > I assume arparse.c exists in the source tree?
>
> yes, it's in there:

OK, thanks.  Can you try if the following patch fixes it?

General question: does binutils aim to support non-GNU make
implementations (such as BSD make)?  README sounds like it.
(Relying on GNU make would allow to use $< in these rules.)

OK to apply?

Thanks,
Ralf

binutils/ChangeLog:
2009-08-31  Ralf Wildenhues  <[hidden email]>

        * Makefile.am (arparse.o, arlex.o, sysroff.o, defparse.o)
        (deflex.o, nlmheaders.o, rcparse.o, mcparse.o): Supply correct
        source file name for generated files which may be in $(srcdir).
        * Makefile.in: Regenerate.

diff --git a/binutils/Makefile.am b/binutils/Makefile.am
index dbb0783..a527706 100644
--- a/binutils/Makefile.am
+++ b/binutils/Makefile.am
@@ -281,98 +281,98 @@ sysinfo.h: sysinfo.c
 # yacc will produce working code which contain compile time warnings.
 arparse.o: arparse.c
 if am__fastdepCC
- $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ arparse.c $(NO_WERROR)
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
  mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 else
 if AMDEP
  source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
  DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif
- $(COMPILE) -c arparse.c $(NO_WERROR)
+ $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
 endif
 
 arlex.o: arlex.c
 if am__fastdepCC
- $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ arlex.c $(NO_WERROR)
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
  mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 else
 if AMDEP
  source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
  DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif
- $(COMPILE) -c arlex.c $(NO_WERROR)
+ $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
 endif
 
 sysroff.o: sysroff.c
 if am__fastdepCC
- $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ sysroff.c $(NO_WERROR)
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
  mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 else
 if AMDEP
  source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
  DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif
- $(COMPILE) -c sysroff.c $(NO_WERROR)
+ $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
 endif
 
 defparse.o: defparse.c
 if am__fastdepCC
- $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ defparse.c $(NO_WERROR)
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
  mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 else
 if AMDEP
  source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
  DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif
- $(COMPILE) -c defparse.c $(NO_WERROR)
+ $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
 endif
 
 deflex.o: deflex.c
 if am__fastdepCC
- $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ deflex.c $(NO_WERROR)
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
  mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 else
 if AMDEP
  source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
  DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif
- $(COMPILE) -c deflex.c $(NO_WERROR)
+ $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
 endif
 
 nlmheader.o: nlmheader.c
 if am__fastdepCC
- $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ nlmheader.c $(NO_WERROR)
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
  mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 else
 if AMDEP
  source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@
  DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif
- $(COMPILE) -c nlmheader.c $(NO_WERROR)
+ $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
 endif
 
 rcparse.o: rcparse.c
 if am__fastdepCC
- $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ rcparse.c $(NO_WERROR)
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
  mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 else
 if AMDEP
  source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
  DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif
- $(COMPILE) -c rcparse.c $(NO_WERROR)
+ $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
 endif
 
 mcparse.o: mcparse.c
 if am__fastdepCC
- $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ mcparse.c $(NO_WERROR)
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
  mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 else
 if AMDEP
  source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
  DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 endif
- $(COMPILE) -c mcparse.c $(NO_WERROR)
+ $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
 endif
 
 rclex.o: rclex.c
Reply | Threaded
Open this post in threaded view
|

Re: gcc: arparse.c: No such file or directory

Dave Korn-6
Ralf Wildenhues wrote:

> General question: does binutils aim to support non-GNU make
> implementations (such as BSD make)?  README sounds like it.

  Yes, absolutely so.  They're expected to be at least mostly POSIX though.

> (Relying on GNU make would allow to use $< in these rules.)

  Alas.  GCC patches may require GNU make, but binutils needs to work with as
many native toolchains as possible.

    cheers,
      DaveK
Reply | Threaded
Open this post in threaded view
|

Re: gcc: arparse.c: No such file or directory

Christian Joensson-2
In reply to this post by Ralf Wildenhues
2009/8/31 Ralf Wildenhues <[hidden email]>:

> OK, thanks.  Can you try if the following patch fixes it?

yep, works for me. thanks.

--
Cheers,

/ChJ