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

Hong Xu xuhdev at gmail.com
Mon Sep 19 02:31:45 UTC 2011


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  python        2.6.7-3

clang suggests no packages.

-- no debconf information





More information about the Pkg-llvm-team mailing list