From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11974 invoked by alias); 21 Feb 2004 15:39:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11964 invoked by uid 48); 21 Feb 2004 15:39:43 -0000 Date: Sat, 21 Feb 2004 15:39:00 -0000 Message-ID: <20040221153943.11963.qmail@sources.redhat.com> From: "rrr6399 at futuretek dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20031014025253.12611.rrr6399@futuretek.com> References: <20031014025253.12611.rrr6399@futuretek.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug bootstrap/12611] Gcc doesn't handle SGI's modularized compiler setup X-Bugzilla-Reason: CC X-SW-Source: 2004-02/txt/msg02069.txt.bz2 List-Id: ------- Additional Comments From rrr6399 at futuretek dot com 2004-02-21 15:39 ------- (In reply to comment #13) > It looks like one hack to solve this would be in cppdefault.c: > > below const struct default_include cpp_include_defaults[] you should be able to add a line along > the lines of { "/opt/MIPSpro/74/usr/include", "GCC", 0, 0, 0 } > > Can you give this a try? Thanks. Thanks for the suggestion. I was finally able to get gcc to work now! I went ahead and modified the cppdefault.c to look like: .... #ifdef SYSTEM_INCLUDE_DIR /* Some systems have an extra dir of include files. */ { SYSTEM_INCLUDE_DIR, 0, 0, 0, 1 }, #endif { "/opt/MIPSpro/74/usr/include", 0, 0, 0, 0 }, #ifdef STANDARD_INCLUDE_DIR /* /usr/include comes dead last. */ { STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT, 0, 0, 1 }, #endif { 0, 0, 0, 0, 0 } }; #endif /* no INCLUDE_DEFAULTS */ and then compiled gcc 3.3.3 using this process: #!/bin/csh -vfx gmake distclean setenv CC "cc -U__INLINE_INTRINSICS" setenv CONFIG_SHELL /usr/freeware/bin/bash # to avoid core dumps from sh ./configure --prefix=/usr/local/opt/gcc-3.3.3 --enable-shared --enable-threads --oldincludedir=/opt/MIPSpro/74/usr/include gmake bootstrap gmake install -- What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution| |FIXED Version|3.3.2 |3.3.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12611