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: gcc-3.0.4 build problem on sparc-solaris 2.6


Hello,

      The problem was caused due to gcc being built in
the /tmp directory. At a some stage of the building
process it exhausted the swap memory.

      Shifting the build directories elsewhere solved
the problem. I used the /opt/SUNWspro/bin/cc to build
gcc.

regards,
Mahesh M.

Plz Note: --with-gcc-as, --with-gcc-ld are
--with-gnu-as, --with-gnu-ld resp.

--- "Mahesh M." <mahesh_m_1973@yahoo.com> wrote:
> Hello,
> 
>       I get the following error while building
> gcc-3.0.4 on solaris 2.6. I tried building gcc with
> both the compilers /opt/SUNWspro/bin/cc and
> /usr/ucb/cc. The problem is the same. I am using the
> following stages to build:
> 
> /tmp/temp/gcc-3.0.4/configure --with-gcc-as
> --with-as=/usr/local/bin/as --with-gcc-ld
> --with-ld=/usr/local/bin/ld
> <<<< this is successful >>>>
> 
> make bootstrap
> 
> .....
> <<<< fails here >>>>
> 
> stage1/xgcc -Bstage1/
> -B/usr/local/sparc-sun-solaris2.6/bin/  -DIN_GCC 
> -DSVR4  -g -O2 -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes
> -Wtraditional
> -pedantic -Wno-long-long  -DHAVE_CONFIG_H    -I. -I.
> -I/tmp/temp/gcc-3.0.4/gcc
> -I/tmp/temp/gcc-3.0.4/gcc/.
> -I/tmp/temp/gcc-3.0.4/gcc/config
> -I/tmp/temp/gcc-3.0.4/gcc/../include -c
> /tmp/temp/gcc-3.0.4/gcc/c-parse.c
> 
> cc1: Cannot allocate 131072 bytes after allocating
> 9838592 bytes
> make[2]: *** [c-parse.o] Error 1
> make[2]: Leaving directory `/tmp/temp/objdir/gcc'
> make[1]: *** [stage2_build] Error 2
> make[1]: Leaving directory `/tmp/temp/objdir/gcc'
> make: *** [bootstrap] Error 2
> 
>        Please help.
> 
> best regards,
> mahesh
> 
>       
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/


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