This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17462] New: [avr] Cannot compile fixincl.c for avr target on windows host
- From: "ericw at evcohs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2004 18:58:27 -0000
- Subject: [Bug target/17462] New: [avr] Cannot compile fixincl.c for avr target on windows host
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Building 3.4.2 for the avr target and mingw32 host results in this:
-------------------------------------------------------------------------
In file included from ../../../gcc-3.4.2/gcc/fixinc/fixincl.c:105:
../../../gcc-3.4.2/gcc/fixinc/fixincl.x:76: warning: string length `552' is
greater than the length `509' ISO C89 compilers are required to support
../../../gcc-3.4.2/gcc/fixinc/fixincl.x:121: warning: string length `525' is
greater than the length `509' ISO C89 compilers are required to support
../../../gcc-3.4.2/gcc/fixinc/fixincl.x:165: warning: string length `808' is
greater than the length `509' ISO C89 compilers are required to support
../../../gcc-3.4.2/gcc/fixinc/fixincl.x:251: warning: string length `5139' is
greater than the length `509' ISO C89 compilers are required to support
../../../gcc-3.4.2/gcc/fixinc/fixincl.x:2154: warning: string length `729' is
greater than the length `509' ISO C89 compilers are required to support
../../../gcc-3.4.2/gcc/fixinc/fixincl.x:6316: warning: string length `575' is
greater than the length `509' ISO C89 compilers are required to support
../../../gcc-3.4.2/gcc/fixinc/fixincl.c: In function `initialize':
../../../gcc-3.4.2/gcc/fixinc/fixincl.c:316: error: `SIGQUIT' undeclared (first
use in this function)
../../../gcc-3.4.2/gcc/fixinc/fixincl.c:316: error: (Each undeclared identifier
is reported only once
../../../gcc-3.4.2/gcc/fixinc/fixincl.c:316: error: for each function it appears
in.)
../../../gcc-3.4.2/gcc/fixinc/fixincl.c:323: error: `SIGALRM' undeclared (first
use in this function)
../../../gcc-3.4.2/gcc/fixinc/fixincl.c: In function `internal_fix':
../../../gcc-3.4.2/gcc/fixinc/fixincl.c:808: warning: implicit declaration of
function `pipe'
../../../gcc-3.4.2/gcc/fixinc/fixincl.c:816: warning: implicit declaration of
function `fork'
../../../gcc-3.4.2/gcc/fixinc/fixincl.c:845: warning: implicit declaration of
function `sleep'
../../../gcc-3.4.2/gcc/fixinc/fixincl.c:860: warning: implicit declaration of
function `fcntl'
../../../gcc-3.4.2/gcc/fixinc/fixincl.c:860: error: `F_DUPFD' undeclared (first
use in this function)
../../../gcc-3.4.2/gcc/fixinc/fixincl.c: In function `process':
../../../gcc-3.4.2/gcc/fixinc/fixincl.c:1388: warning: implicit declaration of
function `wait'
make[2]: *** [fixincl.o] Error 1
make[2]: Leaving directory `/cygdrive/c/avrdev/gcc/build/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory `/cygdrive/c/avrdev/gcc/build/gcc'
make: *** [all-gcc] Error 2
-------------------------------------------------------------------------
This is due to explicit Unix function calls in the source code, similar to the
problems with building collect2 in bug #14316.
This is reported against 3.4.2 but it is known to not build for all 3.4.x, and
3.3.x. I am unsure whether it ever worked to begin with.
In taking a look at what fixinc does, I'm not entirely sure that fixinc is even
necessary for the avr target. To work around this, I've been using the patch
below to put the avr target in the "do not build" list in mkfixinc.sh with good
results.
--- gcc/fixinc/mkfixinc.sh 2003-10-24 11:47:51.000000000 -0600
+++ gcc/fixinc/mkfixinc.sh 2004-03-22 10:00:47.493625600 -0700
@@ -37,6 +37,7 @@
case $machine in
alpha*-dec-*vms* | \
arm-semi-aof | \
+ avr-*-* | \
hppa1.1-*-osf* | \
hppa1.1-*-bsd* | \
i370-*-openedition | \
--
Summary: [avr] Cannot compile fixincl.c for avr target on windows
host
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ericw at evcohs dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: mingw32
GCC target triplet: avr-*-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17462