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

Bug#637000: libc6-dev-amd64: uintptr_t is a 32-bit type



Package: libc6-dev-amd64
Version: 2.13-14
Severity: serious

On i386 (actually with "linux32 pbuilder login" into a 32-bit pbuilder chroot
on amd64), I get the following issue:

root@frobozz:/tmp# cat intptr_t_test.c 
#include <inttypes.h>
#include <stdio.h>

int main() {
    printf("sizeof(uintptr_t) = %lu\n", (unsigned long) sizeof(uintptr_t));
    return 0;
}
root@frobozz:/tmp# gcc -m32 -o intptr_t_test_32 intptr_t_test.c
root@frobozz:/tmp# ./intptr_t_test_32 
sizeof(uintptr_t) = 4
root@frobozz:/tmp# gcc -m64 -o intptr_t_test_64 intptr_t_test.c
root@frobozz:/tmp# ./intptr_t_test_64 
sizeof(uintptr_t) = 4

On amd64 with libc6-dev-i386, the same test passes, returning 4 and 8
respectively.

Marking this as serious because it's currently causing at least gcc-4.5 and
gcc-4.6 to FTBFS on i386 (haven't checked gcc-4.4):

...
cc1: warnings being treated as errors
In file included from ../../../../src/libgomp/libgomp.h:50:0,
                 from ../../../../src/libgomp/alloc.c:29:
../../../../src/libgomp/config/linux/ptrlock.h: In function 'gomp_ptrlock_get':
../../../../src/libgomp/config/linux/ptrlock.h:42:7: error: cast from pointer to integer of different size
...
-- 
Daniel Schepler



Reply to: