[MacPorts] #45681: libgcc fails to build on Mavericks 10.9.5 with XCode 6.1

MacPorts noreply at macports.org
Wed Oct 29 07:15:22 PDT 2014


#45681: libgcc fails to build on Mavericks 10.9.5 with XCode 6.1
----------------------------------+--------------------------------
 Reporter:  michelle.lynn.gill@…  |      Owner:  macports-tickets@…
     Type:  defect                |     Status:  new
 Priority:  Normal                |  Milestone:
Component:  ports                 |    Version:  2.3.2
 Keywords:                        |       Port:  libgcc
----------------------------------+--------------------------------
 I am attempting to compile libgcc on 10.9.5 with Xcode 6.1.

 The errors seem to start around line 2747 and pertain to the file
 system.h:

 {{{
 :info:build In file included from
 /Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/libgcc/work/gcc-4.9.1/gcc
 /gcc-ar.c:22:
 :info:build
 /Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/libgcc/work/gcc-4.9.1/gcc/system.h:506:20:
 error: functions that differ only in their return type cannot be
 overloaded
 :info:build extern const char *strsignal (int);
 :info:build                    ^
 :info:build /usr/include/string.h:134:7: note: previous declaration is
 here
 :info:build char    *strsignal(int sig);
 :info:build          ^
 :info:build rm -f mm_malloc.h
 :info:build TARGET_CPU_DEFAULT="" \
 :info:build     HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET
 " \
 :info:build     /bin/sh
 /Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/libgcc/work/gcc-4.9.1/gcc/mkconfig.sh
 tconfig.h
 :info:build cat
 /Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/libgcc/work/gcc-4.9.1/gcc/config/i386/gmm_malloc.h
 > mm_malloc.h
 :info:build In file included from
 /Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/libgcc/work/gcc-4.9.1/gcc
 /gcc-ar.c:22:
 :info:build In file included from
 /Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/libgcc/work/gcc-4.9.1/gcc/system.h:1064:
 :info:build
 /Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/libgcc/work/gcc-4.9.1/gcc/hwint.h:244:12:
 error: use of undeclared identifier 'CHAR_BIT'
 :info:build     return HOST_BITS_PER_WIDE_INT;
 :info:build            ^
 :info:build
 /Volumes/Files/macports/var/macports/build/_Volumes_Files_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/libgcc/work/gcc-4.9.1/gcc/hwint.h:60:35:
 note: expanded from macro 'HOST_BITS_PER_WIDE_INT'
 :info:build #   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
 :info:build                                   ^
 }}}

 There are many of the "use of undeclared identifier" errors, so I've only
 pasted the first couple.

 I do not see any related libgcc errors listed in open tickets, so I
 believe this is a new error.

 This is for a new MacPorts installation (non-default path) on a Mac Pro
 running Mavericks. I was able to compile libgcc with my laptop using Xcode
 6.1 on Yosemite just fine.

 Please let me know if I can provide further info.

-- 
Ticket URL: <https://trac.macports.org/ticket/45681>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list