linux-mips
[Top] [All Lists]

Re: gcc-4.1.0 cross-compile for MIPS

To: kernel coder <lhrkernelcoder@gmail.com>
Subject: Re: gcc-4.1.0 cross-compile for MIPS
From: James E Wilson <wilson@specifix.com>
Date: Fri, 16 Jun 2006 15:33:15 -0700
Cc: linux-mips@linux-mips.org
In-reply-to: <f69849430606160522i12050d00n9a4a39810f13b8a0@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <f69849430606160522i12050d00n9a4a39810f13b8a0@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
On Fri, 2006-06-16 at 05:22, kernel coder wrote:
> /home/shahzad/install//mipsel/sys-include -DHAVE_CONFIG_H -I.
> -I../../../gcc-4.1.0/libssp -I. -Wall -O2 -g -O2 -MT ssp.lo -MD -MP
> -MF .deps/ssp.Tpo -c ../../../gcc-4.1.0/libssp/ssp.c -o ssp.o
> ../../../gcc-4.1.0/libssp/ssp.c:46:20: error: fcntl.h: No such file or 
> directory

You can't build target libraries like libssp in a --without-headers
build.  It was luck that this happened to work with earlier gcc
releases, because previously we didn't have C language target libraries
in gcc.  The solution is to do
  make all-gcc
  make install-gcc
instead of just
  make all
  make install

Please see Dan Kegel's crosstools package, which already knows how to do
this.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com


<Prev in Thread] Current Thread [Next in Thread>