Build Errors building MIPS-ELF-GCC

JonY jon_y@users.sourceforge.net
Fri Jun 3 00:52:00 GMT 2011


On 6/3/2011 06:32, sweinberger wrote:
> 
> Hi,
> 
> I am attempting to build the mips-elf gcc tool chain.
> 
> I already have binutils built, so no issues there.
> 
> The steps call for:
> 
> 1. download GCC (e.g.
> ftp://ftp.gnu.org/gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2).  I downloaded the
> latest version 4.6.0 rather than 3.4.6, so maybe that is the problem.
> 
> 2. extract, which I did to C:\cygwin\usr\local\gcc-4.6.0
> 
> 3. makdir  /usr/local/build-mips-elf-gcc
> 
> 4. cd  /usr/local/build-mips-elf-gcc
> 
> 5. /usr/local/gcc-4.6.0/configure --target=mips-elf --disable-nls
> --with-stabs --disable-install-libiberty --disable-install-libbfd
> --disable-dependency-tracking --enable-64-bit-bfd --enable-languages=c
> --with-gnu-as --with-gnu-ld --disable-libssp --disable-libiberty
> 
> 6. make
> 
> I receive the following error:
> 
> config.status: creating Makefile
> config.status: creating mkheaders.almost
> config.status: creating config.h
> make[2]: Entering directory `/usr/local/build-mips-elf-gcc/fixincludes'
> gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
> -Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I.
> -I/usr/local/gcc-4.6.0/fixincludes -I../include -
> I/usr/local/gcc-4.6.0/fixincludes/../include
> /usr/local/gcc-4.6.0/fixincludes/fixincl.c
> gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
> -Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I.
> -I/usr/local/gcc-4.6.0/fixincludes -I../include -
> I/usr/local/gcc-4.6.0/fixincludes/../include
> /usr/local/gcc-4.6.0/fixincludes/fixtests.c
> gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
> -Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I.
> -I/usr/local/gcc-4.6.0/fixincludes -I../include -
> I/usr/local/gcc-4.6.0/fixincludes/../include
> /usr/local/gcc-4.6.0/fixincludes/fixfixes.c
> gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
> -Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I.
> -I/usr/local/gcc-4.6.0/fixincludes -I../include -
> I/usr/local/gcc-4.6.0/fixincludes/../include
> /usr/local/gcc-4.6.0/fixincludes/server.c
> gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
> -Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I.
> -I/usr/local/gcc-4.6.0/fixincludes -I../include -
> I/usr/local/gcc-4.6.0/fixincludes/../include
> /usr/local/gcc-4.6.0/fixincludes/procopen.c
> gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
> -Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I.
> -I/usr/local/gcc-4.6.0/fixincludes -I../include -
> I/usr/local/gcc-4.6.0/fixincludes/../include
> /usr/local/gcc-4.6.0/fixincludes/fixlib.c
> gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
> -Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I.
> -I/usr/local/gcc-4.6.0/fixincludes -I../include -
> I/usr/local/gcc-4.6.0/fixincludes/../include
> /usr/local/gcc-4.6.0/fixincludes/fixopts.c
> make[2]: *** No rule to make target `../libiberty/libiberty.a', needed by
> `full-stamp'.  Stop.
> make[2]: Leaving directory `/usr/local/build-mips-elf-gcc/fixincludes'
> make[1]: *** [all-fixincludes] Error 2
> make[1]: Leaving directory `/usr/local/build-mips-elf-gcc'
> make: *** [all] Error 2
> 
> I included disable-install-libiberty, so should not gcc build?
> 
> How to fix the error?
> 
> Thanks in advance,
> 
> Sarah

You disabled it with --disable-libiberty, gcc depends on it. This is not
a Cygwin issue, use the gcc-help mailing list instead.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xED74C077.asc
Type: application/pgp-keys
Size: 1685 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110603/f6baa227/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110603/f6baa227/attachment.sig>


More information about the Cygwin mailing list