[MacPorts] #59927: bison: update to 3.8

MacPorts noreply at macports.org
Mon Aug 9 04:44:24 UTC 2021


#59927: bison: update to 3.8
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  mascguy
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:             |   Keywords:
      Port:  bison      |
------------------------+----------------------

Comment (by akimd):

 Wow.  If this test does not pass, it actually means that the main test
 suite is certainly not passing either.  Bison comes with "two" test
 suites: that of the examples (less than a dozen cases), and then the real
 one (more than 700 cases).  It appears you are stuck in the first,
 auxiliary, test suite.  I guess we will need more exchanges after this
 one...

 Your failure shows that your GCC does not grok _Noreturn the way we expect
 it.  Please run `/usr/bin/gcc-4.2 -std=gnu99 -pipe -Os -arch ppc -E
 bison.c` on the attached `bison.c` file and post the output.  For some
 reason we think it supports _Noreturn, but does not, and we need to tune
 the detection to fix that.

 {{{
 /*
 /usr/bin/gcc-4.2 -std=gnu99 -pipe -Os -arch ppc -E bison.c
 */


 #ifndef _Noreturn
 # if (defined __cplusplus \
       && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ ==
 7)) \
           || (defined _MSC_VER && 1900 <= _MSC_VER)))
 case 1
 #  define _Noreturn [[noreturn]]
 # elif ((!defined __cplusplus || defined __clang__) \
         && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
             || (!defined __STRICT_ANSI__ \
                 && (__4 < __GNUC__ + (7 <= __GNUC_MINOR__) \
                     || (defined __apple_build_version__ \
                         ? 6000000 <= __apple_build_version__ \
                         : 3 < __clang_major__ + (5 <=
 __clang_minor__))))))
    /* _Noreturn works as-is.  */
 case 2
 # elif (2 < __GNUC__ + (8 <= __GNUC_MINOR__) || defined __clang__ \
         || 0x5110 <= __SUNPRO_C)
 #  define _Noreturn __attribute__ ((__noreturn__))
 # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0)
 case 3
 #  define _Noreturn __declspec (noreturn)
 # else
 case 4
 #  define _Noreturn
 # endif
 #endif

 c++: __cplusplus
 clang: __clang__
 clang maj: __clang_major__
 clang min: __clang_minor__
 STDC: __STDC_VERSION__
 STRICT_ANSI: __STRICT_ANSI__
 GNUC: __GNUC__
 GNUC MIN: __GNUC_MINOR__
 apple: __apple_build_version__

 _Noreturn static void
 yyFail (yyGLRStack* yystackp, YYLTYPE *yylocp, const char* yymsg);
 }}}

 Cheers!

-- 
Ticket URL: <https://trac.macports.org/ticket/59927#comment:61>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list