Coder Social home page Coder Social logo

Comments (8)

decibel26 avatar decibel26 commented on April 20, 2024

Getting the same error. I tried on a new VM Ubuntu 20.04.3 LTS, still getting the error.
ERROR: flag 'logtostderr' was defined more than once (in files '/home/student/CacheLib/cachelib/external/glog/src/logging.cc' and 'src/logging.cc').

from cachelib.

agordon avatar agordon commented on April 20, 2024

Thank you for the bug report @vicvicg and @decibel26 - you stumbled on an edge case - building "cachelib" in debug mode (build.sh -d) and the sample in release mode (the default of the build.sh script).
I'll commit a fix that allows building the sample in debug mode as well.
As a temporary work-around, please try adding -DCMAKE_BUILD_TYPE=Debug to the CMAKE_PARAMS in line 28 of:

CMAKE_PARAMS="-DCMAKE_INSTALL_PREFIX='$PREFIX' -DCMAKE_MODULE_PATH='$CLCMAKE'"

from cachelib.

vicvicg avatar vicvicg commented on April 20, 2024

-DCMAKE_BUILD_TYPE=Debug

Thank you, @agordon - this workaround works.

from cachelib.

sathyaphoenix avatar sathyaphoenix commented on April 20, 2024

Thanks for the quick work-around @agordon !

from cachelib.

decibel26 avatar decibel26 commented on April 20, 2024

Worked for me as well. Thanks, @agordon.

from cachelib.

sathyaphoenix avatar sathyaphoenix commented on April 20, 2024

@vicvicg Is this still an issue for you ?

from cachelib.

vicvicg avatar vicvicg commented on April 20, 2024

@sathyaphoenix What is the recommended way to switch between release and debug builds for samples without modifying the build file itself?

from cachelib.

sathyaphoenix avatar sathyaphoenix commented on April 20, 2024

@agordon is the fix that you mention committed to main branch ?

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.