AVR GCC 4.1.1
avr-ada 0.4.1
Compiler is patched using all 4.1 patches in the
avr-ada 0.4.1 release download.
MINGW GCC version 3.4.2.
After building libgcov, there are errors in compiling
gnatlink.adb:
make[3]: Leaving directory /c/avrdev/gcc/build/gcc'
echo timestamp > stmp-multilib
if [ -f gnatbind.exe ] ; \
then \
mv gnatbind.exe gnatbind-cross.exe; \
fi
if [ -f gnatbl.exe ] ; \
then \
mv gnatbl.exe gnatbl-cross.exe; \
fi
if [ -f gnatchop.exe ] ; \
then \
mv gnatchop.exe gnatchop-cross.exe; \
fi
if [ -f gnat.exe ] ; \
then \
mv gnat.exe gnat-cross.exe; \
fi
if [ -f gnatkr.exe ] ; \
then \
mv gnatkr.exe gnatkr-cross.exe; \
fi
if [ -f gnatlink.exe ] ; \
then \
mv gnatlink.exe gnatlink-cross.exe; \
fi
if [ -f gnatls.exe ] ; \
then \
mv gnatls.exe gnatls-cross.exe; \
fi
if [ -f gnatmake.exe ] ; \
then \
mv gnatmake.exe gnatmake-cross.exe; \
fi
if [ -f gnatname.exe ] ; \
then \
mv gnatname.exe gnatname-cross.exe; \
fi
if [ -f gnatprep.exe ] ; \
then \
mv gnatprep.exe gnatprep-cross.exe; \
fi
if [ -f gnatxref.exe ] ; \
then \
mv gnatxref.exe gnatxref-cross.exe; \
fi
if [ -f gnatfind.exe ] ; \
then \
mv gnatfind.exe gnatfind-cross.exe; \
fi
if [ -f gnatclean.exe ] ; \
then \
mv gnatclean.exe gnatclean-cross.exe; \
fi
if [ -f gnatsym.exe ] ; \
then \
mv gnatsym.exe gnatsym-cross.exe; \
fi
if [ -f gprmake.exe ] ; \
then \
mv gprmake.exe gprmake-cross.exe; \
fi
(SHLIB_LINK='' \
SHLIB_MULTILIB=''; \
gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I.
-I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/.
-I../../gcc-4.1.1/gcc/../include
-I../../gcc-4.1.1/gcc/../libcpp/include
-DSTANDARD_STARTFILE_PREFIX=\"../../../\"
-DSTANDARD_EXEC_PREFIX=\"/c/WinAVR/lib/gcc/\"
-DSTANDARD_LIBEXEC_PREFIX=\"/c/WinAVR/libexec/gcc/\"
-DDEFAULT_TARGET_VERSION=\"4.1.1\"
-DDEFAULT_TARGET_MACHINE=\"avr\"
-DSTANDARD_BINDIR_PREFIX=\"/c/WinAVR/bin/\"
-DTOOLDIR_BASE_PREFIX=\"../../../../\"
test
"X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo
"-DENABLE_SHARED_LIBGCC"test "X${SHLIB_MULTILIB}" =
"X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"\
-I. -I. -I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/.
-I../../gcc-4.1.1/gcc/../include
-I../../gcc-4.1.1/gcc/../libcpp/include
../../gcc-4.1.1/gcc/cp/g++spec.c)
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute -DHAVE_CONFIG_H -o g++.exe \
gcc.o g++spec.o intl.o prefix.o version.o
../libcpp/libcpp.a ../libiberty/libiberty.a
rm -f g++-cross.exe
cp g++.exe g++-cross.exe
make[2]: Leaving directory
/c/avrdev/gcc/build/gcc'
mkdir -p -- ./gnattools
Configuring in ./gnattools
configure: creating cache ./config.cache
checking for a BSD-compatible install...
/usr/bin/install -c
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... avr-unknown-none
checking whether ln -s works... yes
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
make[2]: Entering directory `/c/avrdev/gcc/build/gnattools'
rm -rf ../gcc/ada/tools
mkdir -p ../gcc/ada/tools
(cd ../gcc/ada/tools; ln -s ../sdefault.adb .)
touch ../gcc/stamp-tools
make -C ../gcc/ada/tools -f ../Makefile \
"CC=gcc" "CFLAGS=-g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes " "LDFLAGS="
"ADAFLAGS=-gnatpg -gnata" "INCLUDES=-I. -I.. -I../..
-I/c/avrdev/gcc/gcc-4.1.1/gcc/ada
-I/c/avrdev/gcc/gcc-4.1.1/gcc/ada/../config
-I/c/avrdev/gcc/gcc-4.1.1/gcc/ada/../../include
-I/c/avrdev/gcc/gcc-4.1.1/gcc/ada/.."
"ADA_INCLUDES=-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/../adainclude
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/ -I.
-I/c/avrdev/gcc/gcc-4.1.1/gcc/ada" "exeext=.exe"
"fsrcdir=/c/avrdev/gcc/gcc-4.1.1/gcc/ada"
"srcdir=/c/avrdev/gcc/gcc-4.1.1/gcc/ada"
"GNATMAKE=gnatmake" "GNATLINK=gnatlink"
"GNATBIND=gnatbind" "TOOLSCASE=cross" "LIBGNAT="
INCLUDES="" \
gnatmake-re gnatlink-re
make[3]: Entering directory
/c/avrdev/gcc/build/gcc/ada/tools'
gcc -c -DCROSS_COMPILE -DIN_GCC
echo -g -O2 -W
-Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes |sed -e 's/-pedantic//g' -e
's/-Wtraditional//g'/c/avrdev/gcc/gcc-4.1.1/gcc/ada/link.c \
-o link.o
gnatmake
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/../adainclude
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/ -I.
-I/c/avrdev/gcc/gcc-4.1.1/gcc/ada -u sdefault --GCC="gcc "
gcc -c
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/../adainclude
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/ -I.
-Ic:/avrdev/gcc/gcc-4.1.1/gcc/ada sdefault.adb
gnatmake -c
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/../adainclude
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/ -I.
-I/c/avrdev/gcc/gcc-4.1.1/gcc/ada gnatmake --GCC="gcc
-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -gnatpg -gnata"
gcc -c -I./
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/../adainclude
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/ -I.
-Ic:/avrdev/gcc/gcc-4.1.1/gcc/ada -g -O2 -W -Wall
-Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -gnatpg -gnata -I-
c:/avrdev/gcc/gcc-4.1.1/gcc/ada\gnatmake.adb
gcc -c -I./
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/../adainclude
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/ -I.
-Ic:/avrdev/gcc/gcc-4.1.1/gcc/ada -g -O2 -W -Wall
-Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -gnatpg -gnata -I-
c:/avrdev/gcc/gcc-4.1.1/gcc/ada\gnatvsn.adb
gcc -c -I./
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/../adainclude
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/ -I.
-Ic:/avrdev/gcc/gcc-4.1.1/gcc/ada -g -O2 -W -Wall
-Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -gnatpg -gnata -I-
c:/avrdev/gcc/gcc-4.1.1/gcc/ada\make.adb
ali.ads:187:22: "Restrictions_Info" is undefined (more
references follow)
gnatmake: "c:/avrdev/gcc/gcc-4.1.1/gcc/ada\make.adb"
compilation error
make[3]: *** [gnatmake-re] Error 4
gnatmake -c
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/../adainclude
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/ -I.
-I/c/avrdev/gcc/gcc-4.1.1/gcc/ada gnatlink --GCC="gcc
-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -gnatpg -gnata"
gcc -c -I./
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/../adainclude
-Ic:/mingw/lib/gcc/mingw32/3.4.2/adalib/ -I.
-Ic:/avrdev/gcc/gcc-4.1.1/gcc/ada -g -O2 -W -Wall
-Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -gnatpg -gnata -I-
c:/avrdev/gcc/gcc-4.1.1/gcc/ada\gnatlink.adb
ali.ads:187:22: "Restrictions_Info" is undefined (more
references follow)
gnatmake:
"c:/avrdev/gcc/gcc-4.1.1/gcc/ada\gnatlink.adb"
compilation error
make[3]: *** [gnatlink-re] Error 4
make[3]: Leaving directory
/c/avrdev/gcc/build/gcc/ada/tools'
make[2]: [gnattools-cross] Error 2
make[2]: Target all' not remade because of errors.
make[2]: Leaving directory
/c/avrdev/gcc/build/gnattools'
make[1]: [all-gnattools] Error 2
make[1]: Target all-host' not remade because of errors.
make[1]: Nothing to be done for
all-target'.
make[1]: Leaving directory `/c/avrdev/gcc/build'
make: *** [all] Error 2
Anonymous
Logged In: YES
user_id=717464
Eric wrote:
You need a native gcc-4.1 to create a gcc-4.1 cross-gcc.
Looks like PR21247:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21247
Logged In: NO
Hi Bernd, Rolf,
Then do either of you know of a prebuilt MinGW-based GCC 4.x
Ada compiler?
I see a Cygwin-based compiler on the gnuada project...
Thanks
Eric
Logged In: YES
user_id=717464
Eric, I don't know any prebuilt MinGW-based GCC 4.x
Ada compilers.
Rolf,
do you think its possible to build a MinGW-based cross gcc
from a Cygwin-based gcc (host)?
(Assigned to Rolf, because I can't test on windows right now.)
Logged In: YES
user_id=82572
I managed to build a native gcc-4.2 on mingw and I am
currently building the AVR compiler from the gcc-4.1.1 sources.
Eric (or anybody else who want try building gcc-avr on
MinGW), I can upload the Mingw gcc 4.2 binaries for C and
Ada. Just drop me a note.
Logged In: YES
user_id=82572
I managed to build a native gcc-4.2 on mingw and I am
currently building the AVR compiler from the gcc-4.1.1 sources.
Eric (or anybody else who want try building gcc-avr on
MinGW), I can upload the Mingw gcc 4.2 binaries for C and
Ada. Just drop me a note.
Logged In: YES
user_id=82572
Originator: NO
The build scripts work for gcc-4.2 and I cannot fix it for gcc-4.1 failing to build a native mingw-4.1 Ada compiler.