From owner-freebsd-current Fri Nov 19 8: 2: 6 1999 Delivered-To: freebsd-current@freebsd.org Received: from mgate08.so-net.ne.jp (mgate08.so-net.ne.jp [210.139.254.155]) by hub.freebsd.org (Postfix) with ESMTP id A017615062 for ; Fri, 19 Nov 1999 08:02:02 -0800 (PST) (envelope-from sanewo@ba2.so-net.ne.jp) Received: from mail.ba2.so-net.ne.jp (mail.ba2.so-net.ne.jp [210.139.254.21]) by mgate08.so-net.ne.jp (8.8.8+3.0Wbeta9/3.6W99111911) with ESMTP id BAA06881; Sat, 20 Nov 1999 01:01:57 +0900 (JST) Received: from ba2.so-net.ne.jp (p84b534.sng2.ap.so-net.ne.jp [210.132.181.52]) by mail.ba2.so-net.ne.jp (8.8.8+3.0Wbeta9/3.7W99081617) with ESMTP id BAA26542; Sat, 20 Nov 1999 01:01:56 +0900 (JST) Message-Id: <199911191601.BAA26542@mail.ba2.so-net.ne.jp> To: "Rodney W. Grimes" Cc: freebsd-current@FreeBSD.ORG Subject: Re: gcc 2.95.2 In-reply-to: freebsd@gndrsh.dnsmgr.net's message of Tue, 16 Nov 1999 20:15:17 -0800. <199911170415.UAA20119@gndrsh.dnsmgr.net> User-Agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) PGPGPG FLIM/1.13.2 (Kasanui) Emacs/20.4.91 (i686-pc-freebsd4.0) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=ISO-2022-JP Date: Sat, 20 Nov 1999 01:01:50 +0900 From: SANETO Takanori Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199911170415.UAA20119@gndrsh.dnsmgr.net> "Rodney W. Grimes" said: >Something weird is going on... I can confirm Manfred's claim, I also just >build XFree86 just before the compiler change. I'm certainly not going to >cvs update right now... :-) After some investigation, I found that following reasons (both cpp related) caused the failure of build/installing XFree86: 1. /usr/libexec/cpp now has no predefined symbols like __FreeBSD__, which makes imake unable to detect OS type automatically. Following patch may fix it. Index: config/imake/imakemdep.h =================================================================== --- imakemdep.h 1999/09/05 14:53:23 1.1.1.5 +++ imakemdep.h 1999/11/16 15:17:39 @@ -330,6 +330,12 @@ # ifdef __GNUC__ "-traditional", # endif +# if defined(__GNUC__) && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 90) +/* this version of cpp doesn't predefine any specific symbols. driver (gcc) does. */ +# if defined(__FreeBSD__) + "-D__FreeBSD__", +# endif +# endif #endif #ifdef M4330 "-DM4330", /* Tektronix */ 2. /usr/libexec/cpp does not accept "-undef" option any more. Index: config/cf/host.def =================================================================== --- host.def 1999/09/23 23:00:33 1.7 +++ host.def 1999/11/18 13:42:23 @@ -4,6 +4,10 @@ #define DefaultGcc2i386Opt -Os -pipe -march=pentiumpro +#if OSMajorVersion >= 4 +#define RawCppCmd /usr/libexec/cpp /* -undef */ +#endif + #define HasTk YES #define XF86SetupUsesStaticTk NO With these two patches, I can successfully build/install XFree86 with gcc-2.95.2. Hope it helps, -- さねを To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message