public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Jeremy Cole-Baker <jeremy@rhtech.co.nz>
To: crossgcc@sourceware.org
Subject: Crosstool Build Fails under cygwin
Date: Thu, 27 Jun 2013 21:17:00 -0000	[thread overview]
Message-ID: <51CCABD5.2030804@rhtech.co.nz> (raw)

Hello all,

I've been instructed to get a cross-compiler for Power PC working under 
Cygwin (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. 
"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_gettext'
zconf.tab.o:zconf.tab.c:(.text+0x4845): undefined reference to 
`_libintl_gettext'
zconf.tab.o:zconf.tab.c:(.text+0x5733): undefined reference to 
`_libintl_gettext'
zconf.tab.o:zconf.tab.c:(.text+0x5905): undefined reference to 
`_libintl_gettext'
zconf.tab.o:zconf.tab.c:(.text+0xc750): undefined reference to 
`_libintl_gettext'
zconf.tab.o:zconf.tab.c:(.text+0xc75e): more undefined references to 
`_libintl_gettext' follow
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: 
zconf.tab.o: bad reloc address 0x110 in section `.data'
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: 
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 it'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 
(because it was at the bottom of the page! I guess I failed the first 
intelligence test!).

1.9 built OK, and I was able to run the "menuconfig" option and set up 
my toolchain. Running the toolchain build took a loooooooooooooooong 
time (11 hours!) and eventually ended with an error. Here are the last 
few lines of the log file:

[ALL  ]    make[3]: Entering directory 
`/opt/build_gcc_xtools/targets/src/glibc-2.9/wctype'
[ALL  ]    /opt/build_gcc_xtools/targets/tools/bin/install -c -m 644 
wctype.h 
/opt/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu//sys-root/usr/include/wctype.h
[ALL  ]    make[3]: Leaving directory 
`/opt/build_gcc_xtools/targets/src/glibc-2.9/wctype'
[ALL  ]    /usr/bin/make -j2 subdir=manual -C manual ..=../ install-headers
[ALL  ]    make[3]: Entering directory 
`/opt/build_gcc_xtools/targets/src/glibc-2.9/manual'
[ALL  ]    Makefile:240: *** mixed implicit and normal rules.  Stop.
[ALL  ]    make[3]: Leaving directory 
`/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 
`/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 
`/opt/build_gcc_xtools/targets/powerpc-unknown-linux-gnu/build/build-libc-headers'
[ERROR]    Build failed in step 'Installing C library headers'
[ERROR]    Error happened in 
'/usr/crosstool/lib/ct-ng-1.9.3/scripts/functions' in function 
'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from 
'/usr/crosstool/lib/ct-ng-1.9.3/scripts/build/libc/glibc.sh' at line # 
175 in function 'do_libc_headers'
[ERROR]          called from 
'/usr/crosstool/lib/ct-ng-1.9.3/scripts/crosstool-NG.sh' at line # 597 
in function 'main'
[ERROR]    Look at '/opt/x-tools/powerpc-unknown-linux-gnu/build.log' 
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 
for cygwin) and I've lost all sense of perspective, so suggestions would 
be appreciated!

Thanks,
Jeremy


-- 
Riverhead Technology
Jeremy Cole-Baker
Ph. (+64) 27 673 0129
www.rhtech.co.nz

--
For unsubscribe information see http://sourceware.org/lists.html#faq

             reply	other threads:[~2013-06-27 21:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-27 21:17 Jeremy Cole-Baker [this message]
2013-06-28 11:27 ` EXTERNAL: " Dorrington, Albert
2013-08-30 19:57 ` Crifan Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51CCABD5.2030804@rhtech.co.nz \
    --to=jeremy@rhtech.co.nz \
    --cc=crossgcc@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).