X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=U9JIxprDrYYtWaeMNTSz5ENis8l3k 3cK+o6k6TIrDL3XB9ugIJndfxBSVv3ocOs/OkwszoZVYa2vDIdxe75ToDZU3iSNS FtQc1fKZGlQogx3ZEn7IjvMN5w3z7dLrk3Pcev68pm76u6UBmXenR3VCvr0kl3g2 om1WuHVlbf2xVA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=1RoIeAS9k60yzulYBGudqgqhNoM=; b=C7U r/qntwv1pDWxkl/Ks08TZxEkwUfofwfZWJic6rrNZwntFvhyhCtmIL0aa0jX45st zH0XkwAg7VumJFhoiUsw67PVWnYD6EaecTqmgL/qKYGz8wvCUluR85ojs/lYxgAE co0wBaF5nVgy13E/yTqBIe3IjdU09Sdihu5UoH7U= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f172.google.com MIME-Version: 1.0 X-Received: by 10.107.131.70 with SMTP id f67mr24165633iod.47.1437758815016; Fri, 24 Jul 2015 10:26:55 -0700 (PDT) Date: Fri, 24 Jul 2015 11:26:54 -0600 Message-ID: Subject: cannot find crti.o error, while building gcc cross compiler: From: sindhu selvam To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 I am trying to build a GCC (version 4.9.3)cross compiler on my windows machine using Cygwin. I am using the source package that came along with cygwin. I have already built binutils version 2.25 and installed, this is through cygwin as well. binutils configuration used: ../binutils-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror I then configured GCC with the following configuration ../gcc-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers --disable-threads Then the make all-gcc went through fine. I am getting error when I try to run make all-target-libgcc Following is the error that I encounter. # @multilib_flags@ is still needed because this may use # /build/gcc/./gcc/xgcc -B/build/gcc/./gcc/ -B/usr/local/cross/x86_64-pc-linux-gnu/bin/ -B/usr/local/cross/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/cross/x86_64-pc-linux-gnu/include -isystem /usr/local/cross/x86_64-pc-linux-gnu # @multilib_dir@ is not really necessary, but sometimes it has # more uses than just a directory name. /bin/sh ../../../../../usr/src/gcc-4.9.3-1.src/gcc-4.9.3/libgcc/../mkinstalldirs 32 /build/gcc/./gcc/xgcc -B/build/gcc/./gcc/ -B/usr/local/cross/x86_64-pc-linux-gnu/bin/ -B/usr/local/cross/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/cross/x86_64-pc-linux-gnu/include -isystem /usr/local/cross/x86_64-pc-linux-gnu/s si2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _ /usr/local/cross/x86_64-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or directory /usr/local/cross/x86_64-pc-linux-gnu/bin/ld: cannot find -lc /usr/local/cross/x86_64-pc-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status Makefile:937: recipe for target 'libgcc_s.so' failed make[3]: *** [libgcc_s.so] Error 1 make[3]: Leaving directory '/build/gcc/x86_64-pc-linux-gnu/32/libgcc' Makefile:1136: recipe for target 'multi-do' failed make[2]: *** [multi-do] Error 1 make[2]: Leaving directory '/build/gcc/x86_64-pc-linux-gnu/libgcc' Makefile:114: recipe for target 'all-multi' failed make[1]: *** [all-multi] Error 2 make[1]: Leaving directory '/build/gcc/x86_64-pc-linux-gnu/libgcc' Makefile:11913: recipe for target 'all-target-libgcc' failed make: *** [all-target-libgcc] Error 2 Why am I getting this error. What could I do to overcome this problem? Thank you, Sindhu -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple