This is the mail archive of the mailing list for the crossgcc project.

See crosstool-NG for lots more information.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: EXTERNAL: Crosstool Build Fails under cygwin

I was trying to use crosstool-ng under Cygwin to build an x86 Linux cross-compiler (need to be able to generate ELF output) and ran into the same issue with _libintl_gettext. I found the following two references with patches to the Makefile and nconf.c files:

Unfortunately, I didn't get much farther than that before I had to put my effort on hold.  I couldn't get past the build steps involving cloog-ppl.


-----Original Message-----
From: [] On Behalf Of Jeremy Cole-Baker
Sent: Thursday, June 27, 2013 5:17 PM
Subject: EXTERNAL: Crosstool Build Fails under cygwin

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:

   SED    'ct-ng'
   SED    'scripts/'
   SED    'scripts/'
   SED    'scripts/'
   GEN    'config/'
   GEN    ''
   GEN    ''
   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  ''
   GPERF  'zconf.hash.c'
   LEX    'lex.zconf.c'
   DEP    ''
   CC     ''
   CC     'conf.o'
   LD     'conf' undefined reference to `_libintl_gettext' undefined reference to `_libintl_gettext' undefined reference to `_libintl_gettext' undefined reference to `_libintl_gettext' undefined reference to `_libintl_gettext' more undefined references to `_libintl_gettext' follow
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: bad reloc address 0x110 in section `.data'
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 
[ALL  ]    /opt/build_gcc_xtools/targets/tools/bin/install -c -m 644 
[ALL  ]    make[3]: Leaving directory 
[ALL  ]    /usr/bin/make -j2 subdir=manual -C manual ..=../ install-headers
[ALL  ]    make[3]: Entering directory 
[ALL  ]    Makefile:240: *** mixed implicit and normal rules.  Stop.
[ALL  ]    make[3]: Leaving directory 
[ALL  ]    Makefile:207: recipe for target `manual/install-headers' failed
[ERROR]    make[2]: *** [manual/install-headers] Error 2
[ALL  ]    make[2]: Leaving directory 
[ALL  ]    Makefile:12: recipe for target `install-headers' failed
[ERROR]    make[1]: *** [install-headers] Error 2
[ALL  ]    make[1]: Leaving directory 
[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/' at line # 
175 in function 'do_libc_headers'
[ERROR]          called from 
'/usr/crosstool/lib/ct-ng-1.9.3/scripts/' 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!


Riverhead Technology
Jeremy Cole-Baker
Ph. (+64) 27 673 0129

For unsubscribe information see

For unsubscribe information see

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]