[MacPorts] #40998: libgcc @4.8.1 Compile error on Mavericks macports 2.2.1 package (Error: conflicting declaration 'typedef enum pointer_t pointer_t')
#40998: libgcc @4.8.1 Compile error on Mavericks macports 2.2.1 package (Error: conflicting declaration 'typedef enum pointer_t pointer_t') -----------------------------------------+-------------------------------- Reporter: William.Capehart@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: Mavericks libgcc pointer_t | Port: libgcc @4.8.1 -----------------------------------------+-------------------------------- Macports' Mavericks 2.2.1 package has been removed and reinstalled several times. Xcode license has been accepted several times. xcode-select --install has been installed. I've also done the normal selfupdate step. From what I've seen I've covered most of what other people who have reported simpler problems with libgcc and gcc4x compile errors have done. From what I can see, this does not resemble the error in 40857 or 40810, for example. Attempts to install GCC 4.8 and 4.7 have been blocked by the same error each time with the following error in the libgcc build. (each attempt has been preceded by a clean of gcc48/gcc47 and libgcc) The same error emerges when installing ONLY libgcc. The error message for the libgcc build is below and log is attached. Note that fortran is a critical requirement for me. I should not disable this. Additionally installing gcc48 on macports a month ago met with no error. /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/gcc-4.8.1/gcc/fortran/module.c:110:1: error: conflicting declaration 'typedef enum pointer_t pointer_t' pointer_t; ^ In file included from /usr/include/mach/memory_object_types.h:77:0, from /usr/include/mach/mach_types.h:85, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/build /prev-gcc/include-fixed/malloc.h:37, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/gcc-4.8.1/gcc/system.h:460, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/gcc-4.8.1/gcc/fortran/module.c:68: /usr/include/mach/vm_types.h:40:26: error: 'pointer_t' has a previous declaration as 'typedef vm_offset_t pointer_t' typedef vm_offset_t pointer_t; ^ make[3]: *** [fortran/module.o] Error 1 -- Ticket URL: <https://trac.macports.org/ticket/40998> MacPorts <http://www.macports.org/> Ports system for OS X
#40998: libgcc @4.8.1 Compile error on Mavericks macports 2.2.1 package (Error: conflicting declaration 'typedef enum pointer_t pointer_t') ---------------------------------+------------------- Reporter: William.Capehart@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libgcc | ---------------------------------+------------------- Changes (by macsforever2000@…): * cc: jeremyhu@… (added) * owner: macports-tickets@… => mww@… * port: libgcc @4.8.1 => libgcc * keywords: Mavericks libgcc pointer_t => Old description:
Macports' Mavericks 2.2.1 package has been removed and reinstalled several times. Xcode license has been accepted several times. xcode- select --install has been installed. I've also done the normal selfupdate step. From what I've seen I've covered most of what other people who have reported simpler problems with libgcc and gcc4x compile errors have done. From what I can see, this does not resemble the error in 40857 or 40810, for example.
Attempts to install GCC 4.8 and 4.7 have been blocked by the same error each time with the following error in the libgcc build. (each attempt has been preceded by a clean of gcc48/gcc47 and libgcc)
The same error emerges when installing ONLY libgcc. The error message for the libgcc build is below and log is attached.
Note that fortran is a critical requirement for me. I should not disable this. Additionally installing gcc48 on macports a month ago met with no error.
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/gcc-4.8.1/gcc/fortran/module.c:110:1: error: conflicting declaration 'typedef enum pointer_t pointer_t' pointer_t; ^ In file included from /usr/include/mach/memory_object_types.h:77:0, from /usr/include/mach/mach_types.h:85, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/build /prev-gcc/include-fixed/malloc.h:37, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/gcc-4.8.1/gcc/system.h:460, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/gcc-4.8.1/gcc/fortran/module.c:68: /usr/include/mach/vm_types.h:40:26: error: 'pointer_t' has a previous declaration as 'typedef vm_offset_t pointer_t' typedef vm_offset_t pointer_t; ^ make[3]: *** [fortran/module.o] Error 1
New description: Macports' Mavericks 2.2.1 package has been removed and reinstalled several times. Xcode license has been accepted several times. xcode-select --install has been installed. I've also done the normal selfupdate step. From what I've seen I've covered most of what other people who have reported simpler problems with libgcc and gcc4x compile errors have done. From what I can see, this does not resemble the error in #40857 or #40810, for example. Attempts to install GCC 4.8 and 4.7 have been blocked by the same error each time with the following error in the libgcc build. (each attempt has been preceded by a clean of gcc48/gcc47 and libgcc) The same error emerges when installing ONLY libgcc. The error message for the libgcc build is below and log is attached. Note that fortran is a critical requirement for me. I should not disable this. Additionally installing gcc48 on macports a month ago met with no error. {{{ /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/gcc-4.8.1/gcc/fortran/module.c:110:1: error: conflicting declaration 'typedef enum pointer_t pointer_t' pointer_t; ^ In file included from /usr/include/mach/memory_object_types.h:77:0, from /usr/include/mach/mach_types.h:85, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/build /prev-gcc/include-fixed/malloc.h:37, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/gcc-4.8.1/gcc/system.h:460, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libgcc/work/gcc-4.8.1/gcc/fortran/module.c:68: /usr/include/mach/vm_types.h:40:26: error: 'pointer_t' has a previous declaration as 'typedef vm_offset_t pointer_t' typedef vm_offset_t pointer_t; ^ make[3]: *** [fortran/module.o] Error 1 }}} -- Comment: In the future, please use WikiFormatting and Cc the port maintainers ({{{port info --maintainers libgcc}}}). -- Ticket URL: <https://trac.macports.org/ticket/40998#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40998: libgcc @4.8.1 Compile error on Mavericks macports 2.2.1 package (Error: conflicting declaration 'typedef enum pointer_t pointer_t') ---------------------------------+------------------- Reporter: William.Capehart@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libgcc | ---------------------------------+------------------- Comment (by William.Capehart@…): I have found what is likely '''''not''''' a best practices-friendly solution by trespassing into the ''/usr'' area: I have commented-out line 40 of /usr/include/mach/vm_types.h Before this, I DID try to comment out its counterpart line in libgcc/work/gcc-4.8.1/gcc/fortran/module.c but this produced far more errors, and went to vm_types.h instead. I was able to compile libgcc (4.8.2) and gcc48. And I restored the vm_types.h to before and moved forward with building '''mpich''', '''netcdf''', and other macport builds. I have only had a problem with '''ncarg''' but that may be an unrelated matter and am submitting the problem there'''''' under separate cover. I do not know if this qualifies as a "works for me fix." -- Ticket URL: <https://trac.macports.org/ticket/40998#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40998: libgcc @4.8.1 Compile error on Mavericks macports 2.2.1 package (Error: conflicting declaration 'typedef enum pointer_t pointer_t') ---------------------------------+------------------- Reporter: William.Capehart@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libgcc | ---------------------------------+------------------- Comment (by William.Capehart@…): I just tried to repeat this build on my second newly upgraded Mavericks machine and got the same error. I did not make any changes to /usr/include/mach/vm_types.h -- Ticket URL: <https://trac.macports.org/ticket/40998#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40998: libgcc @4.8.1 Compile error on Mavericks macports 2.2.1 package (Error: conflicting declaration 'typedef enum pointer_t pointer_t') ---------------------------------+------------------- Reporter: William.Capehart@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libgcc | ---------------------------------+------------------- Comment (by jeremyhu@…): I can't reproduce, and this is GPL3 code, so I'm not going to be looking at it. My suggestion is to remove the conflicting typedef in gcc's sources or otherwise fix it there. -- Ticket URL: <https://trac.macports.org/ticket/40998#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#40998: libgcc @4.8.1 Compile error on Mavericks macports 2.2.1 package (Error: conflicting declaration 'typedef enum pointer_t pointer_t') ---------------------------------+----------------------- Reporter: William.Capehart@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: libgcc | ---------------------------------+----------------------- Changes (by jeremyhu@…): * keywords: => mavericks -- Ticket URL: <https://trac.macports.org/ticket/40998#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts