GithubHelp home page GithubHelp logo

Ubuntu 20.04 LTS build error about cachelib HOT 8 CLOSED

facebook avatar facebook commented on April 24, 2024
Ubuntu 20.04 LTS build error

from cachelib.

Comments (8)

sreenivasulureddysura avatar sreenivasulureddysura commented on April 24, 2024

Build error when building cachelib using the provided script build.sh:

./contrib/build.sh -d -j -T -v
Compiler versions:

  • cmake: v3.22.2
  • gcc/g++: v9.4.0

Error:

CacheLib/cachelib/../cachelib/datatype/FixedSizeArray.h:133:58: warning: returning reference to temporary [-Wreturn-local-addr]
  133 |   const T& getAt(uint32_t index) const { return elements_[index]; }
      |                                                 ~~~~~~~~~^
make[2]: *** [datatype/CMakeFiles/datatype-test-FixedSizeArrayTest.dir/build.make:76: datatype/CMakeFiles/datatype-test-FixedSizeArrayTest.dir/tests/FixedSizeArrayTest.cpp.o] Error 1
make[2]: Leaving directory '/CacheLib/build-cachelib'
make[1]: *** [CMakeFiles/Makefile2:3297: datatype/CMakeFiles/datatype-test-FixedSizeArrayTest.dir/all] Error 2

from cachelib.

sreenivasulureddysura avatar sreenivasulureddysura commented on April 24, 2024

@therealgymmy When I ran this command ./contrib/build.sh -d -j -T -v, I got the above mentioned issue. When I commented the below test cases issue is fixed. Causing file line is /cachelib/datatype/FixedSizeArray.h:133

const T& getAt(uint32_t index) const { return elements_[index]; }

Commented test cases.

cachelib/datatype/tests/FixedSizeArrayTest.cpp

//TYPED_TEST(FixedSizeArrayTest, Basic) { this->testBasic(); }
//TYPED_TEST(FixedSizeArrayTest, StdContainers) { this->testStdContainers(); }
//TYPED_TEST(FixedSizeArrayTest, StdAlgorithms) { this->testStdAlgorithms(); }
//TYPED_TEST(FixedSizeArrayTest, testFollyContainers) {
//  this->testFollyContainers();
//}

from cachelib.

therealgymmy avatar therealgymmy commented on April 24, 2024

@sreenivasulureddysura: do you still see this issue? We should have fixed this already.

from cachelib.

sreenivasulureddysura avatar sreenivasulureddysura commented on April 24, 2024

@therealgymmy your github action is failing in Ubuntu for the same issue I was mentioned above. Please take a look at it. Checking my previous comments for fixing the issue.

https://github.com/facebook/CacheLib/runs/7058670118?check_suite_focus=true#step:6:10590

from cachelib.

therealgymmy avatar therealgymmy commented on April 24, 2024

@sreenivasulureddysura: Yeah you're right. We have not yet landed the fix.

from cachelib.

therealgymmy avatar therealgymmy commented on April 24, 2024

@sreenivasulureddysura: can you verify if the fix has fixed. We have landed fix for FixedSizeArray on our end (removing the pack attribute).

from cachelib.

therealgymmy avatar therealgymmy commented on April 24, 2024

This particular issue should be fixed now but centos build is still broken. Will file a separate issue to track

from cachelib.

sreenivasulureddysura avatar sreenivasulureddysura commented on April 24, 2024

@therealgymmy Ubuntu issue is fixed. I was able to execute the command without any issues.
./contrib/build.sh -d -j -T -v

from cachelib.

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.