Peering over the [cutting] edge

Neven Has haski at sezampro.yu
Thu Mar 22 12:09:46 PST 2001


On Thu, Mar 22, 2001 at 03:16:27PM +0100, didbaba wrote:
> > Check your "/usr/lib/cpp" and "/lib/cpp" links.
> > Maybe they are broken because of "cpp0" renaming ?
> 
> There is no more cpp in /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3
> only a cpp0.

Right.

> I'm trying to compile glibc 2.2.2 with gcc 2.95.3
> As you say I succeed with (--without-cvs)

"--without-cvs" is a work-around. 
Correct way, used in glibc's CVS, is attached as a patch.

> My question is : what is the sed command to change 
> 
> `$(CC) -print-file-name=cpp | \
>           sed 's|/cpp$$||'`
> 
> in
> 
> /usr/bin

[ assuming s/in/to/ and that you didn't find a sed guru yet ;) ]

Don't do that. 

"cpp -print-file-name=cpp" should work and give you the full absolute name:

	# cpp -print-file-name=cpp 
	/usr/lib/cpp
or
	# cpp -print-file-name=cpp0
	/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/cpp0

Just check if "/usr/lib/cpp" and "/lib/cpp" are not broken links.
If they are, and point to "cpp" instead of "cpp0", fix them.

The alternative is to have cpp -> cpp0 in "/usr/lib/gcc-lib/*/2.95.3/".

All this, if I understand your problems correctly. :)

Neven

-------------- next part --------------
diff --unified --recursive glibc-2.2.2/intl/Makefile glibc-2.2.2-new/intl/Makefile
--- glibc-2.2.2/intl/Makefile	Mon Mar 19 14:51:19 2001
+++ glibc-2.2.2-new/intl/Makefile	Thu Mar 22 03:04:35 2001
@@ -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
 


More information about the lfs-dev mailing list