From owner-freebsd-current Sat Jun 8 2:29:42 2002 Delivered-To: freebsd-current@freebsd.org Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by hub.freebsd.org (Postfix) with ESMTP id 7BABA37B404; Sat, 8 Jun 2002 02:29:35 -0700 (PDT) Received: from fwd02.sul.t-online.de by mailout04.sul.t-online.com with smtp id 17GcXL-0004ow-04; Sat, 08 Jun 2002 11:29:31 +0200 Received: from Gatekeeper.FreeBSD.org (520047440004-0001@[217.81.8.156]) by fmrl02.sul.t-online.com with esmtp id 17GcXK-10Y4jwC; Sat, 8 Jun 2002 11:29:30 +0200 Received: from StefanEsser.FreeBSD.org (StefanEsser [10.0.0.1]) by Gatekeeper.FreeBSD.org (Postfix) with ESMTP id 043AA5F17; Sat, 8 Jun 2002 11:29:26 +0200 (CEST) Received: by StefanEsser.FreeBSD.org (Postfix, from userid 200) id B3B971E0B; Sat, 8 Jun 2002 11:29:26 +0200 (CEST) Date: Sat, 8 Jun 2002 11:29:26 +0200 From: Stefan Esser To: Kris Kennaway Cc: Yamada Ken Takeshi , freebsd-current@FreeBSD.ORG, Stefan Esser Subject: Re: Re: GCC3.1 internal compiler error when compiling XFree86-4-libraries Message-ID: <20020608092926.GA2635@StefanEsser.FreeBSD.org> Reply-To: Stefan Esser References: <20020608.171312.730576735.ken@tydfam.jp> <20020608013938.B5755@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020608013938.B5755@xor.obsecurity.org> User-Agent: Mutt/1.3.99i X-Sender: 520047440004-0001@t-dialin.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-06-08 01:39 -0700, Kris Kennaway wrote: > On Sat, Jun 08, 2002 at 05:13:12PM +0900, Yamada Ken Takeshi wrote: > > I have the following error when I try to install it. > > Is it unique only to me? > > I didn't get that when I built it on ref5. That's the only place I've > tried it. I got around this problem by (indirectly) fixing the ".c.o" rule in the Imakefile. This patch was part of my previous mail to you regarding the XFree86 library build process (new version of patch-z32). The problem is that "unshared" is meant to be a prefix to a file name, but $@ happens to be a path name including directory components. E.g. $@ = / => unshared// The correct path is /unshared/ and the modified definition of LibObjCompile uses that filename: File: /usr/ports/x11/XFree86-4-libraries/files/patch-z32 --- lib/GL/mesa/src/OSmesa/Imakefile.orig Tue Apr 3 11:29:33 2001 +++ lib/GL/mesa/src/OSmesa/Imakefile Wed Jun 5 12:28:26 2002 @@ -8,6 +8,16 @@ #define DoDebugLib DebugLibGlx #define DoProfileLib ProfileLibGlx +#define LibObjCompile(dir,options) RemoveFiles($@ $(@:C!([^/]+)$!dir/\1!)) @@\ + ClearmakeOSName \ + $(CC) -c $(CCOPTIONS) $(THREADS_CFLAGS) $(ALLDEFINES) \ + options $*.c -o $(@:C!([^/]+)$!dir/\1!) + +#define ObjectCompile(options) RemoveFile($@) @@\ + ClearmakeOSName \ + $(CC) -c $(CFLAGS) options -O0 $*.c -o $@ + + #include "../Imakefile.inc" #ifdef i386Architecture #include "../X86/Imakefile.inc" @@ -58,7 +68,7 @@ LIBNAME = OSMesa SOREV = 3.3 - +#if !defined(LibInstall) || LibInstall || (!defined(ModInstall) || ModInstall) #if DoNormalLib NormalLibraryTarget($(LIBNAME), $(UOBJS)) InstallLibrary($(LIBNAME),$(USRLIBDIR)) @@ -77,6 +87,7 @@ #if DoProfileLib ProfiledLibraryTarget($(LIBNAME), $(POBJS)) InstallLibrary($(LIBNAME)_p,$(USRLIBDIR)) +#endif #endif DependTarget() (The redefinition of ObjectCompile() disables optimization because it triggers an internal bug in gcc-3.1 in the case of the PCI object.) Regards, STefan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message