NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/43320: build.sh fails on Cygwin 1.7.2
The following reply was made to PR toolchain/43320; it has been noted by GNATS.
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: h-kenken%dg7.so-net.ne.jp@localhost, toolchain-manager%NetBSD.org@localhost,
gnats-admin%NetBSD.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: toolchain/43320: build.sh fails on Cygwin 1.7.2
Date: Tue, 28 Sep 2010 00:05:34 +0900
> I've confirmed "error: two or more data types in declaration specifiers"
> in src/tools/rpcgen occurs only when Cygwin is setup to use gcc-4.3.4.
> It doesn't happen with gcc-3.4.4. (gcc3 doesn't check it?)
Not sure what's going on, but gcc-3.4.4 doesn't complain about
"macro in typedef statement" in headers in stdinc path:
--- with gcc 3.4.4 ---
% cc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: ... [snip]
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
% cat > a.c
#define u_quad_t unsigned long long
#include <rpc/types.h>
% cc -c a.c
% mkdir rpc
% cp /usr/include/rpc/types.h rpc
% cc -I. -c a.c
In file included from a.c:2:
./rpc/types.h:49: warning: useless keyword or type name in empty declaration
./rpc/types.h:49: warning: empty declaration
%
---
--- with gcc 4.3.4 ---
% cc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ...[snip]
Thread model: posix
gcc version 4.3.4 20090804 (release) 1 (GCC)
% cat > a.c
#define u_quad_t unsigned long long
#include <rpc/types.h>
% cc -c a.c
In file included from a.c:2:
/usr/include/rpc/types.h:49: error: two or more data types in declaration
specifiers
/usr/include/rpc/types.h:49: error: two or more data types in declaration
specifiers
/usr/include/rpc/types.h:49: error: two or more data types in declaration
specifiers
%
---
Anyway, my patch (adding <rpc/types.h> in u_quad_t check) works
even with gcc 4.3.4.
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index