From owner-freebsd-current Fri Jun 21 3:44: 1 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.mk.bsdclub.org (l209160.ppp.asahi-net.or.jp [218.219.209.160]) by hub.freebsd.org (Postfix) with ESMTP id ADF2A37B406 for ; Fri, 21 Jun 2002 03:43:52 -0700 (PDT) Received: from sakura.mk.bsdclub.org (sakura.mk.bsdclub.org [2001:200:341:0:2a0:c9ff:fe20:9aff]) by mail.mk.bsdclub.org (8.11.6+3.4W/3.7W/smtpfeed 1.18) with ESMTP/inet6 id g5LAhpi06212; Fri, 21 Jun 2002 19:43:51 +0900 (JST) Received: from sakura.mk.bsdclub.org (localhost [127.0.0.1]) by sakura.mk.bsdclub.org (8.11.6+3.4W/3.7W) with ESMTP/inet id g5LAhop25765; Fri, 21 Jun 2002 19:43:50 +0900 (JST) Message-Id: <200206211043.g5LAhop25765@sakura.mk.bsdclub.org> To: Kris Kennaway Cc: freebsd-current@FreeBSD.ORG Subject: Re: GCC3.1 internal compiler error when compiling XFree86-4-libraries From: Motoyuki Konno References: <20020608.171312.730576735.ken@tydfam.jp> <20020608013938.B5755@xor.obsecurity.org> <20020608092926.GA2635@StefanEsser.FreeBSD.org> <20020616023918.C12427@xor.obsecurity.org> User-Agent: EMH/1.10.0 SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigoryomae) APEL/10.3 Emacs/21.2 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Fri_Jun_21_19:43:50_2002-1" Date: Fri, 21 Jun 2002 19:43:50 +0900 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 --Multipart_Fri_Jun_21_19:43:50_2002-1 Content-Type: text/plain; charset=US-ASCII Kris Kennaway wrote: > > 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). > > Thanks for looking into this; I'd appreciate it if someone could > commit a fix, but the patch below is suboptimal because it affects all > versions of FreeBSD. Can you modify it so it only disables > optimization on (recent) 5.0? Here is one example of new ports/x11/XFree86-4-libraries/files/patch-z32c. -- ------------------------------------------------------------------------ Motoyuki Konno motoyuki@bsdclub.org (Home) motoyuki@FreeBSD.ORG (FreeBSD Project) http://www.freebsd.org/~motoyuki/ (WWW) -- --Multipart_Fri_Jun_21_19:43:50_2002-1 Content-Type: text/plain; charset=US-ASCII --- lib/GL/mesa/src/OSmesa/Imakefile.orig Tue Jun 5 05:43:30 2001 +++ lib/GL/mesa/src/OSmesa/Imakefile Fri Jun 21 18:21:25 2002 @@ -8,6 +8,19 @@ #define DoDebugLib DebugLibGlx #define DoProfileLib ProfileLibGlx +#if defined(FreeBSDArchitecture) && (OSMajorVersion >= 5) + +#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 $@ + +#endif + #include "../Imakefile.inc" #ifdef i386Architecture #include "../X86/Imakefile.inc" @@ -58,7 +71,7 @@ LIBNAME = OSMesa SOREV = 3.3 - +#if !defined(LibInstall) || LibInstall || (!defined(ModInstall) || ModInstall) #if DoNormalLib NormalLibraryTarget($(LIBNAME), $(UOBJS)) InstallLibrary($(LIBNAME),$(USRLIBDIR)) @@ -77,6 +90,7 @@ #if DoProfileLib ProfiledLibraryTarget($(LIBNAME), $(POBJS)) InstallLibrary($(LIBNAME)_p,$(USRLIBDIR)) +#endif #endif DependTarget() --Multipart_Fri_Jun_21_19:43:50_2002-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message