Skip to content

[C++][R] abseil fails to build with gcc-13 #36969

Closed

Description

@thisisnic

Describe the bug, including details regarding any error messages, version, and platform.

e.g. https://dev.azure.com/ursacomputing/crossbow/_build/results?buildId=52112&view=logs&j=0da5d1d9-276d-5173-c4c4-9d4d4ed14fdb&t=d9b15392-e4ce-5e4c-0c8c-b69645229181&l=1975

/tmp/RtmpL1MTjz/file4a454972d15/absl_ep-prefix/src/absl_ep/absl/strings/internal/str_format/extension.cc:45:1: note: in expansion of macro ‘ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_’
   45 | ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_(ABSL_INTERNAL_CHAR_SET_CASE, )
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/RtmpL1MTjz/file4a454972d15/absl_ep-prefix/src/absl_ep/absl/strings/internal/str_format/extension.cc:44:13: error: ‘FormatConversionCharSet’ does not name a type; did you mean ‘FormatConversionCharInternal’?
   44 |   constexpr FormatConversionCharSet FormatConversionCharSetInternal::c;
      |             ^~~~~~~~~~~~~~~~~~~~~~~

Component(s)

R

Activity

  1. thisisnic commented on Aug 7, 2023

    @thisisnic
    MemberAuthor

    @assignUser - I don't suppose you've got any idea why this might have started failing?

  2. assignUser commented on Aug 7, 2023

    @assignUser
    Member

    hm that reads like a version mismatch or something... I'll check it out

  3. assignUser commented on Aug 7, 2023

    @assignUser
    Member

    I don't think this is abseil related as the files in question haven't had changes in a few years ...it looks like there was a major docker upgrade on azure from 20.x to 23.x

  4. assignUser commented on Aug 8, 2023

    @assignUser
    Member

    looks like the r-base image bumped gcc from 12 to 13 that might be it?

  5. assignUser commented on Aug 8, 2023

    @assignUser
    Member

    can reproduce the error locally with gcc 13, will investigate but as cran has multiple machines running 13 this is likely a blocker for the next 13 rc

    HEAD abseil build without a problem so we might just need to bump the abseil version (which iirc is potentially difficult?)
    cc @raulcd

  6. added
    Priority: Blocker
    on Aug 8, 2023
  7. assignUser commented on Aug 8, 2023

    @assignUser
    Member

    I think these are the relevant issues that are cause by gcc 13 https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes

    abseil-cpp/absl/strings/internal/str_format/extension.h:34:6: warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
       34 | enum class FormatConversionChar : uint8_t;
          | ~~~~ ^~~~~
          |      -----
    abseil-cpp/absl/strings/internal/str_format/extension.h:34:33: error: found ‘:’ in nested-name-specifier, expected ‘::’
       34 | enum class FormatConversionChar : uint8_t;
          |                                 ^
          |                                 ::
    
    abseil-cpp/absl/strings/internal/str_format/extension.h:29:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
       28 | #include "absl/strings/internal/str_format/output.h"
      +++ |+#include <cstdint>
       29 | #include "absl/strings/string_view.h"
    abseil-cpp/absl/strings/internal/str_format/extension.h:187:29: error: default member initializer for unnamed bit-field
      187 |   enum class Enum : uint8_t {
    
  8. assignUser commented on Aug 8, 2023

    @assignUser
    Member

    We actually don't have any CI build with gcc 13 (other than test-r-library-r-base-latest and test-r-depsource-bundled) so this is an issue not only affecting R but was missed thus far.

  9. changed the title [-][R] test-r-library-r-base-latest and test-r-depsource-bundled nightly builds failing due to issues with building abseil[/-] [+][C++][R] abseil fails to build with gcc-13[/+] on Aug 8, 2023
  10. added a commit that references this issue on Aug 16, 2023
  11. added this to the 13.0.0 milestone on Aug 16, 2023
  12. added a commit that references this issue on Aug 16, 2023
  13. h-vetinari commented on Oct 24, 2023

    @h-vetinari
    Contributor

    @assignUser, is there a replacement issue, now that #37066 was closed unmerged? #37147 is a work-around, not a solution. Abseil should be kept up-to-date like any other dependency.

  14. assignUser commented on Oct 28, 2023

    @assignUser
    Member

    With our move to cmake 3.16 as minumum version we can finally use FetchContent instead of ep, this will make updating dependencies much easier as we do not have to recreate the internal target tree of the dependency as we currently do.

    It should also be possible to move singular dependencies to FC (caveat is that we have to move all of it's dependencies to FC as well afaik). I don't think there is a general issue for this or for abseil specifically.

  15. added a commit that references this issue on Nov 13, 2023
  16. adamreeve commented on May 17, 2024

    @adamreeve
    Contributor

    This issue was blocking me from doing some development work so I changed the Abseil build to include a patch to work around it: adamreeve@ed44152

    I don't think it would make sense to make a PR with this as the proper fix is to upgrade Abseil, but I thought I'd post it here in case it helps anyone else.

  17. added a commit that references this issue on Jul 26, 2024
  18. added a commit that references this issue on Jul 31, 2024
  19. added a commit that references this issue on Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Component: RPriority: BlockerType: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions