Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [203.200.20.226] X-Originating-Email: [mohanlaljangir AT hotmail DOT com] From: "mohanlal jangir" To: Cc: , References: Subject: Re: building cross compiler from cygwin windows to linux: crti.o no such file or directory Date: Tue, 25 Nov 2003 16:08:58 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Message-ID: X-OriginalArrivalTime: 25 Nov 2003 10:39:19.0991 (UTC) FILETIME=[61FF5C70:01C3B340] I tried this option. Seems to be work around for current problem, but new problem is that it can not fine libc. The error message is /usr/local/gnu/tools/host/i686-pc-cygwin//i686-pc-linux-gnu/bin/ld: cannot find -lc collect2: ld returned 1 exit status make[2]: *** [libgcc_s.so] Error 1 > > You try to create a empty crt0.c file. > > > cross-gcc crt0.c -c -o /usr/local/gnu/obj/gcc-3.3.1-3/gcc/crt0.o > > > > I am trying to build cross compiler from cygwin window to linux. I did > configured and build binutils as follows: > dir>/binutils-2.14/configure --host=i686-pc-cygwin --target=i686-pc-linux-gn > u --prefix=/host/i686-pc-cygwin && make > > This worked well. Later I tried to compile gcc as follows: > dir>/gcc-3.3.1-3/configure --host=i686-pc-cygwin --target=i686-pc-linux-gnu > --prefix=/host/i686-pc-cygwin --with-newlib --disable-threads > > This ended up in following error message: > /usr/local/gnu/tools/host/i686-pc-cygwin/i686-pc-linux-gnu/bin/ld: cannot > open crti.o: No such file or directory > collect2: ld returned 1 exit status > make[2]: *** [libgcc_s.so] Error 1 > make[2]: Leaving directory `/usr/local/gnu/obj/gcc-3.3.1-3/gcc' > make[1]: *** [libgcc.a] Error 2 > make[1]: Leaving directory `/usr/local/gnu/obj/gcc-3.3.1-3/gcc' > make: *** [all-gcc] Error 2 > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/