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

std not detected #148

Closed
NasrinJaleel93 opened this issue Feb 7, 2017 · 6 comments
Closed

std not detected #148

NasrinJaleel93 opened this issue Feb 7, 2017 · 6 comments

Comments

@NasrinJaleel93
Copy link

In file included from /home/nasrinj/wdt/../wdt/util/CommonImpl.h:13:0,
from /home/nasrinj/wdt/../wdt/util/FileCreator.h:13,
from /home/nasrinj/wdt/util/FileCreator.cpp:9:
/home/nasrinj/wdt/../wdt/Reporting.h: In constructor ‘facebook::wdt::TransferStats::TransferStats(bool)’:
/home/nasrinj/wdt/../wdt/Reporting.h:110:16: error: ‘make_unique’ is not a member of ‘std’
mutex_ = std::make_uniquefolly::RWSpinLock();

I am not sure why I get this error while trying to make.

I followed all the steps from the BUILD.md file. My glog install had failed too with the following error :

/home/nasrinj/glog/src/googletest.h:93: undefined reference to google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)' /home/nasrinj/glog/src/googletest.h:94: undefined reference to google::FlagRegisterer::FlagRegistererstd::string(char const*, char const*, char const*, std::string*, std::string*)'
/home/nasrinj/glog/src/googletest.h:96: undefined reference to google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)' /home/nasrinj/glog/src/googletest.h:100: undefined reference to google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, int*, int*)'

Are these errors related in someway?

@ldemailly
Copy link
Contributor

which compiler (c++ --version) and Os are you on (uname -a)

seems like your compiler may need an upgrade

@ldemailly
Copy link
Contributor

you can see successful builds on https://travis-ci.org/facebook/wdt/builds/199050762 for instance

@youngbamboo
Copy link

youngbamboo commented Feb 7, 2017 via email

@NasrinJaleel93
Copy link
Author

NasrinJaleel93 commented Feb 8, 2017

Upgrading the compiler helped! Thanks! But the error with glog, still remains.

Compiler version output -

Using built-in specs. COLLECT_GCC=c++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.9.4-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.9.4 (Ubuntu 4.9.4-2ubuntu1~14.04.1)

uname -a : -

Linux node5 3.13.0-98-generic #145-Ubuntu SMP Sat Oct 8 20:13:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

@ldemailly
Copy link
Contributor

your glog error seems related to gflags, I'm guessing you have the wrong namespace set

you could try to apt-get, yum etc... install glog and gflags pre built?

@ldemailly
Copy link
Contributor

I'm going to close this, assuming you solved the problem ? (if not please reopen)

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