This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-bugs] [Bug 369] New: make world gives compilation errors with gcc 4

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 369] New: make world gives compilation errors with gcc 4.0.0
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Fri, 28 Oct 2005 15:00:16 +0000
Delivery-date: Fri, 28 Oct 2005 15:00:20 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx

           Summary: make world gives compilation errors with gcc 4.0.0
           Product: Xen
           Version: 2.0
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unspecified
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: jblom@xxxxxxxxxxxxxx

1. When running "make world" at "Fedora Core release 4 (Stentz)" using gcc
version "4.0.0 20050519 (Red Hat 4.0.0-8)" at a dual Xeon processor system the
compilation failes when including line 175

    extern struct tss_struct init_tss[NR_CPUS];

from file "./xen/include/asm/processor.h" with the message

    error: array type has incomplete element type

The reason is that "struct tss_struct" is defined later in that file. For gcc 4
it is an error to have an array of still undefined struct elements while gcc 3.X
does accept this. The problem can be solved by changing line 175 into

    extern struct tss_struct *init_tss

or moving this line after the definition of "tss_struct"

2. There are at various places mismatches between function arguments where
"unsigned char *" is expected and "char *" is supplied or reversely. With
options "-Wall -error" this is leading to compiler failures at gcc 4, while gcc
3.X is accepting these mismatches.

Configure bugmail: 
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Xen-bugs mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 369] New: make world gives compilation errors with gcc 4.0.0, bugzilla-daemon <=