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

Bug#643639: libc6-dev: #include <errno.h> in C cannot compile with -m32 on x86_64



Le 28/09/2011 16:21, Didier Trosset a écrit :
> On 09/28/2011 03:47 PM, Aurelien Jarno wrote:
>> On Wed, Sep 28, 2011 at 11:25:00AM +0200, Didier Trosset wrote:
>>> Package: libc6-dev
>>> Version: 2.13-21
>>> Severity: important
>>>
>>>
>>>
>>> -- System Information:
>>> Debian Release: wheezy/sid
>>>    APT prefers testing
>>>    APT policy: (700, 'testing')
>>> Architecture: amd64 (x86_64)
>>>
>>> Kernel: Linux 3.0.0-1-amd64 (SMP w/8 CPU cores)
>>> Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
>>> Shell: /bin/sh linked to /bin/dash
>>>
>>> Versions of packages libc6-dev depends on:
>>> ii  libc-dev-bin    2.13-21
>>> ii  libc6           2.13-21
>>> ii  linux-libc-dev  3.0.0-3
>>>
>>> Versions of packages libc6-dev recommends:
>>> ii  gcc [c-compiler]      4:4.6.1-2
>>> ii  gcc-4.4 [c-compiler]  4.4.6-8
>>> ii  gcc-4.5 [c-compiler]  4.5.3-9
>>> ii  gcc-4.6 [c-compiler]  4.6.1-4
>>>
>>> Versions of packages libc6-dev suggests:
>>> ii  glibc-doc<none>
>>> ii  manpages-dev  3.32-0.2
>>>
>>> -- no debconf information
>>>
>>>
>>> With a simple program as the following:
>>>
>>> #include<errno.h>
>>>
>>> int main()
>>> {
>>>      return 0;
>>> }
>>>
>>>
>>> Compiling to 32 bits target with:
>>>
>>> gcc -m32 test.c
>>>
>>> results in the following error:
>>>
>>> In file included from /usr/include/bits/errno.h:25:0,
>>>                   from /usr/include/errno.h:36,
>>>                   from test-errno.c:1:
>>> /usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
>>> compilation terminated.
>>>
>>
>> Your gcc is too old, you need version 4.6.1-5 or later.
>>
> 
> Debian packages only offer 4.6.1-4 in wheezy/testing.
> unstable/sid offers version 4.6.1-13.
> 
> As I got ALL my packages with apt-get from testing, there's for sure a 
> mismatch somewhere between the available gcc version and the available 
> libc-for-32-bits version.

Neither linux/errno.h nor asm/errno.h are a glibc file, so it's clearly
not a glibc file. They are both linux-libc-dev files if you want to
report the bug there.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net



Reply to: