From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Samuelsson Date: Tue, 11 Aug 2009 23:48:20 +0200 Subject: [U-Boot] "raise" not defined, when compiler uses its own div0 In-Reply-To: <20090811084728.4E968833DBD2@gemini.denx.de> References: <4A810DBC.50805@atmel.com> <20090811084728.4E968833DBD2@gemini.denx.de> Message-ID: <4A81E724.3070205@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk skrev: > Dear Ulf Samuelsson, > > In message <4A810DBC.50805@atmel.com> you wrote: >> When trying to build U-Boot under Buildroot and OpenEmbedded, > > These probably count to the tool chains with "broken" ARM cross > compilers. Maybe, Buildroot is even more broken, if you try to use an external toolchain and I would be surprised if openembedded is better. In the end, noone wants to mess around with one compiler per application so it is better if a small fix to u-boot can be applied. > >> When linking u-boot the linker seems to use the div0 from >> the C compiler libgcc instead of the u-boot div0. > > Try setting USE_PRIVATE_LIBGCC=yes in your envrionment, like > > USE_PRIVATE_LIBGCC=yes make ... I have done two fixes to make it build with openembedded. 1) Define "raise" in libarm/board.c which calls hang. 2) Changes mapi to "-mapi=aapcs-linux" in cpu/arm926ej-s/config.mk Some toolchains want to keep apcs-gnu I guess. > > Best regards, > > Wolfgang Denk > BR Ulf Samuelsson