All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Loïc Minier" <lool@dooz.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] eNET build fails with "invalid application of 'sizeof' to incomplete type 'struct global_data'"
Date: Mon, 20 Dec 2010 12:13:58 +0100	[thread overview]
Message-ID: <20101220111358.GA28532@bee.dooz.org> (raw)

        Hey

 There is now a u-boot package in Debian and Ubuntu and it fails to
 build the i386 eNET board with:
gcc -DDO_DEPS_ONLY \
                -g  -Os   -ffunction-sections  -fvisibility=hidden -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x06000000 -I/build/buildd-u-boot_2010.12~rc3-1-i386-qoDl82/u-boot-2010.12~rc3/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.5/include -pipe  -fno-strict-aliasing -Wstrict-prototypes -mregparm=3 -fomit-frame-pointer  -ffreestanding  -fno-toplevel-reorder  -fno-stack-protector  -mpreferred-stack-boundary=2 -DCONFIG_I386 -D__I386__ -march=i386 -Werror -fno-dwarf2-cfi-asm -Wall -Wstrict-prototypes -fno-stack-protector   \
                -o lib/asm-offsets.s lib/asm-offsets.c -c -S
lib/asm-offsets.c: In function 'main':
lib/asm-offsets.c:25: error: invalid application of 'sizeof' to incomplete type 'struct global_data' 

 The build proceeds much further if I replace sizeof(struct global_data)
 with sizeof(gd_t) in lib/asm-offsets.c.


 I'm not sure which way this should be fixed:
 * add struct global_data to arches which only have gd_t
 * use sizeof(gd_t) in lib/asm-offsets.c instead of sizeof(struct
   global_data)

-- 
Lo?c Minier

             reply	other threads:[~2010-12-20 11:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-20 11:13 Loïc Minier [this message]
2010-12-20 22:27 ` [U-Boot] eNET build fails with "invalid application of 'sizeof' to incomplete type 'struct global_data'" Graeme Russ

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=20101220111358.GA28532@bee.dooz.org \
    --to=lool@dooz.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.