public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: gcc 4.5.0 libiberty .o vs. .obj confusion
@ 2010-05-03 11:54 Jay K
  2010-05-03 20:03 ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Jay K @ 2010-05-03 11:54 UTC (permalink / raw)
  To: gcc


I'm guessing that every ".o" in libiberty/Makefile.in should be changed to $(OBJEXT).

Thanks,
 - Jay

----------------------------------------
> From: jay.krell@cornell.edu
> To: gcc@gcc.gnu.org
> Subject: gcc 4.5.0 libiberty .o vs. .obj confusion
> Date: Mon, 3 May 2010 11:29:15 +0000
>
>
> build=i386-darwin
> host=alpha-dec-vms
>
> target=alpha-dec-vms
>
>
> alpha-dec-vms-ar rc ./libiberty.a \
>       ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o  ./asprintf.obj ./insque.obj ./memmem.obj ./mempcpy.obj ./mkstemps.obj ./stpcpy.obj ./stpncpy.obj ./strndup.obj ./strverscmp.obj ./vasprintf.obj ./vfork.obj ./strncmp.obj
> alpha-dec-vms-ar: ./asprintf.obj: No such file or directory
> make: *** [libiberty.a] Error 1
> jbook2:libiberty jay$ edit Makefile
>
>
> alpha-dec-gcc -c foo.c outputs foo.obj.
>
> "Something" seems to know this, since:
>
> libiberty/Makefile.in:
> LIBOBJS = @LIBOBJS@
>
>
> libiberty/Makefile:
> LIBOBJS =  ${LIBOBJDIR}./asprintf$U.obj ${LIBOBJDIR}./insque$U.obj ${LIBOBJDIR}./memmem$U.obj ${LIBOBJDIR}./mempcpy$U.obj ${LIBOBJDIR}./mkstemps$U.obj ${LIBOBJDIR}./stpcpy$U.obj ${LIBOBJDIR}./stpncpy$U.obj ${LIBOBJDIR}./strndup$U.obj ${LIBOBJDIR}./strverscmp$U.obj ${LIBOBJDIR}./vasprintf$U.obj ${LIBOBJDIR}./vfork$U.obj ${LIBOBJDIR}./strncmp$U.obj
>
>
> and then later there are explicit rules for building asprintf.o, etc.
> I'll probably just hack the configure Makefile to say .o.
>
>
> This could be an autoconf/automake bug.
> Or maybe libiberty is supposed to say $O or such in place of .o?
>
>
>  - Jay
>
 		 	   		  

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

* Re: gcc 4.5.0 libiberty .o vs. .obj confusion
  2010-05-03 11:54 gcc 4.5.0 libiberty .o vs. .obj confusion Jay K
@ 2010-05-03 20:03 ` Ian Lance Taylor
  2010-05-05 10:13   ` Jay K
  2010-05-05 12:48   ` Jay K
  0 siblings, 2 replies; 5+ messages in thread
From: Ian Lance Taylor @ 2010-05-03 20:03 UTC (permalink / raw)
  To: Jay K; +Cc: gcc

Jay K <jay.krell@cornell.edu> writes:

> I'm guessing that every ".o" in libiberty/Makefile.in should be changed to $(OBJEXT).

Yes.

Ian

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

* RE: gcc 4.5.0 libiberty .o vs. .obj confusion
  2010-05-03 20:03 ` Ian Lance Taylor
@ 2010-05-05 10:13   ` Jay K
  2010-05-05 12:48   ` Jay K
  1 sibling, 0 replies; 5+ messages in thread
From: Jay K @ 2010-05-05 10:13 UTC (permalink / raw)
  To: iant; +Cc: gcc

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


> CC: gcc@
> From: iant@
>
> Jay:
>> I'm guessing that every ".o" in libiberty/Makefile.in should be changed to $(OBJEXT).
>
> Yes.
>
> Ian

Thanks. 

Specifically ".o" goes to ".@OBJEXT@".

There's no way I'm going to be able to get "the papers" in.
I can try to squeak by via triviality of change.
I'm slightly derailed on other aspects of targeting VMS (e.g. *crt0*.c, vms-crtl.h), but this did work for me, attached.
It's many lines, but highly mechanical.
There are a few places where ".o" occurs in comments, can be left alone.
There is:

.c.o:
    false

> .c.obj:
>    false


and
<    -rm -rf *.o pic core errs \#* *.E a.out

>    -rm -rf *.o *.obj pic core errs \#* *.E a.out


and I wrapped the affected lines to one file per line, and spaces instead of tabs (consistent rendering)


 - Jay
 		 	   		  

[-- Attachment #2: libiberty-vms-o-vs-obj.txt --]
[-- Type: text/plain, Size: 21106 bytes --]

119a120,122
> .c.obj:
> 	false
> 
160,178c163,213
< REQUIRED_OFILES =							\
< 	./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o	\
< 	./alloca.o ./argv.o						\
< 	./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o		\
< 	./dyn-string.o							\
< 	./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o	\
< 	./fnmatch.o ./fopen_unlocked.o					\
< 	./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o		\
< 	./hashtab.o ./hex.o						\
< 	./lbasename.o ./lrealpath.o					\
< 	./make-relative-prefix.o ./make-temp-file.o			\
< 	./objalloc.o ./obstack.o					\
< 	./partition.o ./pexecute.o ./physmem.o				\
< 	./pex-common.o ./pex-one.o @pexecute@				\
< 	./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o	\
< 	 ./strsignal.o							\
< 	./unlink-if-ordinary.o						\
< 	./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o	\
< 	 ./xstrerror.o ./xstrndup.o
---
> REQUIRED_OFILES =           \
>     ./regex.@OBJEXT@        \
>     ./cplus-dem.@OBJEXT@    \
>     ./cp-demangle.@OBJEXT@  \
>     ./md5.@OBJEXT@          \
>     ./sha1.@OBJEXT@         \
>     ./alloca.@OBJEXT@       \
>     ./argv.@OBJEXT@         \
>     ./choose-temp.@OBJEXT@  \
>     ./concat.@OBJEXT@       \
>     ./cp-demint.@OBJEXT@    \
>     ./crc32.@OBJEXT@        \
>     ./dyn-string.@OBJEXT@   \
>     ./fdmatch.@OBJEXT@      \
>     ./fibheap.@OBJEXT@      \
>     ./filename_cmp.@OBJEXT@ \
>     ./floatformat.@OBJEXT@  \
>     ./fnmatch.@OBJEXT@      \
>     ./fopen_unlocked.@OBJEXT@ \
>     ./getopt.@OBJEXT@       \
>     ./getopt1.@OBJEXT@      \
>     ./getpwd.@OBJEXT@       \
>     ./getruntime.@OBJEXT@   \
>     ./hashtab.@OBJEXT@      \
>     ./hex.@OBJEXT@          \
>     ./lbasename.@OBJEXT@    \
>     ./lrealpath.@OBJEXT@    \
>     ./make-relative-prefix.@OBJEXT@ \
>     ./make-temp-file.@OBJEXT@ \
>     ./objalloc.@OBJEXT@     \
>     ./obstack.@OBJEXT@      \
>     ./partition.@OBJEXT@    \
>     ./pexecute.@OBJEXT@     \
>     ./physmem.@OBJEXT@      \
>     ./pex-common.@OBJEXT@   \
>     ./pex-one.@OBJEXT@      \
>     @pexecute@              \
>     ./safe-ctype.@OBJEXT@   \
>     ./sort.@OBJEXT@         \
>     ./spaces.@OBJEXT@       \
>     ./splay-tree.@OBJEXT@   \
>     ./strerror.@OBJEXT@     \
>     ./strsignal.@OBJEXT@    \
>     ./unlink-if-ordinary.@OBJEXT@   \
>     ./xatexit.@OBJEXT@      \
>     ./xexit.@OBJEXT@        \
>     ./xmalloc.@OBJEXT@      \
>     ./xmemdup.@OBJEXT@      \
>     ./xstrdup.@OBJEXT@      \
>     ./xstrerror.@OBJEXT@    \
>     ./xstrndup.@OBJEXT@
183,203c218,276
< CONFIGURED_OFILES = ./asprintf.o ./atexit.o				\
< 	./basename.o ./bcmp.o ./bcopy.o ./bsearch.o ./bzero.o		\
< 	./calloc.o ./clock.o ./copysign.o				\
< 	./_doprnt.o							\
< 	./ffs.o								\
< 	./getcwd.o ./getpagesize.o ./gettimeofday.o			\
< 	./index.o ./insque.o						\
< 	./memchr.o ./memcmp.o ./memcpy.o ./memmem.o ./memmove.o		\
< 	 ./mempcpy.o ./memset.o ./mkstemps.o				\
< 	./pex-djgpp.o ./pex-msdos.o					\
< 	 ./pex-unix.o ./pex-win32.o					\
< 	 ./putenv.o							\
< 	./random.o ./rename.o ./rindex.o				\
< 	./setenv.o ./sigsetmask.o ./snprintf.o ./stpcpy.o ./stpncpy.o	\
< 	 ./strcasecmp.o ./strchr.o ./strdup.o ./strncasecmp.o		\
< 	 ./strncmp.o ./strndup.o ./strrchr.o ./strstr.o			\
< 	 ./strtod.o ./strtol.o ./strtoul.o ./strverscmp.o		\
< 	./tmpnam.o							\
< 	./vasprintf.o ./vfork.o ./vfprintf.o ./vprintf.o ./vsnprintf.o	\
< 	 ./vsprintf.o							\
< 	./waitpid.o
---
> CONFIGURED_OFILES =         \
>     ./asprintf.@OBJEXT@     \
>     ./atexit.@OBJEXT@       \
>     ./basename.@OBJEXT@     \
>     ./bcmp.@OBJEXT@         \
>     ./bcopy.@OBJEXT@        \
>     ./bsearch.@OBJEXT@      \
>     ./bzero.@OBJEXT@        \
>     ./calloc.@OBJEXT@       \
>     ./clock.@OBJEXT@        \
>     ./copysign.@OBJEXT@     \
>     ./_doprnt.@OBJEXT@      \
>     ./ffs.@OBJEXT@          \
>     ./getcwd.@OBJEXT@       \
>     ./getpagesize.@OBJEXT@  \
>     ./gettimeofday.@OBJEXT@ \
>     ./index.@OBJEXT@        \
>     ./insque.@OBJEXT@       \
>     ./memchr.@OBJEXT@       \
>     ./memcmp.@OBJEXT@       \
>     ./memcpy.@OBJEXT@       \
>     ./memmem.@OBJEXT@       \
>     ./memmove.@OBJEXT@      \
>     ./mempcpy.@OBJEXT@      \
>     ./memset.@OBJEXT@       \
>     ./mkstemps.@OBJEXT@     \
>     ./pex-djgpp.@OBJEXT@    \
>     ./pex-msdos.@OBJEXT@    \
>     ./pex-unix.@OBJEXT@     \
>     ./pex-win32.@OBJEXT@    \
>     ./putenv.@OBJEXT@       \
>     ./random.@OBJEXT@       \
>     ./rename.@OBJEXT@       \
>     ./rindex.@OBJEXT@       \
>     ./setenv.@OBJEXT@       \
>     ./sigsetmask.@OBJEXT@   \
>     ./snprintf.@OBJEXT@     \
>     ./stpcpy.@OBJEXT@       \
>     ./stpncpy.@OBJEXT@      \
>     ./strcasecmp.@OBJEXT@   \
>     ./strchr.@OBJEXT@       \
>     ./strdup.@OBJEXT@       \
>     ./strncasecmp.@OBJEXT@  \
>     ./strncmp.@OBJEXT@      \
>     ./strndup.@OBJEXT@      \
>     ./strrchr.@OBJEXT@      \
>     ./strstr.@OBJEXT@       \
>     ./strtod.@OBJEXT@       \
>     ./strtol.@OBJEXT@       \
>     ./strtoul.@OBJEXT@      \
>     ./strverscmp.@OBJEXT@   \
>     ./tmpnam.@OBJEXT@       \
>     ./vasprintf.@OBJEXT@    \
>     ./vfork.@OBJEXT@        \
>     ./vfprintf.@OBJEXT@     \
>     ./vprintf.@OBJEXT@      \
>     ./vsnprintf.@OBJEXT@    \
>     ./vsprintf.@OBJEXT@     \
>     ./waitpid.@OBJEXT@
403c476
< 	-rm -rf *.o pic core errs \#* *.E a.out
---
> 	-rm -rf *.o *.obj pic core errs \#* *.E a.out
472c545
< ./_doprnt.o: $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \
---
> ./_doprnt.@OBJEXT@: $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \
479c552
< ./alloca.o: $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \
---
> ./alloca.@OBJEXT@: $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \
486c559
< ./argv.o: $(srcdir)/argv.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
---
> ./argv.@OBJEXT@: $(srcdir)/argv.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
493c566
< ./asprintf.o: $(srcdir)/asprintf.c config.h $(INCDIR)/ansidecl.h \
---
> ./asprintf.@OBJEXT@: $(srcdir)/asprintf.c config.h $(INCDIR)/ansidecl.h \
500c573
< ./atexit.o: $(srcdir)/atexit.c config.h
---
> ./atexit.@OBJEXT@: $(srcdir)/atexit.c config.h
506c579
< ./basename.o: $(srcdir)/basename.c config.h $(INCDIR)/ansidecl.h \
---
> ./basename.@OBJEXT@: $(srcdir)/basename.c config.h $(INCDIR)/ansidecl.h \
513c586
< ./bcmp.o: $(srcdir)/bcmp.c
---
> ./bcmp.@OBJEXT@: $(srcdir)/bcmp.c
519c592
< ./bcopy.o: $(srcdir)/bcopy.c
---
> ./bcopy.@OBJEXT@: $(srcdir)/bcopy.c
525c598
< ./bsearch.o: $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h
---
> ./bsearch.@OBJEXT@: $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h
531c604
< ./bzero.o: $(srcdir)/bzero.c
---
> ./bzero.@OBJEXT@: $(srcdir)/bzero.c
537c610
< ./calloc.o: $(srcdir)/calloc.c $(INCDIR)/ansidecl.h
---
> ./calloc.@OBJEXT@: $(srcdir)/calloc.c $(INCDIR)/ansidecl.h
543c616
< ./choose-temp.o: $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \
---
> ./choose-temp.@OBJEXT@: $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \
550c623
< ./clock.o: $(srcdir)/clock.c config.h
---
> ./clock.@OBJEXT@: $(srcdir)/clock.c config.h
556c629
< ./concat.o: $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \
---
> ./concat.@OBJEXT@: $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \
563c636
< ./copysign.o: $(srcdir)/copysign.c $(INCDIR)/ansidecl.h
---
> ./copysign.@OBJEXT@: $(srcdir)/copysign.c $(INCDIR)/ansidecl.h
569c642
< ./cp-demangle.o: $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \
---
> ./cp-demangle.@OBJEXT@: $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \
577c650
< ./cp-demint.o: $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \
---
> ./cp-demint.@OBJEXT@: $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \
585c658
< ./cplus-dem.o: $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \
---
> ./cplus-dem.@OBJEXT@: $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \
593c666
< ./crc32.o: $(srcdir)/crc32.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
---
> ./crc32.@OBJEXT@: $(srcdir)/crc32.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
599c672
< ./dyn-string.o: $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \
---
> ./dyn-string.@OBJEXT@: $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \
606c679
< ./fdmatch.o: $(srcdir)/fdmatch.c config.h $(INCDIR)/ansidecl.h \
---
> ./fdmatch.@OBJEXT@: $(srcdir)/fdmatch.c config.h $(INCDIR)/ansidecl.h \
613c686
< ./ffs.o: $(srcdir)/ffs.c
---
> ./ffs.@OBJEXT@: $(srcdir)/ffs.c
619c692
< ./fibheap.o: $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \
---
> ./fibheap.@OBJEXT@: $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \
626c699
< ./filename_cmp.o: $(srcdir)/filename_cmp.c config.h $(INCDIR)/filenames.h \
---
> ./filename_cmp.@OBJEXT@: $(srcdir)/filename_cmp.c config.h $(INCDIR)/filenames.h \
633c706
< ./floatformat.o: $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \
---
> ./floatformat.@OBJEXT@: $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \
640c713
< ./fnmatch.o: $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \
---
> ./fnmatch.@OBJEXT@: $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \
647c720
< ./fopen_unlocked.o: $(srcdir)/fopen_unlocked.c config.h $(INCDIR)/ansidecl.h \
---
> ./fopen_unlocked.@OBJEXT@: $(srcdir)/fopen_unlocked.c config.h $(INCDIR)/ansidecl.h \
654c727
< ./getcwd.o: $(srcdir)/getcwd.c config.h
---
> ./getcwd.@OBJEXT@: $(srcdir)/getcwd.c config.h
660c733
< ./getopt.o: $(srcdir)/getopt.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h
---
> ./getopt.@OBJEXT@: $(srcdir)/getopt.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h
666c739
< ./getopt1.o: $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h
---
> ./getopt1.@OBJEXT@: $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h
672c745
< ./getpagesize.o: $(srcdir)/getpagesize.c config.h
---
> ./getpagesize.@OBJEXT@: $(srcdir)/getpagesize.c config.h
678c751
< ./getpwd.o: $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \
---
> ./getpwd.@OBJEXT@: $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \
685c758
< ./getruntime.o: $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \
---
> ./getruntime.@OBJEXT@: $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \
692c765
< ./gettimeofday.o: $(srcdir)/gettimeofday.c config.h $(INCDIR)/ansidecl.h \
---
> ./gettimeofday.@OBJEXT@: $(srcdir)/gettimeofday.c config.h $(INCDIR)/ansidecl.h \
699c772
< ./hashtab.o: $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \
---
> ./hashtab.@OBJEXT@: $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \
706c779
< ./hex.o: $(srcdir)/hex.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
---
> ./hex.@OBJEXT@: $(srcdir)/hex.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
713c786
< ./index.o: $(srcdir)/index.c
---
> ./index.@OBJEXT@: $(srcdir)/index.c
719c792
< ./insque.o: $(srcdir)/insque.c
---
> ./insque.@OBJEXT@: $(srcdir)/insque.c
725c798
< ./lbasename.o: $(srcdir)/lbasename.c config.h $(INCDIR)/ansidecl.h \
---
> ./lbasename.@OBJEXT@: $(srcdir)/lbasename.c config.h $(INCDIR)/ansidecl.h \
733c806
< ./lrealpath.o: $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \
---
> ./lrealpath.@OBJEXT@: $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \
740c813
< ./make-relative-prefix.o: $(srcdir)/make-relative-prefix.c config.h \
---
> ./make-relative-prefix.@OBJEXT@: $(srcdir)/make-relative-prefix.c config.h \
747c820
< ./make-temp-file.o: $(srcdir)/make-temp-file.c config.h $(INCDIR)/ansidecl.h \
---
> ./make-temp-file.@OBJEXT@: $(srcdir)/make-temp-file.c config.h $(INCDIR)/ansidecl.h \
754c827
< ./md5.o: $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
---
> ./md5.@OBJEXT@: $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
760c833
< ./memchr.o: $(srcdir)/memchr.c $(INCDIR)/ansidecl.h
---
> ./memchr.@OBJEXT@: $(srcdir)/memchr.c $(INCDIR)/ansidecl.h
766c839
< ./memcmp.o: $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h
---
> ./memcmp.@OBJEXT@: $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h
772c845
< ./memcpy.o: $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h
---
> ./memcpy.@OBJEXT@: $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h
778c851
< ./memmem.o: $(srcdir)/memmem.c config.h
---
> ./memmem.@OBJEXT@: $(srcdir)/memmem.c config.h
784c857
< ./memmove.o: $(srcdir)/memmove.c $(INCDIR)/ansidecl.h
---
> ./memmove.@OBJEXT@: $(srcdir)/memmove.c $(INCDIR)/ansidecl.h
790c863
< ./mempcpy.o: $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h
---
> ./mempcpy.@OBJEXT@: $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h
796c869
< ./memset.o: $(srcdir)/memset.c $(INCDIR)/ansidecl.h
---
> ./memset.@OBJEXT@: $(srcdir)/memset.c $(INCDIR)/ansidecl.h
802c875
< ./mkstemps.o: $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h
---
> ./mkstemps.@OBJEXT@: $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h
808c881
< ./msdos.o: $(srcdir)/msdos.c
---
> ./msdos.@OBJEXT@: $(srcdir)/msdos.c
814c887
< ./objalloc.o: $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \
---
> ./objalloc.@OBJEXT@: $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \
821c894
< ./obstack.o: $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h
---
> ./obstack.@OBJEXT@: $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h
827c900
< ./partition.o: $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \
---
> ./partition.@OBJEXT@: $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \
834c907
< ./pex-common.o: $(srcdir)/pex-common.c config.h $(INCDIR)/ansidecl.h \
---
> ./pex-common.@OBJEXT@: $(srcdir)/pex-common.c config.h $(INCDIR)/ansidecl.h \
841c914
< ./pex-djgpp.o: $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \
---
> ./pex-djgpp.@OBJEXT@: $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \
848c921
< ./pex-msdos.o: $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \
---
> ./pex-msdos.@OBJEXT@: $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \
856c929
< ./pex-one.o: $(srcdir)/pex-one.c config.h $(INCDIR)/ansidecl.h \
---
> ./pex-one.@OBJEXT@: $(srcdir)/pex-one.c config.h $(INCDIR)/ansidecl.h \
863c936
< ./pex-unix.o: $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \
---
> ./pex-unix.@OBJEXT@: $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \
870c943
< ./pex-win32.o: $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \
---
> ./pex-win32.@OBJEXT@: $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \
877c950
< ./pexecute.o: $(srcdir)/pexecute.c config.h $(INCDIR)/ansidecl.h \
---
> ./pexecute.@OBJEXT@: $(srcdir)/pexecute.c config.h $(INCDIR)/ansidecl.h \
884c957
< ./physmem.o: $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
---
> ./physmem.@OBJEXT@: $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
891c964
< ./putenv.o: $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h
---
> ./putenv.@OBJEXT@: $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h
897c970
< ./random.o: $(srcdir)/random.c $(INCDIR)/ansidecl.h
---
> ./random.@OBJEXT@: $(srcdir)/random.c $(INCDIR)/ansidecl.h
903c976
< ./regex.o: $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/xregex.h \
---
> ./regex.@OBJEXT@: $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/xregex.h \
910c983
< ./rename.o: $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h
---
> ./rename.@OBJEXT@: $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h
916c989
< ./rindex.o: $(srcdir)/rindex.c
---
> ./rindex.@OBJEXT@: $(srcdir)/rindex.c
922c995
< ./safe-ctype.o: $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \
---
> ./safe-ctype.@OBJEXT@: $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \
929c1002
< ./setenv.o: $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h
---
> ./setenv.@OBJEXT@: $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h
935c1008
< ./sha1.o: $(srcdir)/sha1.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/sha1.h
---
> ./sha1.@OBJEXT@: $(srcdir)/sha1.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/sha1.h
941c1014
< ./sigsetmask.o: $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h
---
> ./sigsetmask.@OBJEXT@: $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h
947c1020
< ./snprintf.o: $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h
---
> ./snprintf.@OBJEXT@: $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h
953c1026
< ./sort.o: $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
---
> ./sort.@OBJEXT@: $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
960c1033
< ./spaces.o: $(srcdir)/spaces.c config.h $(INCDIR)/ansidecl.h \
---
> ./spaces.@OBJEXT@: $(srcdir)/spaces.c config.h $(INCDIR)/ansidecl.h \
967c1040
< ./splay-tree.o: $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \
---
> ./splay-tree.@OBJEXT@: $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \
974c1047
< ./stpcpy.o: $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h
---
> ./stpcpy.@OBJEXT@: $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h
980c1053
< ./stpncpy.o: $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h
---
> ./stpncpy.@OBJEXT@: $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h
986c1059
< ./strcasecmp.o: $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h
---
> ./strcasecmp.@OBJEXT@: $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h
992c1065
< ./strchr.o: $(srcdir)/strchr.c $(INCDIR)/ansidecl.h
---
> ./strchr.@OBJEXT@: $(srcdir)/strchr.c $(INCDIR)/ansidecl.h
998c1071
< ./strdup.o: $(srcdir)/strdup.c $(INCDIR)/ansidecl.h
---
> ./strdup.@OBJEXT@: $(srcdir)/strdup.c $(INCDIR)/ansidecl.h
1004c1077
< ./strerror.o: $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \
---
> ./strerror.@OBJEXT@: $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \
1011c1084
< ./strncasecmp.o: $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h
---
> ./strncasecmp.@OBJEXT@: $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h
1017c1090
< ./strncmp.o: $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h
---
> ./strncmp.@OBJEXT@: $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h
1023c1096
< ./strndup.o: $(srcdir)/strndup.c $(INCDIR)/ansidecl.h
---
> ./strndup.@OBJEXT@: $(srcdir)/strndup.c $(INCDIR)/ansidecl.h
1029c1102
< ./strrchr.o: $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h
---
> ./strrchr.@OBJEXT@: $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h
1035c1108
< ./strsignal.o: $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \
---
> ./strsignal.@OBJEXT@: $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \
1042c1115
< ./strstr.o: $(srcdir)/strstr.c
---
> ./strstr.@OBJEXT@: $(srcdir)/strstr.c
1048c1121
< ./strtod.o: $(srcdir)/strtod.c $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
---
> ./strtod.@OBJEXT@: $(srcdir)/strtod.c $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h
1054c1127
< ./strtol.o: $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h
---
> ./strtol.@OBJEXT@: $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h
1060c1133
< ./strtoul.o: $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \
---
> ./strtoul.@OBJEXT@: $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \
1067c1140
< ./strverscmp.o: $(srcdir)/strverscmp.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
---
> ./strverscmp.@OBJEXT@: $(srcdir)/strverscmp.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
1074c1147
< ./tmpnam.o: $(srcdir)/tmpnam.c
---
> ./tmpnam.@OBJEXT@: $(srcdir)/tmpnam.c
1080c1153
< ./unlink-if-ordinary.o: $(srcdir)/unlink-if-ordinary.c config.h \
---
> ./unlink-if-ordinary.@OBJEXT@: $(srcdir)/unlink-if-ordinary.c config.h \
1087c1160
< ./vasprintf.o: $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \
---
> ./vasprintf.@OBJEXT@: $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \
1094c1167
< ./vfork.o: $(srcdir)/vfork.c $(INCDIR)/ansidecl.h
---
> ./vfork.@OBJEXT@: $(srcdir)/vfork.c $(INCDIR)/ansidecl.h
1100c1173
< ./vfprintf.o: $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h
---
> ./vfprintf.@OBJEXT@: $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h
1106c1179
< ./vprintf.o: $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h
---
> ./vprintf.@OBJEXT@: $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h
1112c1185
< ./vsnprintf.o: $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \
---
> ./vsnprintf.@OBJEXT@: $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \
1119c1192
< ./vsprintf.o: $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h
---
> ./vsprintf.@OBJEXT@: $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h
1125c1198
< ./waitpid.o: $(srcdir)/waitpid.c config.h $(INCDIR)/ansidecl.h
---
> ./waitpid.@OBJEXT@: $(srcdir)/waitpid.c config.h $(INCDIR)/ansidecl.h
1131c1204
< ./xatexit.o: $(srcdir)/xatexit.c config.h $(INCDIR)/ansidecl.h \
---
> ./xatexit.@OBJEXT@: $(srcdir)/xatexit.c config.h $(INCDIR)/ansidecl.h \
1138c1211
< ./xexit.o: $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
---
> ./xexit.@OBJEXT@: $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
1144c1217
< ./xmalloc.o: $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \
---
> ./xmalloc.@OBJEXT@: $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \
1151c1224
< ./xmemdup.o: $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \
---
> ./xmemdup.@OBJEXT@: $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \
1158c1231
< ./xstrdup.o: $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \
---
> ./xstrdup.@OBJEXT@: $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \
1165c1238
< ./xstrerror.o: $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \
---
> ./xstrerror.@OBJEXT@: $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \
1172c1245
< ./xstrndup.o: $(srcdir)/xstrndup.c config.h $(INCDIR)/ansidecl.h \
---
> ./xstrndup.@OBJEXT@: $(srcdir)/xstrndup.c config.h $(INCDIR)/ansidecl.h \

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

* RE: gcc 4.5.0 libiberty .o vs. .obj confusion
  2010-05-03 20:03 ` Ian Lance Taylor
  2010-05-05 10:13   ` Jay K
@ 2010-05-05 12:48   ` Jay K
  1 sibling, 0 replies; 5+ messages in thread
From: Jay K @ 2010-05-05 12:48 UTC (permalink / raw)
  To: iant; +Cc: gcc


oops, also need like:

--- /src/orig/gcc-4.5.0/libiberty/configure    2010-01-04 15:46:56.000000000 -0800
+++ /src/gcc-4.5.0/libiberty/configure    2010-05-05 05:40:52.000000000 -0700
@@ -6533,10 +6533,10 @@
 
 # Figure out which version of pexecute to use.
 case "${host}" in
-     *-*-mingw* | *-*-winnt*)    pexecute=./pex-win32.o  ;;
-     *-*-msdosdjgpp*)        pexecute=./pex-djgpp.o  ;;
-     *-*-msdos*)        pexecute=./pex-msdos.o  ;;
-     *)                pexecute=./pex-unix.o   ;;
+     *-*-mingw* | *-*-winnt*)    pexecute=./pex-win32.$ac_objext  ;;
+     *-*-msdosdjgpp*)        pexecute=./pex-djgpp.$ac_objext  ;;
+     *-*-msdos*)        pexecute=./pex-msdos.$ac_objext  ;;
+     *)                pexecute=./pex-unix.$ac_objext   ;;
 esac
 

--- /src/orig/gcc-4.5.0/libiberty/configure.ac    2010-01-04 15:46:56.000000000 -0800
+++ /src/gcc-4.5.0/libiberty/configure.ac    2010-05-05 05:45:47.000000000 -0700
@@ -671,10 +671,10 @@
 
 # Figure out which version of pexecute to use.
 case "${host}" in
-     *-*-mingw* | *-*-winnt*)    pexecute=./pex-win32.o  ;;
-     *-*-msdosdjgpp*)        pexecute=./pex-djgpp.o  ;;
-     *-*-msdos*)        pexecute=./pex-msdos.o  ;;
-     *)                pexecute=./pex-unix.o   ;;
+     *-*-mingw* | *-*-winnt*)    pexecute=./pex-win32.$ac_objext  ;;
+     *-*-msdosdjgpp*)        pexecute=./pex-djgpp.$ac_objext  ;;
+     *-*-msdos*)        pexecute=./pex-msdos.$ac_objext  ;;
+     *)                pexecute=./pex-unix.$ac_objext   ;;
 esac
 AC_SUBST(pexecute)
 

I manually edited configure.
I don't know how to keep multiple versions of autoconf installed/working, other than to use Cygwin and its special packages dedicated to this problem.

configure.ac:3: error: Autoconf version 2.64 or higher is required
configure.ac:3: the top level
autom4te: /usr/bin/gm4 failed with exit status: 63
jbook2:libiberty jay$ 

 - Jay


----------------------------------------
> From: jay.krell@
> To: iant@m
> CC: gcc@g
> Subject: RE: gcc 4.5.0 libiberty .o vs. .obj confusion
> Date: Wed, 5 May 2010 10:10:15 +0000
>
>
>> CC: gcc@
>> From: iant@
>>
>> Jay:
>>> I'm guessing that every ".o" in libiberty/Makefile.in should be changed to $(OBJEXT).
>>
>> Yes.
>>
>> Ian
>
> Thanks.
>
> Specifically ".o" goes to ".@OBJEXT@".
>
> There's no way I'm going to be able to get "the papers" in.
> I can try to squeak by via triviality of change.
> I'm slightly derailed on other aspects of targeting VMS (e.g. *crt0*.c, vms-crtl.h), but this did work for me, attached.
> It's many lines, but highly mechanical.
> There are a few places where ".o" occurs in comments, can be left alone.
> There is:
>
> .c.o:
>     false
>
>> .c.obj:
>>    false
>
>
> and
> <    -rm -rf *.o pic core errs \#* *.E a.out
>
>>    -rm -rf *.o *.obj pic core errs \#* *.E a.out
>
>
> and I wrapped the affected lines to one file per line, and spaces instead of tabs (consistent rendering)
>
>
>  - Jay
>
 		 	   		  

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

* gcc 4.5.0 libiberty .o vs. .obj confusion
@ 2010-05-03 11:29 Jay K
  0 siblings, 0 replies; 5+ messages in thread
From: Jay K @ 2010-05-03 11:29 UTC (permalink / raw)
  To: gcc


build=i386-darwin
host=alpha-dec-vms

target=alpha-dec-vms


alpha-dec-vms-ar rc ./libiberty.a \
      ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o  ./asprintf.obj ./insque.obj ./memmem.obj ./mempcpy.obj ./mkstemps.obj ./stpcpy.obj ./stpncpy.obj ./strndup.obj ./strverscmp.obj ./vasprintf.obj ./vfork.obj ./strncmp.obj
alpha-dec-vms-ar: ./asprintf.obj: No such file or directory
make: *** [libiberty.a] Error 1
jbook2:libiberty jay$ edit Makefile 


alpha-dec-gcc -c foo.c outputs foo.obj.

"Something" seems to know this, since:

libiberty/Makefile.in:
LIBOBJS = @LIBOBJS@


libiberty/Makefile:
LIBOBJS =  ${LIBOBJDIR}./asprintf$U.obj ${LIBOBJDIR}./insque$U.obj ${LIBOBJDIR}./memmem$U.obj ${LIBOBJDIR}./mempcpy$U.obj ${LIBOBJDIR}./mkstemps$U.obj ${LIBOBJDIR}./stpcpy$U.obj ${LIBOBJDIR}./stpncpy$U.obj ${LIBOBJDIR}./strndup$U.obj ${LIBOBJDIR}./strverscmp$U.obj ${LIBOBJDIR}./vasprintf$U.obj ${LIBOBJDIR}./vfork$U.obj ${LIBOBJDIR}./strncmp$U.obj


and then later there are explicit rules for building asprintf.o, etc.
I'll probably just hack the configure Makefile to say .o.


This could be an autoconf/automake bug.
Or maybe libiberty is supposed to say $O or such in place of .o?


 - Jay
 		 	   		  

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

end of thread, other threads:[~2010-05-05 12:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-03 11:54 gcc 4.5.0 libiberty .o vs. .obj confusion Jay K
2010-05-03 20:03 ` Ian Lance Taylor
2010-05-05 10:13   ` Jay K
2010-05-05 12:48   ` Jay K
  -- strict thread matches above, loose matches on Subject: below --
2010-05-03 11:29 Jay K

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).