This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "Broken" intl/Makefile


At 12:09 PM 25/02/2001 +0100, Andreas Jaeger wrote:
>Try the following patch and tell me if it helps,
>
>Thanks,
>Andreas
>
>2001-02-25  Andreas Jaeger  <aj@suse.de>
>
>	* intl/Makefile (plural.c): Reorder rules so that they work if
>	BISON doesn't exist.
>
>============================================================
>Index: intl/Makefile
>--- intl/Makefile	2001/02/05 22:58:59	1.37
>+++ intl/Makefile	2001/02/25 11:09:32
>@@ -43,9 +43,9 @@
> ifneq (no,$(BISON))
> plural.c: plural.y
> 	$(BISON) $(BISONFLAGS) $@ $^
>-endif
> ifeq ($(with-cvs),yes)
> 	test ! -d CVS || cvs $(CVSOPTS) commit -m'$(BISON) $(BISONFLAGS) $@ $^' $@
>+endif
> endif
> $(objpfx)plural.o: plural.c


The patch worked like a charm! Thanks. Glibc 2.2.2 compiled and installed.
Trying to recompile GCC (2.95.2), however, seems to have been broken.

The first issue is that GCC does not detect ncurses (which is installed)
because compiling the test program fails with undefined references to
_xstat, which I believe is because ncurses is statically compiled to libc5
(thus the libc5 crti, crtn, etc. static libraries are no longer around). I
know I'm supposed to recompile non-libc libraries to use the new library,
but I wanted to recompile GCC to use the new library first. Ncurses is only
useful for texinfo, however, and I can still compile GCC without it.

The real issue is that "make boostrap" for GCC now fails (whereas it works
with the libc5 libraries). The following is the important exerpt:

	/usr/local/src/gcc-build/gcc/xgcc -B/usr/local/src/gcc-build/gcc/
-B/usr/i686-pc-linux-gnu/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE
-fno-implicit-templates -I. -I../../../gcc-2.95.2/libio -nostdinc++
-D_IO_MTSAFE_IO ../../../gcc-2.95.2/libio/indstream.cc
	../../../gcc-2.95.2/libio/indstream.cc: In method `struct streampos
indirectbuf::seekoff(long long int, ios::seek_dir, int = 3)':
	../../../gcc-2.95.2/libio/indstream.cc:82: `struct streampos' used where a
`int' was expected
	../../../gcc-2.95.2/libio/indstream.cc:85: `struct streampos' used where a
`int' was expected
	../../../gcc-2.95.2/libio/indstream.cc:87: `struct streampos' used where a
`int' was expected
	../../../gcc-2.95.2/libio/indstream.cc:89: conversion from `int' to
non-scalar type `streampos' requested
	../../../gcc-2.95.2/libio/indstream.cc: In method `struct streampos
indirectbuf::seekpos(_G_fpos64_t, int = 3)':
	../../../gcc-2.95.2/libio/indstream.cc:99: `struct streampos' used where a
`int' was expected
	../../../gcc-2.95.2/libio/indstream.cc:102: `struct streampos' used where
a `int' was expected
	../../../gcc-2.95.2/libio/indstream.cc:104: `struct streampos' used where
a `int' was expected
	../../../gcc-2.95.2/libio/indstream.cc:106: conversion from `int' to
non-scalar type `streampos' requested
	make[2]: *** [indstream.o] Error 1
	make[2]: Leaving directory `/usr/local/src/gcc-build/i686-pc-linux-gnu/libio'
	make[1]: *** [all-target-libio] Error 2
	make[1]: Leaving directory `/usr/local/src/gcc-build'
	make: *** [bootstrap] Error 2

Normally, I'd send a question like this to a GCC list, except I think I'm
trying to recompile GCC incorrectly for the new libraries. The INSTALL file
mentions using  -Wl,--dynamic-linker=/lib/ld-linux.so.2  with GCC. I'm not
doing this currently, and I'm not sure how to go about it for compiling GCC.

The other interesting thing is that, even though I changed the specs file
for GCC, a "gcc -dumpspecs" returns the old specs file, which I guess is
compiled into the GCC binary.

On the other hand, reading the FAQ, I notice that there is a problem with
GCC 2.95.2's libio internals with respect to glibc 2.2.x. I expect this is
the real problem. Is this the cause of what I am seeing?

Thanks,
  Austin
----------
Austin Hung  *  University of Waterloo, 3N Computer Engineering
wizard_auz@engineer.com  *  http://ece.uwaterloo.ca/~a2hung/
"I Want To Believe"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]