Uploaded image for project: 'ReactOS Build Environment'
  1. ReactOS Build Environment
  2. ROSBE-136

[RosBE] undefined reference to `__alloca' on newer GCC compilers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None

    Description

      The distribution of the make tools bundled with RosBE is a little dated. As such, compilation of the code fails and RosBE doesn't bootstrap on host systems with a more recent GCC revision, i.e. at least with 7.x+ on Ubuntu 18.04.

      The following diff does fix compilation.

      {{ diff --git a/glob/glob.c b/glob/glob.c }}
      {{    index f3911bc..8adbde3 100644 }}
      {{    — a/glob/glob.c }}
      {{    +++ b/glob/glob.c }}
      {{    @@ -208,7 +208,7 @@ my_realloc (p, n) }}
      {{     #endif /* _GNU_LIBRARY_ || _DJGPP_ */ }}

      {{    -#if !defined _alloca && !defined __GNU_LIBRARY_ }}
      {{    +#if !defined _alloca && defined __GNU_LIBRARY_ }}

      {{     # ifdef _GNUC_ }}
      {{     #  undef alloca }}

      A tarball with the patch applied is attached to this JIRA.

       

      Attachments

        1. make.tar.bz2
          1.17 MB
          Durobot
        2. make.tar.bz2
          1.22 MB
          DennisL

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              DennisL DennisL
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: