Bug#642053: clang cannot compile C source file successfully if the source includes errno.h

2011-09-19 Thread Sylvestre Ledru
fixed 642053 2.9-10
thanks

Hello,


Le lundi 19 septembre 2011 à 10:31 +0800, Hong Xu a écrit :

 In file included from tmp.c:1:
 In file included from /usr/include/errno.h:36:
 In file included from /usr/include/bits/errno.h:25:
 /usr/include/linux/errno.h:4:10: fatal error: 'asm/errno.h' file not found
 #include asm/errno.h
This bug is fixed in the release currently staying in unstable (I don't
know why it has not transited yet).


Sylvestre





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#642053: clang cannot compile C source file successfully if the source includes errno.h

2011-09-18 Thread Hong Xu
Package: clang
Version: 2.7-3
Severity: important

Dear Maintainer,
*** Please consider answering these questions, where appropiate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
Save the following source code as a C source file:
#include errno.h

int main()
{
}

Then compile it:
$ clang tmp.c


   * What was the outcome of this action?
The compilation failed. Error messages are:

In file included from tmp.c:1:
In file included from /usr/include/errno.h:36:
In file included from /usr/include/bits/errno.h:25:
/usr/include/linux/errno.h:4:10: fatal error: 'asm/errno.h' file not found
#include asm/errno.h
 ^
1 diagnostic generated.


   * What outcome did you expect instead?

The build should be successful.

Besides, gcc could compile it successfully.

*** End of the template - remove these lines ***



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages clang depends on:
ii  libc6   2.13-18  
ii  libffi5 3.0.10~rc10-3
ii  libgcc1 1:4.6.1-4
ii  libstdc++6  4.6.1-4  

Versions of packages clang recommends:
ii  llvm-2.7-dev  2.7-6.2
ii  python2.6.7-3

clang suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org