[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bugs #11808] GRUB 0.96 Compilation Error
From: |
anonymous |
Subject: |
[bugs #11808] GRUB 0.96 Compilation Error |
Date: |
Tue, 1 Feb 2005 19:25:02 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11808>
Summary: GRUB 0.96 Compilation Error
Project: GNU GRUB
Submitted by: None
Submitted on: Tue 02/01/2005 at 14:25
Category: Compilation
Severity: Major
Priority: 5 - Normal
Item Group: Action Request
Status: None
Privacy: Public
Assigned to: None
Originator Name: Haren Visavadia
Originator Email: address@hidden
Open/Closed: Open
Release: 0.96
Reproducibility: Every Time
Planned Release:
_______________________________________________________
Details:
Known to work: gcc-3.4-20050121
(ftp://gcc.gnu.org/pub/gcc/snapshots/3.4-20050121/gcc-3.4-20050121.tar.bz2)
Known to fail: gcc-4.0-20050123
(ftp://gcc.gnu.org/pub/gcc/snapshots/4.0-20050123/gcc-4.0-20050123.tar.bz2)
In both case Binutils 2.15 was used
When compiling grub 0.96 using gcc-4.0-20050123, the following compile error
shows:
builtins.c: In function 'blocklist_func':
builtins.c:145: error: invalid storage class for function
'disk_read_blocklist_func'
builtins.c:145: warning: no previous prototype for
'disk_read_blocklist_func'
builtins.c: In function 'color_func':
builtins.c:592: error: invalid storage class for function 'color_number'
builtins.c:592: warning: no previous prototype for 'color_number'
builtins.c: In function 'install_func':
builtins.c:1751: error: invalid storage class for function
'disk_read_savesect_func'
builtins.c:1751: warning: no previous prototype for
'disk_read_savesect_func'
builtins.c:1767: error: invalid storage class for function
'disk_read_blocklist_func'
builtins.c:1767: warning: no previous prototype for
'disk_read_blocklist_func'
builtins.c: In function 'setkey_func':
builtins.c:3499: error: invalid storage class for function 'find_key_code'
builtins.c:3499: warning: no previous prototype for 'find_key_code'
builtins.c:3516: error: invalid storage class for function 'find_ascii_code'
builtins.c:3516: warning: no previous prototype for 'find_ascii_code'
make[2]: *** [pre_stage2_exec-builtins.o] Error 1
make[2]: Leaving directory `/sources/Misc/grub-0.95/stage2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/Misc/grub-0.95'
make: *** [all] Error 2
>From looking at the builtins.c, it appears to related to way grub uses the
keyword static.
Futhermore, gcc-4.0-20050123 is able to compile:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static void print(char * message)
{
printf(message);
printf("\n");
}
int main() {
print("hello world");
return 0;
}
Making this not a gcc-4.0-20050123 bug unless you can convice me.
_______________________________________________________
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11808>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bugs #11808] GRUB 0.96 Compilation Error,
anonymous <=
- [bugs #11808] GRUB 0.96 Compilation Error, Yoshinori K. Okuji, 2005/02/01
- [bugs #11808] GRUB 0.96 Compilation Error, anonymous, 2005/02/02
- [bugs #11808] GRUB 0.96 Compilation Error, Yoshinori K. Okuji, 2005/02/02
- [bugs #11808] GRUB 0.96 Compilation Error, anonymous, 2005/02/03
- [bugs #11808] GRUB 0.96 Compilation Error, Yoshinori K. Okuji, 2005/02/03
- [bugs #11808] GRUB 0.96 Compilation Error, anonymous, 2005/02/04
- [bugs #11808] GRUB 0.96 Compilation Error, Yoshinori K. Okuji, 2005/02/04