public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/17462] New: [avr] Cannot compile fixincl.c for avr target on windows host
@ 2004-09-13 18:58 ericw at evcohs dot com
  2004-09-13 19:06 ` [Bug other/17462] Cannot compile fixincl.c on windows hosts pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ericw at evcohs dot com @ 2004-09-13 18:58 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/17462] Cannot compile fixincl.c on windows hosts
  2004-09-13 18:58 [Bug target/17462] New: [avr] Cannot compile fixincl.c for avr target on windows host ericw at evcohs dot com
@ 2004-09-13 19:06 ` pinskia at gcc dot gnu dot org
  2004-10-21 21:30 ` aaronavay62 at aaronwl dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-13 19:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-13 19:06 -------
Technically this is a host problem, which means that you cannot any cross compiler on mygwin at all.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |other
 GCC target triplet|avr-*-*                     |
           Keywords|                            |build
            Summary|[avr] Cannot compile        |Cannot compile fixincl.c on
                   |fixincl.c for avr target on |windows hosts
                   |windows host                |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17462


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/17462] Cannot compile fixincl.c on windows hosts
  2004-09-13 18:58 [Bug target/17462] New: [avr] Cannot compile fixincl.c for avr target on windows host ericw at evcohs dot com
  2004-09-13 19:06 ` [Bug other/17462] Cannot compile fixincl.c on windows hosts pinskia at gcc dot gnu dot org
@ 2004-10-21 21:30 ` aaronavay62 at aaronwl dot com
  2004-10-21 21:34 ` aaronavay62 at aaronwl dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: aaronavay62 at aaronwl dot com @ 2004-10-21 21:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From aaronavay62 at aaronwl dot com  2004-10-21 21:30 -------
I think this is actually a duplicate of PR17832, but I don't appear to have the
ability to alter the state of bugs.  Can someone mark this as a duplicate?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |17832


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17462


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/17462] Cannot compile fixincl.c on windows hosts
  2004-09-13 18:58 [Bug target/17462] New: [avr] Cannot compile fixincl.c for avr target on windows host ericw at evcohs dot com
  2004-09-13 19:06 ` [Bug other/17462] Cannot compile fixincl.c on windows hosts pinskia at gcc dot gnu dot org
  2004-10-21 21:30 ` aaronavay62 at aaronwl dot com
@ 2004-10-21 21:34 ` aaronavay62 at aaronwl dot com
  2004-10-22  5:21 ` aaronavay62 at aaronwl dot com
  2004-10-27 20:18 ` aaronavay62 at aaronwl dot com
  4 siblings, 0 replies; 6+ messages in thread
From: aaronavay62 at aaronwl dot com @ 2004-10-21 21:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aaronavay62 at aaronwl dot
                   |                            |com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17462


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/17462] Cannot compile fixincl.c on windows hosts
  2004-09-13 18:58 [Bug target/17462] New: [avr] Cannot compile fixincl.c for avr target on windows host ericw at evcohs dot com
                   ` (2 preceding siblings ...)
  2004-10-21 21:34 ` aaronavay62 at aaronwl dot com
@ 2004-10-22  5:21 ` aaronavay62 at aaronwl dot com
  2004-10-27 20:18 ` aaronavay62 at aaronwl dot com
  4 siblings, 0 replies; 6+ messages in thread
From: aaronavay62 at aaronwl dot com @ 2004-10-22  5:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From aaronavay62 at aaronwl dot com  2004-10-22 05:21 -------


*** This bug has been marked as a duplicate of 17832 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17462


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug other/17462] Cannot compile fixincl.c on windows hosts
  2004-09-13 18:58 [Bug target/17462] New: [avr] Cannot compile fixincl.c for avr target on windows host ericw at evcohs dot com
                   ` (3 preceding siblings ...)
  2004-10-22  5:21 ` aaronavay62 at aaronwl dot com
@ 2004-10-27 20:18 ` aaronavay62 at aaronwl dot com
  4 siblings, 0 replies; 6+ messages in thread
From: aaronavay62 at aaronwl dot com @ 2004-10-27 20:18 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 17462 depends on bug 17832, which changed state.

Bug 17832 Summary: [4.0 Regression] Bootstrap broken by fixincludes failures
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17832

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17462


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-10-27 20:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-13 18:58 [Bug target/17462] New: [avr] Cannot compile fixincl.c for avr target on windows host ericw at evcohs dot com
2004-09-13 19:06 ` [Bug other/17462] Cannot compile fixincl.c on windows hosts pinskia at gcc dot gnu dot org
2004-10-21 21:30 ` aaronavay62 at aaronwl dot com
2004-10-21 21:34 ` aaronavay62 at aaronwl dot com
2004-10-22  5:21 ` aaronavay62 at aaronwl dot com
2004-10-27 20:18 ` aaronavay62 at aaronwl dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).