Re: 5.4: arch/i386/firmware/pcbios/basemem.c:90: error: static declaration of '_allot_base_memory' follows non-static declaration

Marty Connor <[email protected]> Mon, 5 Dec 2005 06:34:17 -0500
Newsgroups gmane.network.etherboot.devel
Message-ID <[email protected]>
On Dec 1, 2005, at 4:45 PM, Geert Stappers wrote:
> On compile attempt I got these messages from CVS Etherboot-5.4:
> ...
> My compiler is
> | $ gcc --version
> | gcc (GCC) 4.0.1 (Debian 4.0.1-2)
> ...
> What should I do to get a clean compile?

For now, use GCC 3.x.  GCC 4 is quite new, and it will take a little  
work to figure out what changes we need to be compatible with it.
Things may change with it for a while, and I suspect the kernel  
hackers are still using GCC 3.

If you want to help figure it out, check the release notes, and see  
what major changes have been made since 3.x, both to command flags  
and C language semantics.

We've been through this before going from GCC 2.x to 3.x, and there  
are mechanisms in the Makefile system to detect the compiler version  
and choose options based on compiler version.

As for the compilation errors, it is probably the case that they got  
stricter in how certain declarations are interpreted.

If you want to figure out how to make Etherboot 5.4.x work with it  
(and probably a new ld), by all means, go ahead. I recommend not  
getting too excited over version 4.0.x though, it will probably be a  
while before it stabilizes to the point where we can rely on it.

Marty

-- 
     Try: http://rom-o-matic.net/ to make Etherboot images instantly.

    Name: Marty Connor
US Mail: Entity Cyber, Inc.; P.O. Box 391827;
          Cambridge, MA 02139; USA
   Voice: (617) 491-6935; Fax: (617) 491-7046
   Email: [email protected]
     Web: http://www.etherboot.org/




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click