facebook / facebook/folly

Maybe some problems with glog? Can't make folly

Open
#2,230 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
30.5k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Description

I'm installing folly with ubuntu 20.04.
I follow the instructions to make a dir _build and cmake ..
I've already installed the glog version 0.6.0, which < 0.7.0, and it is found correctly when i am doing cmake ..
But when executing make -j, the following error keeps appearing.

```
[ 99%] Linking CXX executable logging_example
/usr/bin/ld: ../../../libfolly.a(MemoryIdler.cpp.o): in function `folly::detail::MemoryIdler::unmapUnusedStack(unsigned long)':
/home/xx/soft-tar/folly/folly/detail/MemoryIdler.cpp:221: undefined reference to `google::ErrnoLogMessage::ErrnoLogMessage(char const*, int, int, unsigned long, void (google::LogMessage::*)())'
/usr/bin/ld: ../../../libfolly.a(SignalHandler.cpp.o): in function `folly::symbolizer::installFatalSignalHandler(std::bitset<64ul>)':
/home/xx/soft-tar/folly/folly/experimental/symbolizer/SignalHandler.cpp:557: undefined reference to `google::ErrnoLogMessage::ErrnoLogMessage(char const*, int, int, unsigned long, void (google::LogMessage::*)())'
collect2: error: ld returned 1 exit status
make[2]: *** [folly/logging/example/CMakeFiles/logging_example.dir/build.make:124: folly/logging/example/logging_example] Error 1
make[1]: *** [CMakeFiles/Makefile2:331: folly/logging/example/CMakeFiles/logging_example.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
```
How can i solve this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.