This is the mail archive of the gcc-bugs@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]

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



  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


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