Giter Club home page Giter Club logo

Comments (4)

palopezv avatar palopezv commented on July 30, 2024 1

@inglor the patch you added to the PKGBUILD, upgrading abseil-cpp fixed the compilation problem. I would close this bug if I were the reporter (@tmpm697 hint, hint).

from auracle.

palopezv avatar palopezv commented on July 30, 2024

This is the actual compilation error:

Found ninja-1.10.2 at /usr/sbin/ninja
ninja: Entering directory `build'
[90/145] Compiling C++ object subprojects/abseil-cpp-20200...ion_lib.a.p/absl_synchronization_internal_graphcycles.cc.o
FAILED: subprojects/abseil-cpp-20200225.2/libabsl_synchronization_lib.a.p/absl_synchronization_internal_graphcycles.cc.o
c++ -Isubprojects/abseil-cpp-20200225.2/libabsl_synchronization_lib.a.p -Isubprojects/abseil-cpp-20200225.2 -I../subprojects/abseil-cpp-20200225.2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++17 -Wno-sign-compare -march=x86-64 -mtune=haswell -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -MD -MQ subprojects/abseil-cpp-20200225.2/libabsl_synchronization_lib.a.p/absl_synchronization_internal_graphcycles.cc.o -MF subprojects/abseil-cpp-20200225.2/libabsl_synchronization_lib.a.p/absl_synchronization_internal_graphcycles.cc.o.d -o subprojects/abseil-cpp-20200225.2/libabsl_synchronization_lib.a.p/absl_synchronization_internal_graphcycles.cc.o -c ../subprojects/abseil-cpp-20200225.2/absl/synchronization/internal/graphcycles.cc
../subprojects/abseil-cpp-20200225.2/absl/synchronization/internal/graphcycles.cc: In member function ‘void absl::lts_2020_02_25::synchronization_internal::GraphCycles::RemoveNode(void*)’:
../subprojects/abseil-cpp-20200225.2/absl/synchronization/internal/graphcycles.cc:451:26: error: ‘numeric_limits’ is not a member of ‘std’
  451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
      |                          ^~~~~~~~~~~~~~
../subprojects/abseil-cpp-20200225.2/absl/synchronization/internal/graphcycles.cc:451:49: error: expected primary-expression before ‘>’ token
  451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
      |                                                 ^
../subprojects/abseil-cpp-20200225.2/absl/synchronization/internal/graphcycles.cc:451:52: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  451 |   if (x->version == std::numeric_limits<uint32_t>::max()) {
      |                                                    ^~~
      |                                                    std::max
In file included from /usr/include/c++/11.1.0/algorithm:62,
                 from ../subprojects/abseil-cpp-20200225.2/absl/synchronization/internal/graphcycles.cc:38:
/usr/include/c++/11.1.0/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
[99/145] Compiling C++ object subprojects/abseil-cpp-20200225.2/libabsl_flags_lib.a.p/absl_flags_internal_flag.cc.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

from auracle.

inglor avatar inglor commented on July 30, 2024

@palopezv are you using the package from AUR? Try Building in a clean chroot

from auracle.

bstaletic avatar bstaletic commented on July 30, 2024

A ton of packages had exactly this error in gentoo. I guess gcc 11 reorganized its headers, so <limits> doesn't get included as often as it used to. That said, this looks like it's coming from Abseil so, perhaps #86 fixes this?

from auracle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.