This is the mail archive of the gcc-help@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]

Re: Use gcc3 before* *installation?


Alexandre Oliva wrote:
> Yes, it's possible, but it's tough to get right.  Your best bet is
> probably to install it in a different prefix, say `make install
> prefix=/tmp/install-tree' and see whether it works.

  Close - but not quite there. I did that, and have set up the
following:

GCC_EXEC_PREFIX=/usr97/gnu/gnat/lib/gcc-lib/sparc-sun-solaris2.6/3.0/
C_INCLUDE_PATH=/usr97/gnu/gnat/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include
OBJC_INCLUDE_PATH=/usr97/gnu/gnat/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/objc
CPLUS_INCLUDE_PATH=/usr97/gnu/gcc3/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/g++/sparc-sun-solaris2.6:/usr97/gnu/gcc3/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/g++
export GCC_EXEC_PREFIX C_INCLUDE_PATH OBJC_INCLUDE_PATH
CPLUS_INCLUDE_PATH


  However, a noddy compile gives a bucket load of errors/warning
& no exe. This is the sort of thing I get:

% g++ -w -o debug2 debug.cc
In file included from
/usr97/gnu/gcc3/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/g++/bits/std_iosfwd.h:40,
                 from
/usr97/gnu/gcc3/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/g++/bits/std_ios.h:39,
                 from
/usr97/gnu/gcc3/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/g++/bits/std_ostream.h:39,
                 from
/usr97/gnu/gcc3/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/g++/bits/std_iostream.h:40,
                 from
/usr97/gnu/gcc3/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/g++/iostream:31,
                 from debug.cc:1:
/usr97/gnu/gcc3/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/g++/bits/stringfwd.h:44:
template
   with C linkage
/usr97/gnu/gcc3/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/g++/bits/stringfwd.h:52:
template
   with C linkage
<plus loads of these>


  What's a "template with C linkage"? That's the only thing I
can see that's reported but isn't a warning (no output says
"error").


-- 
=================- http://www.thalesgroup.com/ -================
  Neil Bird   Principal Engineer                  |
       work - mailto:neil.bird@uk.thalesgroup.com | $> cd /pub
   personal - mailto:neil@fnxweb.com              | $> more beer


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