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]
Other format: [Raw text]

Re: Solaris 10: wchar_iso.h vs cwchar


2011/9/2 Marc Glisse <marc.glisse@inria.fr>:
> On Fri, 2 Sep 2011, Maciej BliziÅski wrote:
>
>> Hello,
>>
>> While attempting to build PPL on Solaris 10 with gcc-4.6.1, I
>> encountered a problem. ÂThe first error looks like this:
>
> Actually there is like a million other errors in there (those about limits
> are particularly noticable), I would say the gcc installation is broken.
> Maybe the new installation got mixed up with an old one? One way to check,
> compile a file containing #include <limits> with g++ -E file.cc and check
> the list of files that are read (c++config.h in particular).

Here's the output:
http://netra.chopin.edu.pl/~maciej/limits.log

>> Do you have any advice?
>
> When you install gcc, keep it simple, don't specify much more than --prefix.

To get it to build, I need to specify a couple more:

${src}/configure \
  --prefix=/opt/gcctest \
  --enable-bootstrap \
  --enable-stage1-languages=c \
  --enable-languages=c,c++ \
  --with-gnu-as \
  --with-as=/opt/csw/bin/gas \
  --without-gnu-ld \
  --with-ld=/usr/ccs/bin/ld \
  --with-mpfr=/opt/csw \
  --with-gmp=/opt/csw \
  --with-mpc=/opt/csw \
  --with-libiconv-prefix=/opt/csw

Will build and report the results.


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