gmon.c compile failure building cross compiler linux->solaris2

Jeffrey A Law law@cygnus.com
Mon Mar 30 23:39:00 GMT 1998


  In message < 199803271909.OAA05199@gertie.ma.tensilica.com >you write:
  > Here are the steps I followed to build my cross compiler:
  >      
  >     mkdir ~/cross
  >     mkdir ~/cross/sparc-sun-solaris2
  >     mkdir src
  >     cd src
  >     tar xfz ~/tmp/egcs-1.0.2.tar.gz
  >     tar xfz ~/tmp/binutils-2.8.1.tar.gz
  >     tar xfz ~/tmp/newlib-1.8.0.tar.gz
  >     cd newlib
  >     cp -r newlib/libc/include/ ~/cross/sparc-sun-solaris2/  ## Required??
  >     cd binutils-2.8.1
  >     configure --target=sparc-sun-solaris2 --host=i686-linux \
  >               --prefix=/home/rutt/cross/sparc-elf \
  >               --with-headers=/home/rutt/cross/sparc-elf/include \
  >               --with-newlib --with-gnu-as
I don't think you should be using newlib for a C library when
corss compiling to sparc-sun-solaris2.  You should be using the
include files and libraries from a sparc-sun-solaris2 system.

That probably accounts for the gmon.c failure.

jeff



More information about the Gcc-bugs mailing list