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/55293] bootstrap failure: invalid conversion from 'char**' to 'const char**' [-fpermissive]


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55293

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |bootstrap

--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-11-13 07:21:02 UTC ---
> Actually I just tried this : 
> 
> $ pwd
> /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10
> $ date -u
> Tue Nov 13 03:37:19 GMT 2012
> 
> $ CC='gcc -m64 -g -mno-app-regs -mcpu=v9 -D_TS_ERRNO' \
> > CXX='g++ -m64 -g -mno-app-regs -mcpu=v9 -D_TS_ERRNO' \
> > ../gcc-4.7.2/configure --prefix=/usr/local/gcc4 \
> > --build=sparc64-sun-solaris2.10 --without-gnu-as --without-gnu-ld \
> > --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local \
> > --with-ld=/usr/ccs/bin/ld --disable-nls --enable-threads=posix --enable-shared \
> > --libdir=/usr/local/gcc4/lib --with-local-prefix=/usr/local/gcc4 \
> > --with-cpu=v9 --enable-stage1-languages=c --disable-multilib \
> > --libexecdir=/usr/local/gcc4/lib \
> > --with-pkgversion=Blastwave.org\ Inc.\ Tues\ Nov\ 13\ 03\:37\:19\ GMT\ 2012 \
> > --with-bugurl=http\:\/\/www.blastwave.org\/support \
> > --enable-languages=c,c++,objc,fortran,ada --enable-bootstrap

Why on Earth are you *again* using all these flags?  Remove all the flags you
added back to CC and CXX.  Remove --with-cpu=v9 --enable-stage1-languages=c and
-enable-bootstrap as well.

> The end result of the long long experiment is that there is something wrong in
> gcc 4.7.2 that make it near impossible to bootstrap.  
> 
> OR 
> 
> There is something wrong with the headers in Oracle Solaris 10 that makes it
> impossible ( or near impossible ) to bootstrap GCC 4.7.2. 

Neither of course, people do it routinely and this works fine *if you follow
the documented procedures*.


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