delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/25/05:49:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: qinfeng DOT zhang AT philips DOT com
Subject: Re: building cross compiler from cygwin windows to linux: crti.o no such
file or directory
To: "mohanlal jangir" <mohanlaljangir AT hotmail DOT com>
Cc: cygwin AT cygwin DOT com, gcc AT gcc DOT gnu DOT org
Message-ID: <OF733A8F48.A0578ED9-ON48256DE9.003B386C-48256DE9.003B8B51@diamond.philips.com>
Date: Tue, 25 Nov 2003 18:48:24 +0800
MIME-Version: 1.0

oh,
create a link file for libgcc.a to correct directory, maybe in /usr/local/gnu/lib/gcc-3.3.1-3/gcc/

I am not sure which directory, you can try.
Regards              /)/)
                    (-.-)
Qinfeng Zhang

Optical Storage & Digital TV
Philips Research East Asia - Shanghai
38F Tower 1 office building
218 Tian Mu Xi Rd.
Shanghai, P.R.China 200070

Tel: (86-21) 6354 1088 Ext. 5356
Fax: (86-21) 6354 4954
Email: qinfeng DOT zhang AT philips DOT com


                                                                                                                                                                 
                                                                                                                                                                 
                                                   To:   <qinfeng DOT zhang AT philips DOT com>                                                                             
                                                   cc:   <cygwin AT cygwin DOT com>                                                                                     
                                                    <gcc AT gcc DOT gnu DOT org>                                                                                            
                                                   Subject:    Re: building cross compiler from cygwin windows to linux: crti.o no such file or directory        
               "mohanlal jangir"                                                                                                                                 
               <mohanlaljangir AT hotmail.            Classification:                                                                                               
               com>                                                                                                                                              
                                                                                                                                                                 
               2003-11-25 18:38                                                                                                                                  
                                                                                                                                                                 
                                                                                                                                                                 




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:
> <source
>
dir>/binutils-2.14/configure --host=i686-pc-cygwin --target=i686-pc-linux-gn
> u --prefix=<tool dir>/host/i686-pc-cygwin  && make
>
> This worked well. Later I tried to compile gcc as follows:
>  <source
>
dir>/gcc-3.3.1-3/configure --host=i686-pc-cygwin --target=i686-pc-linux-gnu
>  --prefix=<tool dir>/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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019