This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/12611] Gcc doesn't handle SGI's modularized compiler setup
- From: "rrr6399 at futuretek dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Feb 2004 15:39:43 -0000
- Subject: [Bug bootstrap/12611] Gcc doesn't handle SGI's modularized compiler setup
- References: <20031014025253.12611.rrr6399@futuretek.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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