public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] yaffs2: Fix GCC 4.6 compile warnings
Date: Tue, 9 Oct 2012 13:09:22 -0500	[thread overview]
Message-ID: <1349806162.26044.2@snotra> (raw)
In-Reply-To: <20121006185917.5c983979@lilith> (from albert.u.boot@aribaud.net on Sat Oct  6 11:59:17 2012)

On 10/06/2012 11:59:17 AM, Albert ARIBAUD wrote:
> Hi Anatolij,
> 
> On Sat,  6 Oct 2012 11:31:03 +0200, Anatolij Gustschin <agust@denx.de>
> wrote:
> 
> > Fix:
> > yaffs_guts.c: In function 'yaffs_check_chunk_erased':
> > yaffs_guts.c:324:6: warning: variable 'result' set but not used
> > [-Wunused-but-set-variable]
[snip]
> Tested-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
> 
> This effectively makes VCMA9 and smdk2410 (the two boards which had
> the yaffs warnings) build clean.

It takes care of the warnings, but I still see this:

Configuring for VCMA9 board...
make: *** [u-boot] Error 139
/home/scott/fsl/tc/arm-gentoo-linux-gnu/bin/arm-gentoo-linux-gnu-size:  
./u-boot: File format not recognized
fs/yaffs2/libyaffs2.o: In function `cmd_yaffs_devconfig':
/home/scott/fsl/git/u-boot/upstream/fs/yaffs2/yaffs_uboot_glue.c:187:  
undefined reference to `__udivdi3'
fs/yaffs2/libyaffs2.o: In function `yaffsfs_DoStat':
/home/scott/fsl/git/u-boot/upstream/fs/yaffs2/yaffsfs.c:1606: undefined  
reference to `__divdi3'
   
/home/scott/fsl/tc/arm-gentoo-linux-gnu/bin/arm-gentoo-linux-gnu-ld.bfd:  
BFD (GNU Binutils) 2.21.1 assertion fail  
/var/tmp/portage/cross-arm-gentoo-linux-gnu/binutils-2.21.1-r1/work/binutils-2.21.1/bfd/elf32-arm.c:12478
/bin/bash: line 1:  6558 Segmentation fault      (core dumped)  
/home/scott/fsl/tc/arm-gentoo-linux-gnu/bin/arm-gentoo-linux-gnu-ld.bfd  
-pie -T u-boot.lds -Bstatic -Ttext 0x0 $UNDEF_SYM  
arch/arm/cpu/arm920t/start.o --start-group api/libapi.o  
arch/arm/cpu/arm920t/libarm920t.o  
arch/arm/cpu/arm920t/s3c24x0/libs3c24x0.o arch/arm/lib/libarm.o  
common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o  
drivers/block/libblock.o drivers/dfu/libdfu.o drivers/dma/libdma.o  
drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o  
drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o  
drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o  
drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o  
drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o  
drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o  
drivers/power/libpower.o drivers/rtc/librtc.o  
drivers/serial/libserial.o drivers/spi/libspi.o  
drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.o  
drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o  
drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o  
drivers/usb/ulpi/libusb_ulpi.o drivers/video/libvideo.o  
drivers/watchdog/libwatchdog.o fs/cramfs/libcramfs.o  
fs/ext4/libext4fs.o fs/fat/libfat.o fs/fdos/libfdos.o  
fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o  
fs/yaffs2/libyaffs2.o fs/zfs/libzfs.o lib/libfdt/libfdt.o  
lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/zlib/libz.o  
net/libnet.o post/libpost.o test/libtest.o board/mpl/vcma9/libvcma9.o  
--end-group /home/scott/fsl/git/u-boot/upstream/arch/arm/lib/libgcc.o  
-Map u-boot.map -o u-boot
make: *** [u-boot] Error 139

This is with USE_PRIVATE_LIBGCC=yes and "gcc version 4.6.2 (Gentoo 4.6.2
p1.0, pie-0.4.5)" from Mike Frysinger's toolchain set.

Turning off USE_PRIVATE_LIBGCC produces more errors (lots of hard/soft  
FP
conflicts, undefined "raise", and the same linker segfault).

Is this toolchain expected to work?

-Scott

  reply	other threads:[~2012-10-09 18:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-06  9:31 [U-Boot] [PATCH] yaffs2: Fix GCC 4.6 compile warnings Anatolij Gustschin
2012-10-06 11:02 ` [U-Boot] ELDK4.2 build failures for highbank, omap4_panda and omap4_sdp4430 (was: [PATCH] yaffs2: Fix GCC 4.6 compile warnings) Albert ARIBAUD
2012-10-06 11:34   ` Albert ARIBAUD
2012-10-08 16:35     ` Tom Rini
2012-10-09  5:46       ` [U-Boot] ELDK4.2 build failures for highbank, omap4_panda and omap4_sdp4430 R Sricharan
2012-10-09 16:59         ` Albert ARIBAUD
2012-10-07 18:22   ` [U-Boot] ELDK4.2 build failures for highbank, omap4_panda and omap4_sdp4430 (was: [PATCH] yaffs2: Fix GCC 4.6 compile warnings) Tom Rini
2012-10-06 16:59 ` [U-Boot] [PATCH] yaffs2: Fix GCC 4.6 compile warnings Albert ARIBAUD
2012-10-09 18:09   ` Scott Wood [this message]
2012-10-09 18:51     ` Tom Rini
2012-10-09 19:08       ` Scott Wood
2012-10-09 21:53         ` Tom Rini
2012-10-08 18:47 ` [U-Boot] " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1349806162.26044.2@snotra \
    --to=scottwood@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox