Troubles compiling GNU Binutils

Brian Cuthie
Thu Feb 12 07:51:00 GMT 1998

If you get this to work, I'd love to hear about it.  I called and spoke
with someone at Cygnus about support, since I couldn't get the build to
work to save my life.  I learned two things in my conversation with
someone at Cygnus: (1) they aren't interested in supporting anything but
large development shops; and (2) you can't build the gcc toolchain using
the Cygwin32 tools.

I've switched to a FreeBSD box and have had no difficulty getting the
toolchain to build.  Make sure you install gnu make, since the berkeley
make that comes with FreeBSD won't correctly build the toolchain.



>-----Original Message-----
>From:	Geoffroy Montel []
>Sent:	Thursday, February 12, 1998 5:44 AM
>Subject:	Troubles compiling GNU Binutils
>I'm new on the list so greetings to everyone.
>I have to port RTEMS for a MC68340.
>So I got RTEMS doc and tried to install it.
>I run a PC under Cygwin 32 which successfully installed.
>I download binutils2.8.1, gcc2.8.0 and patches.
>But, when I try to cross-compile binutils 2.8.1, it
>fails. Here is what I get:
>$ cd binutils-2.8.1
>$CC=gcc ./configure --target=m68k-coff --with-gnu-as --with-gnu-ld
>--enable-targets=all --prefix=/mydir --exec-prefix=/mydir
>$make CC="gcc" CFLAGS="-O4 -g"
>$make CC="gcc" CFLAGS="-O4 -g" install
>    /binutils-2.8.1/ -c -m 644 $f /gcc/lib/$tf; \
>    ranlib /gcc/lib/$tf; \
>    chmod a-x /gcc/lib/$tf; \
>  fi; \
>for i in size objdump ar strings ranlib c++filt
>objcopy addr2li
>ne    ; do \
>  /binutils-2.8.1/ -c -t='-e s,^,m68k-coff-, ' $i
>/gcc/bin/`echo $i |
>sed -e 's/.new//'` ; \
>cp: size: No such file or directory
>cp: objdump: No such file or directory
>cp: ar: No such file or directory
>cp: strings: No such file or directory
>cp: ranlib: No such file or directory
>cp: c++filt: No such file or directory
>cp: objcopy: No such file or directory
>cp: addr2line: No such file or directory
>make: *** [install] Error 1
>make: *** [install-binutils] Error 2
>Any help would be *very* appreciated!
>Thanks in advance
>Get your free address at

More information about the crossgcc mailing list