pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gcc on Darwin




Anyone else having trouble with gcc7 and gcc8 on Darwin lately? I haven't tried other gcc versions yet.  This is on High Sierra, since my newest Mac is 10 years old.  If the gcc packages are working on more recent OS X, I wouldn't make fixing this a high priority, since support for High Sierra will likely end soon.

../../../gcc-7.5.0/libgcc/unwind.inc:51:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       match_handler = (uw_identify_context (context) == exc->private_2
                                                      ^~
../../../gcc-7.5.0/libgcc/unwind.inc:62:12: error: invalid type argument of unary '*' (have 'int')
    code = (*fs.personality) (1, _UA_CLEANUP_PHASE | match_handler,
            ^~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind.inc: At top level:
../../../gcc-7.5.0/libgcc/unwind.inc:82:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_Unwind_RaiseException'
 _Unwind_RaiseException(struct _Unwind_Exception *exc)
 ^~~~~~~~~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind.inc: In function '_Unwind_ForcedUnwind_Phase2': ../../../gcc-7.5.0/libgcc/unwind.inc:145:45: error: '_Unwind_Ptr' undeclared (first use in this function); did you mean '_Unwind_GetPtr'?
   _Unwind_Stop_Fn stop = (_Unwind_Stop_Fn) (_Unwind_Ptr) exc->private_1;
                                             ^~~~~~~~~~~
                                             _Unwind_GetPtr
../../../gcc-7.5.0/libgcc/unwind.inc:145:58: error: expected ',' or ';' before exc'
   _Unwind_Stop_Fn stop = (_Unwind_Stop_Fn) (_Unwind_Ptr) exc->private_1;
                                                          ^~~
../../../gcc-7.5.0/libgcc/unwind.inc:146:48: error: expected ',' or ';' before exc'
   void *stop_argument = (void *) (_Unwind_Ptr) exc->private_2;
                                                ^~~
../../../gcc-7.5.0/libgcc/unwind.inc:175:12: error: invalid type argument of unary '*' (have 'int')
    code = (*fs.personality) (1, _UA_FORCE_UNWIND | _UA_CLEANUP_PHASE,
            ^~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind.inc: At top level:
../../../gcc-7.5.0/libgcc/unwind.inc:195:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_Unwind_ForcedUnwind'
 _Unwind_ForcedUnwind (struct _Unwind_Exception *exc,
 ^~~~~~~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind.inc:219:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_Unwind_Resume'
 _Unwind_Resume (struct _Unwind_Exception *exc)
 ^~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind.inc:244:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_Unwind_Resume_or_Rethrow'
 _Unwind_Resume_or_Rethrow (struct _Unwind_Exception *exc)
 ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind.inc:278:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_Unwind_Backtrace'
 _Unwind_Backtrace(_Unwind_Trace_Fn trace, void * trace_argument)
 ^~~~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind-dw2.c:354:21: warning: '_Unwind_IsSignalFrame' is static but used in inline function '_Unwind_GetIPInfo' which is not static
   *ip_before_insn = _Unwind_IsSignalFrame (context);
                     ^~~~~~~~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind-dw2.c:238:12: warning: '_Unwind_Get_Unwind_Wor' is static but used in inline function '_Unwind_GetGR' which is not static
     return _Unwind_Get_Unwind_Word (val);
            ^~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind-dw2.c:237:7: warning: '_Unwind_IsExtendedContext' is static but used in inline function '_Unwind_GetGR' which is not static
   if (_Unwind_IsExtendedContext (context) && context->by_value[index])
       ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind-dw2.c:234:10: warning: 'dwarf_reg_size_table' is static but used in inline function '_Unwind_GetGR' which is not static
   size = dwarf_reg_size_table[index];
          ^~~~~~~~~~~~~~~~~~~~
In file included from ../../../gcc-7.5.0/libgcc/unwind-dw2.c:26:0:
../../../gcc-7.5.0/libgcc/unwind-dw2.c:233:36: warning: 'dwarf_reg_size_table' is static but used in inline function '_Unwind_GetGR' which is not static
   gcc_assert (index < (int) sizeof(dwarf_reg_size_table));
                                    ^
../../../gcc-7.5.0/libgcc/../gcc/tsystem.h:122:36: note: in definition of macro 'gcc_assert'
 #define gcc_assert(EXPR) ((void)(!(EXPR) ? abort (), 0 : 0))
                                    ^~~~
../../../gcc-7.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetCFA':
../../../gcc-7.5.0/libgcc/unwind-dw2.c:262:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../../../gcc-7.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetRegionStart': ../../../gcc-7.5.0/libgcc/unwind-dw2.c:376:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../../../gcc-7.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetDataRelBase': ../../../gcc-7.5.0/libgcc/unwind-dw2.c:394:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../../../gcc-7.5.0/libgcc/unwind-dw2.c: In function '_Unwind_GetTextRelBase': ../../../gcc-7.5.0/libgcc/unwind-dw2.c:400:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../../../gcc-7.5.0/libgcc/unwind-dw2.c: In function '_Unwind_IsSignalFrame':
../../../gcc-7.5.0/libgcc/unwind-dw2.c:201:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
In file included from ../../../gcc-7.5.0/libgcc/unwind-dw2.c:1728:0:
At top level:
../../../gcc-7.5.0/libgcc/unwind.inc:142:1: warning: '_Unwind_ForcedUnwind_Phase2' defined but not used [-Wunused-function]
 _Unwind_ForcedUnwind_Phase2 (struct _Unwind_Exception *exc,
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind.inc:38:1: warning: '_Unwind_RaiseException_Phase2' defined but not used [-Wunused-function]
 _Unwind_RaiseException_Phase2(struct _Unwind_Exception *exc,
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind-dw2.c:1660:1: warning: 'uw_install_context_1' defined but not used [-Wunused-function]
 uw_install_context_1 (struct _Unwind_Context *current,
 ^~~~~~~~~~~~~~~~~~~~
../../../gcc-7.5.0/libgcc/unwind-dw2.c:1562:1: warning: 'uw_init_context_1' defined but not used [-Wunused-function]
 uw_init_context_1 (struct _Unwind_Context *context,
 ^~~~~~~~~~~~~~~~~
In file included from ../../../gcc-7.5.0/libgcc/unwind-dw2.c:35:0:
../../../gcc-7.5.0/libgcc/unwind-pe.h:101:1: warning: 'base_of_encoded_value' defined but not used [-Wunused-function]  base_of_encoded_value (unsigned char encoding, struct _Unwind_Context *context)
 ^~~~~~~~~~~~~~~~~~~~~
gnumake[3]: *** [unwind-dw2_s.o] Error 1
gnumake[2]: *** [all-stage1-target-libgcc] Error 2
gnumake[1]: *** [stage1-bubble] Error 2
gnumake: *** [all] Error 2
*** Error code 2

Stop.
bmake.bin[1]: stopped in /Users/bacon/Pkgsrc/pkgsrc/lang/gcc7
*** Error code 1

Stop.
bmake.bin: stopped in /Users/bacon/Pkgsrc/pkgsrc/lang/gcc7



Home | Main Index | Thread Index | Old Index