All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <metgerards@student.han.nl>
To: Jeff Bailey <jbailey@raspberryginger.com>
Cc: grub-devel@gnu.org
Subject: Re: CC not honoured in build system
Date: Sat, 16 Apr 2005 18:24:45 +0200	[thread overview]
Message-ID: <87hdi6d702.fsf@student.han.nl> (raw)
In-Reply-To: <1113657277.5563.6.camel@localhost> (Jeff Bailey's message of "Sat, 16 Apr 2005 09:14:37 -0400")

Jeff Bailey <jbailey@raspberryginger.com> writes:

Hi Jeff,

The right mailinglist for discussing GRUB 2 is grub-devel.  Please
send a CC to Jeff because he might not be subscribed.

> Building grub2 from CVS around April 1st doesn't respect either
> command-line CC settings, or the detected CC from autoconf.  The first
> part of the build goes fine:

[...]

> gcc -Icommands -I./commands -I. -Iinclude -I./include -Wall -W
> -DGRUB_DATADIR=\"/usr/share/grub/powerpc-ieee1275\" -g -O2 -DGRUB_UTIL=1
> -c -o grub_emu-commands_ls.o commands/ls.c
> commands/ls.c: In function ‘grub_ls_list_files’:
> commands/ls.c:107: erreur: invalid storage class for function
> ‘print_files’
> commands/ls.c:115: erreur: invalid storage class for function
> ‘print_files_long’commands/ls.c: In function ‘grub_cmd_ls’:
> commands/ls.c:223: erreur: invalid storage class for function
> ‘grub_ls_print_files’
> make[1]: *** [grub_emu-commands_ls.o] Erreur 1
>
> (I'm doing this because grub fails to build with gcc-4.  It appears to
> be trying to use nested functions or something in some way that gcc-4
> doesn't like.)

It is related to nested functions.  For example there is this nested
function:

static int grub_ls_print_files (const char *filename, int dir)
{
 ...
}

I think this should be:

auto int grub_ls_print_files (const char *filename, int dir);

int grub_ls_print_files (const char *filename, int dir)
{

}

> From looking at the Makefile, it looks like it's using BUILD_CC instead
> of CC (which is set correctly).  I don't speak Ruby, so I can't go any
> further than that.

I have tested this and it seems to be fixed when using my patch:

http://lists.gnu.org/archive/html/grub-devel/2005-04/msg00048.html

When this patch is committed and the build errors are fixed, I will
contact you about it.

Thanks,
Marco




           reply	other threads:[~2005-04-16 16:41 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1113657277.5563.6.camel@localhost>]

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=87hdi6d702.fsf@student.han.nl \
    --to=metgerards@student.han.nl \
    --cc=grub-devel@gnu.org \
    --cc=jbailey@raspberryginger.com \
    /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.