public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: M. Warner Losh <imp@bsdimp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] latest (1.3.1) doesn't compile: files missing
Date: Fri, 18 Jan 2008 18:51:00 -0700 (MST)	[thread overview]
Message-ID: <20080118.185100.1159141701.imp@bsdimp.com> (raw)

There are two missing files from the distribution that prevents uboot
from compiling.

stddef.h is included by a few different things, but can be a blank
file.

stdarg.h is included by a couple of things, and can be a trivial
implementation (attached).

These are both host includes, and likely shouldn't be included at all
in the boot loader code proper.

This is when building the MPC8548CDS config.

I also get link errors on this out of the box:

                cd /pe/imp/u-boot-1.3.1 && powerpc-freebsd-ld -Bstatic -T /pe/imp/u-boot-1.3.1/board/cds/mpc8548cds/u-boot.lds -Ttext 0xfff80000  -n $UNDEF_SYM cpu/mpc85xx/start.o cpu/mpc85xx/resetvec.o \
                        --start-group lib_generic/libgeneric.a board/cds/mpc8548cds/libmpc8548cds.a cpu/mpc85xx/libmpc85xx.a lib_ppc/libppc.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/net/libnet.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/qe/qe.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/usb/libusb.a drivers/video/libvideo.a post/libpost.a post/drivers/libpostdrivers.a post/lib_ppc/libpostppc.a post/lib_ppc/fpu/libpostppcfpu.a common/libcommon.a libfdt/libfdt.a --end-group -L /usr/powerpc-freebsd/usr/lib -lgcc \
                        -Map u-boot.map -o u-boot
cpu/mpc85xx/resetvec.o(.debug_info+0x14): relocation truncated to fit: R_PPC_ADDR32 .resetvec+4
common/libcommon.a(env_flash.o)(.text+0xc4): In function `saveenv':
/pe/imp/u-boot-1.3.1/common/env_flash.c:312: undefined reference to `flash_sect_protect'
common/libcommon.a(env_flash.o)(.text+0xe0):/pe/imp/u-boot-1.3.1/common/env_flash.c:316: undefined reference to `flash_sect_erase'
common/libcommon.a(env_flash.o)(.text+0x130):/pe/imp/u-boot-1.3.1/common/env_flash.c:329: undefined reference to `flash_sect_protect'

Are these to be expected with binutils 2.15 and gcc 4.2.1?

Warner

             reply	other threads:[~2008-01-19  1:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-19  1:51 M. Warner Losh [this message]
2008-01-20  1:07 ` [U-Boot-Users] latest (1.3.1) doesn't compile: files missing Wolfgang Denk
2008-01-20  3:48   ` M. Warner Losh
2008-01-20  9:49     ` Wolfgang Denk
2008-01-20  9:42   ` Wolfgang Denk

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=20080118.185100.1159141701.imp@bsdimp.com \
    --to=imp@bsdimp.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