I'm having problems building gcc (c,c++, and FORTRAN compilers
chosen) under Cygwin. I downloaded gcc-4.1.2.tar.gz. I gunzipped it
to a directory, and untarred that. I created a subdirectory obj and
changed to that directory. (All this from within Cygwin.)
I ran
../gcc/configure -enable-languages=c,c++,fortran.
This ran successfully. I then attempted to build the compilers using:
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap
Here's most of the output - it fails trying to build libiberty.a.
Note that there is no directory
../build-i686-pc-cygwin/ in my system. I suppose configure has made a
mistake somewhere in expecting to find such a directory. I'd
appreciate any suggestions or ideas on who to ask!!
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
make[1]: Entering directory `/cygdrive/c/gcc-4.1.2/obj'
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h config/i386/xm-cygwin.h" DEFINES="" \
/bin/sh ../gcc/mkconfig.sh config.h
TARGET_CPU_DEFAULT="" \
HEADERS="options.h config/i386/i386.h config/i386/unix.h
config/i386/bsd
.h config/i386/gas.h config/dbxcoff.h config/i386/cygming.h
config/i386/cygwin.h
defaults.h" DEFINES="" \
/bin/sh ../gcc/mkconfig.sh tm.h
gawk -f ../gcc/opt-gather.awk ../gcc/fortran/lang.opt ../gcc/c.opt
../gcc/common
.opt ../gcc/config/i386/i386.opt ../gcc/config/i386/cygming.opt >
tmp-optionlist
/bin/sh ../gcc/../move-if-change tmp-optionlist optionlist
echo timestamp > s-options
gawk -f ../gcc/opt-functions.awk -f ../gcc/opth-gen.awk \
< optionlist > tmp-options.h
/bin/sh ../gcc/../move-if-change tmp-options.h options.h
echo timestamp > s-options-h
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h config/i386/xm-cygwin.h" DEFINES="" \
/bin/sh ../gcc/mkconfig.sh bconfig.h
gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W
-Wall -Wwr
ite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmi
ssing-format-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../gcc
-I../gcc/build -I../gcc/../include -I../gcc/../libcpp/include -o
build/genmo
des.o ../gcc/genmodes.c
gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W
-Wall -Wwr
ite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmi
ssing-format-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../gcc
-I../gcc/build -I../gcc/../include -I../gcc/../libcpp/include -o
build/error
s.o ../gcc/errors.c
make[1]: *** No rule to make target
`../build-i686-pc-cygwin/libiberty/libiberty
.a', needed by `build/genmodes.exe'. Stop.
make[1]: Leaving directory `/cygdrive/c/gcc-4.1.2/obj'
make: *** [stage1_build] Error 2