This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/12611] Gcc doesn't handle SGI's modularized compiler setup


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]