[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#333488: marked as done (linux-kernel-headers: Include of asm/atomic.h is broken when compiling with g++)

Your message dated Thu, 13 Oct 2005 15:32:04 -0400
with message-id <20051013193204.GA20873@nevyn.them.org>
and subject line Closing invalid lkh bug
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 12 Oct 2005 07:08:43 +0000
>From vizcaino_jerome@yahoo.fr Wed Oct 12 00:08:42 2005
Return-path: <vizcaino_jerome@yahoo.fr>
Received: from smtp018.mail.yahoo.com [] 
	by spohr.debian.org with smtp (Exim 3.36 1 (Debian))
	id 1EPajC-00007p-00; Wed, 12 Oct 2005 00:08:42 -0700
Received: (qmail 33882 invoked from network); 12 Oct 2005 07:03:55 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=yahoo.fr;
  b=KFLVvDzwUi4lPK1PAoE0t5wLux5Mnab/j8FHUOTCCQw3BWeoO2itm2eUTP6sc047N3IPS/KaXRXd2Ns1ftpkPuqXj8TYb0XFzSWo+WT/KRE+dvyNWmeZNiZcLQw9o3z/gkVCMALejj0bLckDBFarBqrFMjiXanuXyDe8ZTL3854=  ;
Received: from unknown (HELO grom.homelinux.org) (vizcaino?jerome@ with plain)
  by smtp018.mail.yahoo.com with SMTP; 12 Oct 2005 07:03:54 -0000
From: Jerome Vizcaino <vizcaino_jerome@yahoo.fr>
To: submit@bugs.debian.org
Subject: linux-kernel-headers: Include of asm/atomic.h is broken when compiling with  g++
Date: Wed, 12 Oct 2005 09:04:55 +0200
User-Agent: KMail/1.8.2
MIME-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <[🔎] 200510120904.55576.vizcaino_jerome@yahoo.fr>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.1 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	MIME_QP_DEFICIENT autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: linux-kernel-headers
Version: 2.6.13+0rc3-1.1
Severity: important


Including asm/atomic.h breaks compilation with g++.
The simple example below cannot be compiled using g++ 4, 3.4 or 3.3 and
the error is always the same.

#include <asm/atomic.h>

int main()
 return 0;
=2D- CODE END --

Trying to compile I get the following errors:

/usr/include/asm/system.h:247: error: expected =E2=80=98,=E2=80=99 or =E2=
=80=98...=E2=80=99 before =E2=80=98new=E2=80=99
/usr/include/asm/system.h: In function =E2=80=98long unsigned int
__cmpxchg(volatile void*, long unsigned int, long unsigned int)=E2=80=99:
/usr/include/asm/system.h:250: error: =E2=80=98size=E2=80=99 was not declar=
ed in this
/usr/include/asm/system.h:254: error: expected type-specifier before =E2=80=
/usr/include/asm/system.h:260: error: expected type-specifier before =E2=80=
/usr/include/asm/system.h:266: error: expected type-specifier before =E2=80=
/usr/include/asm/processor.h: In function =E2=80=98void load_esp0(tss_struc=
/usr/include/asm/processor.h:486: error: =E2=80=98unlikely=E2=80=99 was not=
 declared in
this scope

The real thing is that, I could get it compiled using earlier versions
of linux-kernel-headers.

The problem in system.h is quite easy to fix as g++ thinks the function
parameter new is recognized as a keyword. Changing it to new_ (and so on
in the function) solves the problem.
As for the definition of unlikely which is found somewhere in
linux/compiler.h but only if __KERNEL__ is defined. Defining this
manually for compilation creates more problems of redefinitions.

What can I do ?


=2D- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux
Locale: LANG=3Den_US.utf8, LC_CTYPE=3Den_US.utf8 (charmap=3DUTF-8) (ignored=
: LC_ALL=20
set to en_US.utf8)

=2D- no debconf information


Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

Received: (at 333488-done) by bugs.debian.org; 13 Oct 2005 19:32:07 +0000
>From drow@nevyn.them.org Thu Oct 13 12:32:07 2005
Return-path: <drow@nevyn.them.org>
Received: from nevyn.them.org [] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EQ8o9-00042g-00; Thu, 13 Oct 2005 12:32:05 -0700
Received: from drow by nevyn.them.org with local (Exim 4.54)
	id 1EQ8o8-0005RL-49
	for 333488-done@bugs.debian.org; Thu, 13 Oct 2005 15:32:04 -0400
Date: Thu, 13 Oct 2005 15:32:04 -0400
From: Daniel Jacobowitz <drow@false.org>
To: 333488-done@bugs.debian.org
Subject: Closing invalid lkh bug
Message-ID: <20051013193204.GA20873@nevyn.them.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.8i
Delivered-To: 333488-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 

<asm/atomic.h> is not supported for userland use, so I'm closing this bug.

Daniel Jacobowitz
CodeSourcery, LLC

Reply to: