c/3675: gcc-3.0 fails to build linux-x-cygwin cross-compiler

alaric@babcom.com alaric@babcom.com
Fri Jul 13 04:36:00 GMT 2001


>Number:         3675
>Category:       c
>Synopsis:       gcc-3.0 fails to build linux-x-cygwin cross-compiler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 13 04:36:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Mystic Zen Biker Twigboy
>Release:        3.0
>Organization:
Babylon Communications
>Environment:
System: Linux babylon5 2.4.6-ac2 #2 Sat Jul 7 18:23:45 PDT 2001 i586 unknown
Architecture: i586

	
host: i586-pc-linux-gnu
build: i586-pc-linux-gnu
target: i586-pc-linux-gnu
configured with: ../configure --prefix=/usr --with-gnu-as --with-gnu-ld --enable-shared
>Description:

gcc-3.0 will not build an i686-pc-linux-gnulibc2.1-x-i686-pc-cygwin
cross-compiler because FILE is not properly defined in
gcc-3.0/gcc/config/i386/cygwin.h, because __need_FILE is not defined
before including stdio.h.

>How-To-Repeat:
	
>Fix:

(ignore the timestamps, I fixed first then generated the patch)


*** gcc-3.0/gcc/config/i386/cygwin.h.orig       Fri Jul 13 04:25:46 2001
--- gcc-3.0/gcc/config/i386/cygwin.h    Fri Jul 13 04:22:31 2001
***************
*** 26,31 ****
--- 26,32 ----
  #define SDB_DEBUGGING_INFO 
  #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
  
+ #define __need_FILE
  #include <stdio.h>    /* Required for FILE use below */
  #include "i386/gas.h"
  #include "dbxcoff.h"

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list