Test Folly on Fedora 19

164 views
Skip to first unread message

yong fu

unread,
Feb 20, 2014, 1:17:19 AM2/20/14
to faceboo...@googlegroups.com
g++ 4.8.2, kernel 3.12.8-200.fc19.x86_64
Run make check :
make[3]: *** No rule to make target `EventFDTest.cpp', needed by `EventFDTest.o'.  Stop.

In test/makefile.am
...
if HAVE_LINUX
eventfd_test_SOURCES = EventFDTest.cpp
eventfd_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
TESTS += eventfd_test
endif
...
But cannot find EventFDTest.cpp. 

Failed test
[yfu@localhost test]$ ./conv_test
ERROR: something wrong with flag 'benchmark' in file 'Benchmark.cpp'.  One possibility: file 'Benchmark.cpp' is being linked both statically and dynamically into this executable.

In test/Makefile.am:
...
conv_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
...

if remove the library libfollybenchmark.la, the test passed. (conv_test script already linked libfollybenchmark.so)
There are more than ten other tests with the same problem.





Reply all
Reply to author
Forward
0 new messages