Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: flag 'logtostderr' was defined more than once #190

Open
KYUNGSOO-LEE opened this issue Jan 18, 2023 · 3 comments
Open

ERROR: flag 'logtostderr' was defined more than once #190

KYUNGSOO-LEE opened this issue Jan 18, 2023 · 3 comments

Comments

@KYUNGSOO-LEE
Copy link

KYUNGSOO-LEE commented Jan 18, 2023

I built cachelib. Below was my development environment.

  • Cachelib Ver: v2023.01.16.00
  • OS: Ubuntu 16.04
  • Build Command: ./contrib/build.sh -d -j -v -T
  1. I ran unit tests code with command "nice make -j".
    Running error is occurred in some unit tests, e,g. "shm-test-test_shm", "benchmark-test-BucketMutexBecnch".
    The error message: ERROR: flag 'logtostderr' was defined more than once (in files
    '/data/scott/programs/CacheLib/cachelib/external/glog/src/logging.cc' and 'src/logging.cc').

  2. I built the examples code, e.g. simple_cache with "./built.sh". I ran the example, ./build/simple_cache.
    The error message: ERROR: flag 'logtostderr' was defined more than once (in files
    '/data/scott/programs/CacheLib/cachelib/external/glog/src/logging.cc' and 'src/logging.cc').

How can I fix it?

@therealgymmy
Copy link
Contributor

We don't support ubuntu 16.04. If you could, please update to Ubuntu 18.04 or newer. Your logs seem to suggest you're pulling in two separate glog installation as dependencies. Can you provide more details on what is this src/logging.cc?

@KYUNGSOO-LEE
Copy link
Author

I'm sorry. It was a typo. OS version is 20.04.
"logging.cc" is only one in Cachelib. There is "cachelib/external/glog/src/logging.cc". I think logging.cc is crashed during dynamic linking. This error is not occurred in release mode compiling.

@zzzzq-0000
Copy link

I'm sorry. It was a typo. OS version is 20.04. "logging.cc" is only one in Cachelib. There is "cachelib/external/glog/src/logging.cc". I think logging.cc is crashed during dynamic linking. This error is not occurred in release mode compiling.

Did you solve it?I met the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants