public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/48014] New: Bootstrap fails in stage2 on Fortran front end typedef collision.
@ 2011-03-07 13:19 3dw4rd at verizon dot net
  2011-03-07 14:04 ` [Bug target/48014] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: 3dw4rd at verizon dot net @ 2011-03-07 13:19 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Bootstrap fails in stage2 on Fortran front end typedef
                    collision.
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: 3dw4rd@verizon.net


Created attachment 23567
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23567
Replace pointer_t with pointer_type in module.c to allow bootstrap on MachOS.

On powerpc-apple-darwin7.9.0 I geth the following failure on bootstrap at
stage2:

/Users/ed/obj/./prev-gcc/xgcc -B/Users/ed/obj/./prev-gcc/
-B/Users/ed/bin/powerpc-apple-darwin7.9.0/bin/
-B/Users/ed/bin/powerpc-apple-darwin7.9.0/bin/
-B/Users/ed/bin/powerpc-apple-darwin7.9.0/lib/ -isystem
/Users/ed/bin/powerpc-apple-darwin7.9.0/include -isystem
/Users/ed/bin/powerpc-apple-darwin7.9.0/sys-include    -c  -DIN_GCC_FRONTEND -g
-O2 -mdynamic-no-pic -gtoggle -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H -I. -Ifortran
-I../../gcc/gcc -I../../gcc/gcc/fortran -I../../gcc/gcc/../include -I./../intl
-I../../gcc/gcc/../libcpp/include -I/usr/local/include -I/usr/local/include
-I/usr/local/include  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber   
../../gcc/gcc/fortran/module.c -o fortran/module.o
../../gcc/gcc/fortran/module.c:110:1: error: redefinition of typedef
'pointer_t' with different type
/usr/include/mach/vm_types.h:35:26: note: previous declaration of 'pointer_t'
was here


In gcc/fortran/module.c:

typedef enum
{
  P_UNKNOWN = 0, P_OTHER, P_NAMESPACE, P_COMPONENT, P_SYMBOL
}
pointer_t;

In /usr/include/mach/vm_types.h:

typedef vm_offset_t             pointer_t;

Interwebs search on "gfortran error: redefinition of typedef 'pointer_t' with
different type"
Got be to a macports bug tracker where:
"solved replacing all pointer_t in module.c"

The macports people note failure of previous versions too:
"Installation of gcc45 (also gcc43 and gcc44) fails:"

I am attaching an obvious patch for mainline.

Thanks,
Ed Smith-Rowland


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

* [Bug target/48014] Bootstrap fails in stage2 on Fortran front end typedef collision.
  2011-03-07 13:19 [Bug bootstrap/48014] New: Bootstrap fails in stage2 on Fortran front end typedef collision 3dw4rd at verizon dot net
@ 2011-03-07 14:04 ` rguenth at gcc dot gnu.org
  2011-03-07 16:46 ` joseph at codesourcery dot com
  2013-11-22 20:01 ` 3dw4rd at verizon dot net
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-07 14:04 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |powerpc-apple-darwin7.9.0
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011.03.07 14:03:58
          Component|bootstrap                   |target
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-07 14:03:58 UTC ---
/usr/include/mach/vm_types.h

why does this include file get pulled in, and why does it pollute the
user namespace?


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

* [Bug target/48014] Bootstrap fails in stage2 on Fortran front end typedef collision.
  2011-03-07 13:19 [Bug bootstrap/48014] New: Bootstrap fails in stage2 on Fortran front end typedef collision 3dw4rd at verizon dot net
  2011-03-07 14:04 ` [Bug target/48014] " rguenth at gcc dot gnu.org
@ 2011-03-07 16:46 ` joseph at codesourcery dot com
  2013-11-22 20:01 ` 3dw4rd at verizon dot net
  2 siblings, 0 replies; 4+ messages in thread
From: joseph at codesourcery dot com @ 2011-03-07 16:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-03-07 16:45:54 UTC ---
Under POSIX, *_t is part of the implementation namespace rather than the 
user namespace if any POSIX header is included.  (I don't know why this 
particular non-POSIX header ends up getting included.)


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

* [Bug target/48014] Bootstrap fails in stage2 on Fortran front end typedef collision.
  2011-03-07 13:19 [Bug bootstrap/48014] New: Bootstrap fails in stage2 on Fortran front end typedef collision 3dw4rd at verizon dot net
  2011-03-07 14:04 ` [Bug target/48014] " rguenth at gcc dot gnu.org
  2011-03-07 16:46 ` joseph at codesourcery dot com
@ 2013-11-22 20:01 ` 3dw4rd at verizon dot net
  2 siblings, 0 replies; 4+ messages in thread
From: 3dw4rd at verizon dot net @ 2013-11-22 20:01 UTC (permalink / raw)
  To: gcc-bugs

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

Ed Smith-Rowland <3dw4rd at verizon dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Ed Smith-Rowland <3dw4rd at verizon dot net> ---
This platform and OS is dead.


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

end of thread, other threads:[~2013-11-22 20:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-07 13:19 [Bug bootstrap/48014] New: Bootstrap fails in stage2 on Fortran front end typedef collision 3dw4rd at verizon dot net
2011-03-07 14:04 ` [Bug target/48014] " rguenth at gcc dot gnu.org
2011-03-07 16:46 ` joseph at codesourcery dot com
2013-11-22 20:01 ` 3dw4rd at verizon dot net

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).