"Jens Bauer" <j...@bruger.mine.nu> wrote:
> I thought that I would 'get help' from building a Yagarto toolchain
> (as it builds gcc-4.6.0 for ARM), but Yagarto (currently) fails on
> my system; this is because it for some reason reverts to using
> gcc-4.0 instead of gcc-4.2! -I'll try see if I can find the fix and
> report that to Michael.
Something must be seriously wrong then.
I just built a Yagarto (20110429) here. The only thing I needed in
addition to Michael's script was the attached patch, because newlib
fails to build all the crt* stuff for ARMv6-M.
Yagarto uses a slightly different approach: they build all the
additional prerequisites into their `addontools' directory.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
--- newlib-1.19.0/libgloss/arm/configure.in~ 2006-05-10 22:51:40.000000000
+0200
+++ newlib-1.19.0/libgloss/arm/configure.in 2011-09-30 11:57:29.000000000
+0200
@@ -11,7 +11,7 @@
*) AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls
option) ;;
esac], [newlib_may_supply_syscalls=yes])dnl
-if test "x$newlib_may_supply_syscalls" = "xyes"; then
+if test "x$newlib_may_supply_syscalls" = "xyes" -o "x$with_multisubdir" =
"xthumb/v6m"; then
BUILD_CRT0_TRUE='#'
BUILD_CRT0_FALSE=
else
--- newlib-1.19.0/libgloss/arm/configure~ 2008-04-04 23:51:59.000000000
+0200
+++ newlib-1.19.0/libgloss/arm/configure 2011-09-30 11:58:20.000000000
+0200
@@ -1680,7 +1680,7 @@
newlib_may_supply_syscalls=yes
fi
-if test "x$newlib_may_supply_syscalls" = "xyes"; then
+if test "x$newlib_may_supply_syscalls" = "xyes" -o "x$with_multisubdir" =
"xthumb/v6m"; then
BUILD_CRT0_TRUE='#'
BUILD_CRT0_FALSE=
else
--- newlib-1.19.0/libgloss/arm/Makefile.in.orig 2011-09-30 14:34:11.000000000
+0200
+++ newlib-1.19.0/libgloss/arm/Makefile.in 2011-09-30 14:38:12.000000000
+0200
@@ -53,28 +53,47 @@
@BUILD_CRT0_FALSE@CRT0 =
@BUILD_CRT0_FALSE@CRT0_INSTALL =
-LINUX_CRT0 = linux-crt0.o
-LINUX_BSP = libgloss-linux.a
-LINUX_OBJS = linux-syscalls0.o linux-syscalls1.o
-LINUX_SCRIPTS = linux.specs
-LINUX_INSTALL = install-linux
-
-REDBOOT_CRT0 = redboot-crt0.o
-REDBOOT_OBJS = redboot-syscalls.o
-REDBOOT_SCRIPTS = redboot.ld redboot.specs
-REDBOOT_INSTALL = install-redboot
-
-RDPMON_CRT0 = rdpmon-crt0.o
-RDPMON_BSP = librdpmon.a
-RDPMON_OBJS = syscalls.o libcfunc.o trap.o _exit.o _kill.o
-RDPMON_SCRIPTS = rdpmon.specs
-RDPMON_INSTALL = install-rdpmon
-
-RDIMON_CRT0 = rdimon-crt0.o
-RDIMON_BSP = librdimon.a
-RDIMON_OBJS = $(patsubst %,rdimon-%,$(RDPMON_OBJS))
-RDIMON_SCRIPTS = rdimon.specs
-RDIMON_INSTALL = install-rdimon
+@BUILD_CRT0_TRUE@LINUX_CRT0 = linux-crt0.o
+@BUILD_CRT0_TRUE@LINUX_BSP = libgloss-linux.a
+@BUILD_CRT0_TRUE@LINUX_OBJS = linux-syscalls0.o linux-syscalls1.o
+@BUILD_CRT0_TRUE@LINUX_SCRIPTS = linux.specs
+@BUILD_CRT0_TRUE@LINUX_INSTALL = install-linux
+@BUILD_CRT0_FALSE@LINUX_CRT0 =
+@BUILD_CRT0_FALSE@LINUX_BSP =
+@BUILD_CRT0_FALSE@LINUX_OBJS =
+@BUILD_CRT0_FALSE@LINUX_SCRIPTS =
+@BUILD_CRT0_FALSE@LINUX_INSTALL =
+
+@BUILD_CRT0_TRUE@REDBOOT_CRT0 = redboot-crt0.o
+@BUILD_CRT0_TRUE@REDBOOT_OBJS = redboot-syscalls.o
+@BUILD_CRT0_TRUE@REDBOOT_SCRIPTS = redboot.ld redboot.specs
+@BUILD_CRT0_TRUE@REDBOOT_INSTALL = install-redboot
+@BUILD_CRT0_FALSE@REDBOOT_CRT0 =
+@BUILD_CRT0_FALSE@REDBOOT_OBJS =
+@BUILD_CRT0_FALSE@REDBOOT_SCRIPTS =
+@BUILD_CRT0_FALSE@REDBOOT_INSTALL =
+
+@BUILD_CRT0_TRUE@RDPMON_CRT0 = rdpmon-crt0.o
+@BUILD_CRT0_TRUE@RDPMON_BSP = librdpmon.a
+@BUILD_CRT0_TRUE@RDPMON_OBJS = syscalls.o libcfunc.o trap.o _exit.o _kill.o
+@BUILD_CRT0_TRUE@RDPMON_SCRIPTS = rdpmon.specs
+@BUILD_CRT0_TRUE@RDPMON_INSTALL = install-rdpmon
+@BUILD_CRT0_FALSE@RDPMON_CRT0 =
+@BUILD_CRT0_FALSE@RDPMON_BSP =
+@BUILD_CRT0_FALSE@RDPMON_OBJS =
+@BUILD_CRT0_FALSE@RDPMON_SCRIPTS =
+@BUILD_CRT0_FALSE@RDPMON_INSTALL =
+
+@BUILD_CRT0_TRUE@RDIMON_CRT0 = rdimon-crt0.o
+@BUILD_CRT0_TRUE@RDIMON_BSP = librdimon.a
+@BUILD_CRT0_TRUE@RDIMON_OBJS = $(patsubst %,rdimon-%,$(RDPMON_OBJS))
+@BUILD_CRT0_TRUE@RDIMON_SCRIPTS = rdimon.specs
+@BUILD_CRT0_TRUE@RDIMON_INSTALL = install-rdimon
+@BUILD_CRT0_FALSE@RDIMON_CRT0 =
+@BUILD_CRT0_FALSE@RDIMON_BSP =
+@BUILD_CRT0_FALSE@RDIMON_OBJS =
+@BUILD_CRT0_FALSE@RDIMON_SCRIPTS =
+@BUILD_CRT0_FALSE@RDIMON_INSTALL =
CFLAGS = -g
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list