From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32355 invoked by alias); 28 Jun 2013 11:27:39 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 32344 invoked by uid 89); 28 Jun 2013 11:27:39 -0000 X-Spam-SWARE-Status: No, score=-5.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,TW_SG autolearn=ham version=3.3.1 Received: from mailfo02.lmco.com (HELO mailfo02.lmco.com) (192.35.35.12) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 28 Jun 2013 11:27:37 +0000 Received: from HVXHTPN10.us.lmco.com (hvxhtpn10.ems.lmco.com [158.186.149.28]) by mailfo02.lmco.com (8.14.5/8.14.5) with ESMTP id r5SBRNm2030480; Fri, 28 Jun 2013 12:27:25 +0100 Received: from HVXDSP23.us.lmco.com ([fe80::496:efcc:aad2:51bf]) by HVXHTPN10.us.lmco.com ([fe80::ed1d:9a54:1e81:8133%15]) with mapi id 14.02.0318.004; Fri, 28 Jun 2013 07:27:24 -0400 From: "Dorrington, Albert" To: "jeremy@rhtech.co.nz" , "crossgcc@sourceware.org" Subject: RE: EXTERNAL: Crosstool Build Fails under cygwin Date: Fri, 28 Jun 2013 11:27:00 -0000 Message-ID: <64DDE3B7CB66124EB20F61322782705E048F1493@HVXDSP23.us.lmco.com> References: <51CCABD5.2030804@rhtech.co.nz> In-Reply-To: <51CCABD5.2030804@rhtech.co.nz> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-LM-Outbound: External 158.186.149.28 cntry=us g=29d6b961fdc1fae98837964f3a0363ae q=r5SBRNm2030480 m=3 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.431,0.0.0000 definitions=2013-06-28_05:2013-06-28,2013-06-28,1970-01-01 signatures=0 X-SW-Source: 2013-06/txt/msg00040.txt.bz2 I was trying to use crosstool-ng under Cygwin to build an x86 Linux cross-c= ompiler (need to be able to generate ELF output) and ran into the same issu= e with _libintl_gettext. I found the following two references with patches = to the Makefile and nconf.c files: http://stackoverflow.com/questions/13881633/error-when-installing-crosstool= -ng-on-cygwin-libintl-gettext http://sourceware.org/ml/crossgcc/2012-05/msg00012.html Unfortunately, I didn't get much farther than that before I had to put my e= ffort on hold. I couldn't get past the build steps involving cloog-ppl. -Al -----Original Message----- From: crossgcc-owner@sourceware.org [mailto:crossgcc-owner@sourceware.org] = On Behalf Of Jeremy Cole-Baker Sent: Thursday, June 27, 2013 5:17 PM To: crossgcc@sourceware.org Subject: EXTERNAL: Crosstool Build Fails under cygwin Hello all, I've been instructed to get a cross-compiler for Power PC working under Cyg= win (crazy idea I know, but that's what they want!). Having trouble, though. I have tried crisstools-ng version 1.17 and 1.18, but they won't build.=20 "Configure" seemed to work fine, but "make" for both versions stopped with = this error: $make SED 'ct-ng' SED 'scripts/crosstool-NG.sh' SED 'scripts/saveSample.sh' SED 'scripts/showTuple.sh' GEN 'config/configure.in' GEN 'paths.mk' GEN 'paths.sh' DEP 'nconf.gui.dep' DEP 'nconf.dep' DEP 'lxdialog/checklist.dep' DEP 'lxdialog/inputbox.dep' DEP 'lxdialog/util.dep' DEP 'lxdialog/textbox.dep' DEP 'lxdialog/yesno.dep' DEP 'lxdialog/menubox.dep' DEP 'mconf.dep' DEP 'conf.dep' BISON 'zconf.tab.c' GPERF 'zconf.hash.c' LEX 'lex.zconf.c' DEP 'zconf.tab.dep' CC 'zconf.tab.o' CC 'conf.o' LD 'conf' zconf.tab.o:zconf.tab.c:(.text+0x1671): undefined reference to `_libintl_ge= ttext' zconf.tab.o:zconf.tab.c:(.text+0x4845): undefined reference to `_libintl_ge= ttext' zconf.tab.o:zconf.tab.c:(.text+0x5733): undefined reference to `_libintl_ge= ttext' zconf.tab.o:zconf.tab.c:(.text+0x5905): undefined reference to `_libintl_ge= ttext' zconf.tab.o:zconf.tab.c:(.text+0xc750): undefined reference to `_libintl_ge= ttext' zconf.tab.o:zconf.tab.c:(.text+0xc75e): more undefined references to `_libi= ntl_gettext' follow /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:=20 zconf.tab.o: bad reloc address 0x110 in section `.data' /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:=20 final link failed: Invalid operation collect2: ld returned 1 exit status Makefile:108: recipe for target `conf' failed make[2]: *** [conf] Error 1 Makefile:160: recipe for target `build-lib-kconfig' failed make[1]: *** [build-lib-kconfig] Error 2 Makefile:120: recipe for target `build' failed make: *** [build] Error 2 My system is Windows 7 64 bit, and I installed the latest Cygwin (I think i= t's 1.7). I installed all the dev tools in the Cygwin setup. This may or may not be relevant, but: A couple of days ago, I downloaded and installed crosstools-ng 1.9=20 (because it was at the bottom of the page! I guess I failed the first=20 intelligence test!). 1.9 built OK, and I was able to run the "menuconfig" option and set up=20 my toolchain. Running the toolchain build took a loooooooooooooooong=20 time (11 hours!) and eventually ended with an error. Here are the last=20 few lines of the log file: [ALL ] make[3]: Entering directory=20 `/opt/build_gcc_xtools/targets/src/glibc-2.9/wctype' [ALL ] /opt/build_gcc_xtools/targets/tools/bin/install -c -m 644=20 wctype.h=20 /opt/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu//sys-root/= usr/include/wctype.h [ALL ] make[3]: Leaving directory=20 `/opt/build_gcc_xtools/targets/src/glibc-2.9/wctype' [ALL ] /usr/bin/make -j2 subdir=3Dmanual -C manual ..=3D../ install-hea= ders [ALL ] make[3]: Entering directory=20 `/opt/build_gcc_xtools/targets/src/glibc-2.9/manual' [ALL ] Makefile:240: *** mixed implicit and normal rules. Stop. [ALL ] make[3]: Leaving directory=20 `/opt/build_gcc_xtools/targets/src/glibc-2.9/manual' [ALL ] Makefile:207: recipe for target `manual/install-headers' failed [ERROR] make[2]: *** [manual/install-headers] Error 2 [ALL ] make[2]: Leaving directory=20 `/opt/build_gcc_xtools/targets/src/glibc-2.9' [ALL ] Makefile:12: recipe for target `install-headers' failed [ERROR] make[1]: *** [install-headers] Error 2 [ALL ] make[1]: Leaving directory=20 `/opt/build_gcc_xtools/targets/powerpc-unknown-linux-gnu/build/build-libc-h= eaders' [ERROR] Build failed in step 'Installing C library headers' [ERROR] Error happened in=20 '/usr/crosstool/lib/ct-ng-1.9.3/scripts/functions' in function=20 'CT_DoExecLog' (line unknown, sorry) [ERROR] called from=20 '/usr/crosstool/lib/ct-ng-1.9.3/scripts/build/libc/glibc.sh' at line #=20 175 in function 'do_libc_headers' [ERROR] called from=20 '/usr/crosstool/lib/ct-ng-1.9.3/scripts/crosstool-NG.sh' at line # 597=20 in function 'main' [ERROR] Look at '/opt/x-tools/powerpc-unknown-linux-gnu/build.log'=20 for more info on this error. [ERROR] (elapsed: 686:48.54) That seems slow! (Athlon 64 X2 dual core @ 3.1 Ghz and 6 GB RAM). I've become completely obsessed by this task (i.e. building a toolchain=20 for cygwin) and I've lost all sense of perspective, so suggestions would=20 be appreciated! Thanks, Jeremy --=20 Riverhead Technology Jeremy Cole-Baker Ph. (+64) 27 673 0129 www.rhtech.co.nz -- For unsubscribe information see http://sourceware.org/lists.html#faq -- For unsubscribe information see http://sourceware.org/lists.html#faq