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]

Please help installing gcc-3.3.1 Solaris 2.9


Hi ,
 I'm trying to install Gnu gcc-3.3.1, but until now without success.I'm following the comment
  details in http://www.sunfreeware.com/gcc.html, but "make bootstrap"  throw a segmentation fault:
 
 ......  
 if [ -f include/fixed ] ; then true; \
 else \
  : This line works around a 'make' bug in BSDI 1.1.; \
  FIXPROTO_DEFINES=""; export FIXPROTO_DEFINES; \
  mkinstalldirs="/bin/sh ../../gcc/mkinstalldirs"; \
    export mkinstalldirs; \
  if [ -d /usr/include ] ; then \
    /bin/sh ../../gcc/fixproto include include /usr/include; \
    if [ $? -eq 0 ] ; then true ; else exit 1 ; fi ; \
  else true; fi; \
  echo timestamp > include/fixed; \
 fi   
   fixproto: populating `include'
  fix-header: fixing curses.h
  Fallo de segmentación  (Segmentation fault)
make[2]: *** [stmp-fixproto] Error 1
make[2]: Leaving directory `/data/share/tmp/clabsa/Gnu/install/gcc-3.3.1/objdir/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/data/share/tmp/clabsa/Gnu/install/gcc-3.3.1/objdir/gcc'
make: *** [bootstrap] Error 2

My scenario:

$ uname -svrmpi
SunOS 5.9 Generic_112233-08 sun4u sparc SUNW,Ultra-4

$ isainfo -kv
64-bit sparcv9 kernel modules

$/opt/sfw/bin/gcc -v
Reading specs from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.9/2.95.3/specs
gcc version 2.95.3 20010315 (release)

$ make -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.



What have I done?

- Download gcc-3.3.1.tar.gz source from GNU site
$ gunzip -c gcc-3.3.1.tar.gz | tar xvf -
$ cd gcc-3.3.1
$ mkdir objdir
$ cd objdir
$ setenv PATH /usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/ucb/bin:/opt/sfw/bin  # (gcc /opt/sfw/bin)
$ setenv CC /opt/sfw/bin/gcc
$ ../configure --with-as=/usr/css/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls --prefix=/opt/GCC331 --exec-prefix=/opt/GCC331 \
   --enable-threads=posix --enable-shared --with-cpu=ultrasparc --disable-multilib
$ make bootstrap

Note: I have also tried with the following configuration
$ ../configure --with-as=/usr/css/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls --prefix=/opt/GCC331 --exec-prefix=/opt/GCC331 
   
   
 Any help would be appreciated.
Thanks in advance
J. Torres





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