This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Help needed to buid GCC for NEC V850
- From: Kai Ruottu <kai dot ruottu at wippies dot com>
- To: gowrisankar loganathan <lgowris at hotmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 16 Mar 2009 16:28:23 +0200
- Subject: Re: Help needed to buid GCC for NEC V850
- References: <SNT102-W785CBEFA2FEF340580C357B49B0@phx.gbl>
gowrisankar loganathan wrote:
$ make
now I got the error as
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../Gcc_Source/gcc-4.3.3/libiberty/../incl
ude -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic ../../Gcc_Source/gc
c-4.3.3/libiberty/pex-unix.c -o pex-unix.o
<snip>
./../Gcc_Source/gcc-4.3.3/libiberty/pex-unix.c: In function `pex_unix_fdopenw':
./../Gcc_Source/gcc-4.3.3/libiberty/pex-unix.c:518: warning: implicit declarati
on of function `fcntl'
./../Gcc_Source/gcc-4.3.3/libiberty/pex-unix.c:518: error: `F_SETFD' undeclared
(first use in this function)
./../Gcc_Source/gcc-4.3.3/libiberty/pex-unix.c:518: error: (Each undeclared ide
ntifier is reported only once
./../Gcc_Source/gcc-4.3.3/libiberty/pex-unix.c:518: error: for each function it
appears in.)
./../Gcc_Source/gcc-4.3.3/libiberty/pex-unix.c:518: error: `FD_CLOEXEC' undecla
red (first use in this function)
Can any one help me to fix the issue.
Just look in which standard C headers for Cygwin these are now
declared, if in any... Then why this headers wasn't seen in the
libiberty/configure. The '$build/libiberty/config.log' should
give some hint...
My old Cygwin toolchain had these in 'sys/fcntl.h'...