This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libffi/40701] New: [4.5 regression] Many libffi tests fail to compile on Tru64 UNIX
- From: "ro at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2009 18:44:01 -0000
- Subject: [Bug libffi/40701] New: [4.5 regression] Many libffi tests fail to compile on Tru64 UNIX
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Between 20090522 and 20090612, many libffi tests started to fail on
alpha-dec-osf4.0f:
FAIL: libffi.call/closure_fn0.c -O0 -W -Wall (test for excess errors)
Excess errors:
In file included from
/vol/gcc/src/gcc-dist/libffi/testsuite/libffi.call/closure_fn0.c:13:0:
/vol/gcc/src/gcc-dist/libffi/testsuite/libffi.call/ffitest.h:6:22: fatal error:
inttypes.h: No such file or directory
compilation terminated.
WARNING: libffi.call/closure_fn0.c -O0 -W -Wall compilation failed to produce
executable
It is clearly wrong to unconditionally use <inttypes.h>. One might consider
using <stdint.h> for in-tree use, which is now always provided by GCC, but this
would be wrong for the external libffi either.
alpha-dec-osf5.1b is not that heavily affected, since it has <inttypes.h>, but
that one unfortunately lacks PRIuPTR:
FAIL: libffi.call/cls_align_pointer.c -O0 -W -Wall (test for excess errors)
Excess errors:
/vol/gcc/src/gcc-dist/libffi/testsuite/libffi.call/cls_align_pointer.c: In
function 'cls_struct_align_fn':
/vol/gcc/src/gcc-dist/libffi/testsuite/libffi.call/cls_align_pointer.c:25:17:
error: expected ')' before 'PRIuPTR'
/vol/gcc/src/gcc-dist/libffi/testsuite/libffi.call/cls_align_pointer.c:29:3:
warning: too few arguments for format
/vol/gcc/src/gcc-dist/libffi/testsuite/libffi.call/cls_align_pointer.c: In
function 'main':
/vol/gcc/src/gcc-dist/libffi/testsuite/libffi.call/cls_align_pointer.c:84:22:
error: expected ')' before 'PRIuPTR'
/vol/gcc/src/gcc-dist/libffi/testsuite/libffi.call/cls_align_pointer.c:84:22:
warning: too few arguments for format
/vol/gcc/src/gcc-dist/libffi/testsuite/libffi.call/cls_align_pointer.c:91:22:
error: expected ')' before 'PRIuPTR'
/vol/gcc/src/gcc-dist/libffi/testsuite/libffi.call/cls_align_pointer.c:91:22:
warning: too few arguments for format
WARNING: libffi.call/cls_align_pointer.c -O0 -W -Wall compilation failed to
produce executable
The definition of PRIuPTR in intl/loadmsgcat.c might be an option here.
--
Summary: [4.5 regression] Many libffi tests fail to compile on
Tru64 UNIX
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libffi
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ro at gcc dot gnu dot org
GCC build triplet: alpha-dec-osf*
GCC host triplet: alpha-dec-osf*
GCC target triplet: alpha-dec-osf*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40701