This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC 3.2 Linux to Solaris 7 failure


I am building a 3.2 cross compiler for Solaris to be used on a Linux
system.

I am using the following:
binutils-2.13
gcc-3.2

binutils configure with:
../binutils-2.13/configure --host=i686-pc-linux-gnu
--target=sparc-sun-solaris2.
7 --with-headers=/usr/local/sparc-sun-solaris2/include
--with-libs=/usr/local/sp
arc-sun-solaris2/lib --prefix=/opt/GNU-cross -v

gcc configure with:
../gcc-3.2/configure
--with-gcc-version-trigger=/hm/lnewby/Cross-compile/gcc-3.2
/gcc/version.c --host=i686-pc-linux-gnu --target=sparc-sun-solaris2.7
--with-hea
ders=/usr/local/sparc-sun-solaris2/include
--with-libs=/usr/local/sparc-sun-sola
ris2/lib --with-gnu-as --with-gnu-ld --prefix=/opt/GNU-cross

The binutils configures and builds fine.

The gcc configures fine and builds fine until the use of fix-header. The
following is an excert from the output.

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-3.2/gcc/mkinstalldirs"; \
    export mkinstalldirs; \
  if [ -d /opt/GNU-cross/sparc-sun-solaris2.7/sys-include ] ; then \
    /bin/sh ../../gcc-3.2/gcc/fixproto include include
/opt/GNU-cross/sparc-sun-solaris2.7/sys-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
../../gcc-3.2/gcc/fixproto: line 282: 21587 Segmentation fault
(core dumped) $FIX_HEADER $rel_source_file $abs_source_file
$abs_target_file ${DEFINES} $include_path
make[1]: *** [stmp-fixproto] Error 1
make[1]: Leaving directory
`/hm/lnewby/Cross-compile/build-gcc-solaris/gcc'
make: *** [cross] Error 2

I could use some help on this one. I have found a patch for cppexp.c but
the code isn't even close to what the patch was to work on.

Lew



Lew Newby Jr.				IT Platform Services & Ops,
IT-CTO Office
Email: lnewby@cadence.com		Tel: 408.428.5797
Cadence Design Systems		555 River Oaks Pkwy MS:1A2  San Jose, CA
95134


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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