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

Re: configure: error: unable to detect exception model


> >> > configure: failed program was:
> >> > #line 3655 "configure"
> >> > #include "confdefs.h"
> >> > #include <stdlib.h>
> >> > int main() {
> >> > char* tmp; strtoull("gnu", &tmp, 10);
> >> > ; return 0; }
> >> > configure:3690: checking for c header strategy to use
> >> > configure:3747: checking for thread model used by GCC
> >> > configure:3800: checking for exception model to use
> >> > configure:3826: /tmp/zlomj9am/gcc/gcc/xgcc -B/tmp/zlomj9am/gcc/gcc/ -nostdinc++  -L/tmp/zlomj9am/gcc/i686-pc-linux-gnu/libstdc++-v3/srcxgcc: conftest.C: C++ compiler not installed on this system
> >> >
> >> > But g++ IS installed on the system.
> >> 
> >> Which commands did you issue exactly?
> >
> > I got the CVS version.
> > Then "./configure" in the main dir - OK
> > Then "make" - it made gcc, then started configuring something else and wrote the error
> 
> That's not how you should build GCC (according to
> http://gcc.gnu.org/install/).  Use a separate build directory and
> issue make bootstrap.  For example I run from a separate build dir
> (most options are not needed and you can use the default):
> 
> /cvs/gcc/configure --prefix=/opt/gcc-3.1-devel --enable-shared \
> 	 --enable-threads=posix  --enable-clocale=gnu  \
>          --with-gnu-as --with-gnu-ld --disable-nls --with-system-zlib
> (make  bootstrap && make -k check) 2>&1|tee make-out

I have built gcc into separate dir but it still does not work. I used configure without options.

Josef
-- 
      Josef Zlomek
      zlomek@matfyz.cz
      zlomj9am@artax.karlin.mff.cuni.cz


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