Package Details: folly 2017.06.05.00-2

Git Clone URL: https://aur.archlinux.org/folly.git (read-only)
Package Base: folly
Description: An open-source C++ library developed and used at Facebook
Upstream URL: https://github.com/facebook/folly
Licenses: Apache
Submitter: dseg
Maintainer: dseg
Last Packager: dseg
Votes: 2
Popularity: 0.000558
First Submitted: 2015-03-20 08:29
Last Updated: 2017-06-07 08:47

Latest Comments

mmlac commented on 2017-06-04 05:34

This breaks since GCC 7 was adopted by Arch.

- Install gcc5 from repo
- export CC=gcc-5
export CXX=g++-5

Build Folly as usual

sleeping commented on 2017-04-25 07:57

folly fails to compile with OpenSSL 1.1.0.
https://github.com/facebook/folly/issues/573

Looking at https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/ncrack
Consider making openssl-1.0 a dependency and compile using that.

Just copy these before the configure call

CFLAGS+=" -I/usr/include/openssl-1.0" \
CPPFLAGS+=" -I/usr/include/openssl-1.0" \
LDFLAGS+=" -L/usr/lib/openssl-1.0" \

See for example
https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/ncrack

Worked for me!

dseg commented on 2017-03-09 03:53

Updated to the latest version.
Hey guys, Please up vote if you found this package useful.
(Currently 0 votes, I got only claims. sigh..)

sleeping commented on 2017-03-08 18:51

I'm getting build errors too.

joker512 commented on 2017-01-19 16:29

I 've got such error after installation:
ld /usr/lib/libfolly.so
ld: warning: cannot find entry symbol _start; not setting start address
/usr/lib/libfolly.so: undefined reference to `boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const'
/usr/lib/libfolly.so: undefined reference to `boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const'

I couldn't compile fbthrift due to this error.
Looks like a problem with the last version of boost.

dseg commented on 2017-01-04 03:09

Sorry, just fixed build errors.

peace commented on 2016-10-08 14:55

It seems as if gtest is no longer retrievable from https://googletest.googlecode.com/files/gtest-1.7.0.zip (404 error)

Building fails with error message:

curl: (22) The requested URL returned error: 404 Not Found
==> ERROR: Failure while downloading https://googletest.googlecode.com/files/gtest-1.7.0.zip
Aborting...
==> ERROR: Makepkg was unable to build folly.

User commented on 2016-06-09 16:01

Compiling fails with following:

In file included from ./../folly/FBString.h:59:0,
from ./../folly/Conv.h:27,
from detail/CacheLocality.cpp:25:
./../folly/Traits.h:152:38: error: template argument 1 is invalid
struct IsRelocatable< __VA_ARGS__ > : std::true_type {};
^
./../folly/Traits.h:218:3: note: in expansion of macro ‘FOLLY_ASSUME_RELOCATABLE’
FOLLY_ASSUME_RELOCATABLE(__VA_ARGS__<T1, T2, T3>) } \
^~~~~~~~~~~~~~~~~~~~~~~~
./../folly/Traits.h:424:1: note: in expansion of macro ‘FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3’
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3(std::basic_string);
^
./../folly/Traits.h:168:48: error: template argument 1 is invalid
struct has_nothrow_constructor< __VA_ARGS__ > : ::boost::true_type {};
^
./../folly/Traits.h:221:5: note: in expansion of macro ‘FOLLY_ASSUME_HAS_NOTHROW_CONSTRUCTOR’
FOLLY_ASSUME_HAS_NOTHROW_CONSTRUCTOR(__VA_ARGS__<T1, T2, T3>) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./../folly/Traits.h:424:1: note: in expansion of macro ‘FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3’
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3(std::basic_string);
^
In file included from ./../folly/Conv.h:27:0,
from detail/CacheLocality.cpp:25:
./../folly/FBString.h:912:3: error: reference to ‘basic_string’ is ambiguous
std::basic_string<Char> backend_;
^~~
In file included from ./../folly/FBString.h:59:0,
from ./../folly/Conv.h:27,
from detail/CacheLocality.cpp:25:
./../folly/Traits.h:244:9: note: candidates are: template<class T, class R, class A> class std::basic_string
class basic_string;
^~~~~~~~~~~~
In file included from /usr/include/c++/6.1.1/string:39:0,
from /usr/include/c++/6.1.1/stdexcept:39,
from /usr/include/c++/6.1.1/array:39,
from /usr/include/c++/6.1.1/tuple:39,
from /usr/include/c++/6.1.1/functional:55,
from ./../folly/detail/CacheLocality.h:23,
from detail/CacheLocality.cpp:17:
/usr/include/c++/6.1.1/bits/stringfwd.h:71:11: note: template<class _CharT, class _Traits, class _Alloc> class std::__cxx11::basic_string
class basic_string;
^~~~~~~~~~~~
In file included from ./../folly/Conv.h:27:0,
from detail/CacheLocality.cpp:25:
./../folly/FBString.h: In copy constructor ‘folly::dummy_fbstring_core<Char>::dummy_fbstring_core(const folly::dummy_fbstring_core<Char>&)’:
./../folly/FBString.h:871:9: error: class ‘folly::dummy_fbstring_core<Char>’ does not have any field named ‘backend_’
: backend_(another.backend_) {
^~~~~~~~
./../folly/FBString.h: In constructor ‘folly::dummy_fbstring_core<Char>::dummy_fbstring_core(const Char*, size_t)’:
./../folly/FBString.h:874:9: error: class ‘folly::dummy_fbstring_core<Char>’ does not have any field named ‘backend_’
: backend_(s, n) {
^~~~~~~~
./../folly/FBString.h: In member function ‘void folly::dummy_fbstring_core<Char>::swap(folly::dummy_fbstring_core<Char>&)’:
./../folly/FBString.h:877:5: error: ‘backend_’ was not declared in this scope
backend_.swap(rhs.backend_);
^~~~~~~~
./../folly/FBString.h: In member function ‘const Char* folly::dummy_fbstring_core<Char>::data() const’:
./../folly/FBString.h:880:12: error: ‘backend_’ was not declared in this scope
return backend_.data();
^~~~~~~~
./../folly/FBString.h: In member function ‘Char* folly::dummy_fbstring_core<Char>::mutable_data()’:
./../folly/FBString.h:884:14: error: ‘backend_’ was not declared in this scope
return &*backend_.begin();
^~~~~~~~
./../folly/FBString.h: In member function ‘void folly::dummy_fbstring_core<Char>::shrink(size_t)’:
./../folly/FBString.h:888:5: error: ‘backend_’ was not declared in this scope
backend_.resize(size() - delta);
^~~~~~~~
./../folly/FBString.h: In member function ‘Char* folly::dummy_fbstring_core<Char>::expand_noinit(size_t)’:
./../folly/FBString.h:892:5: error: ‘backend_’ was not declared in this scope
backend_.resize(size() + delta);
^~~~~~~~
./../folly/FBString.h: In member function ‘void folly::dummy_fbstring_core<Char>::push_back(Char)’:
./../folly/FBString.h:896:5: error: ‘backend_’ was not declared in this scope
backend_.push_back(c);
^~~~~~~~
./../folly/FBString.h: In member function ‘size_t folly::dummy_fbstring_core<Char>::size() const’:
./../folly/FBString.h:899:12: error: ‘backend_’ was not declared in this scope
return backend_.size();
^~~~~~~~
./../folly/FBString.h: In member function ‘size_t folly::dummy_fbstring_core<Char>::capacity() const’:
./../folly/FBString.h:902:12: error: ‘backend_’ was not declared in this scope
return backend_.capacity();
^~~~~~~~
./../folly/FBString.h: In member function ‘void folly::dummy_fbstring_core<Char>::reserve(size_t)’:
./../folly/FBString.h:908:5: error: ‘backend_’ was not declared in this scope
backend_.reserve(minCapacity);
^~~~~~~~
Makefile:1254: recipe for target 'detail/CacheLocality.lo' failed
make[2]: *** [detail/CacheLocality.lo] Error 1
make[2]: Leaving directory '/home/boris/folly/src/folly-0.57.0/folly'
Makefile:1311: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/boris/folly/src/folly-0.57.0/folly'
Makefile:836: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

That's solved with https://raw.githubusercontent.com/xnox/folly/ca2e9c7f1b6bf92f1f67ae627692547710932577/folly/Traits.h version of Traits.h
as suggested in https://github.com/facebook/folly/issues/303

But then it errors out with:
experimental/ProgramOptions.cpp: In function ‘void folly::{anonymous}::addGFlag(google::CommandLineFlagInfo&&, boost::program_options::options_description&, folly::ProgramOptionsStyle) [with T = bool]’:
experimental/ProgramOptions.cpp:234:42: error: invalid new-expression of abstract class type ‘folly::{anonymous}::BoolGFlagValueSemantic’
new BoolGFlagValueSemantic(gflagInfo),
^
That seens to be mitigated by using boost and boost-libs v1.58 (instead of current 1.60)

ppwwyyxx commented on 2016-04-18 18:11

It doesn't compile and here are the beginning of the errors:

In file included from ./../folly/FBString.h:59:0,
from ./../folly/Conv.h:27,
from ./../folly/Format.h:24,
from build/GenerateFingerprintTables.cpp:29:
./../folly/Traits.h:152:38: error: template argument 1 is invalid
struct IsRelocatable< __VA_ARGS__ > : std::true_type {};
^
./../folly/Traits.h:218:3: note: in expansion of macro ‘FOLLY_ASSUME_RELOCATABLE’
FOLLY_ASSUME_RELOCATABLE(__VA_ARGS__<T1, T2, T3>) } \
^
./../folly/Traits.h:424:1: note: in expansion of macro ‘FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3’
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3(std::basic_string);
^
./../folly/Traits.h:168:48: error: template argument 1 is invalid
struct has_nothrow_constructor< __VA_ARGS__ > : ::boost::true_type {};
^
./../folly/Traits.h:221:5: note: in expansion of macro ‘FOLLY_ASSUME_HAS_NOTHROW_CONSTRUCTOR’
FOLLY_ASSUME_HAS_NOTHROW_CONSTRUCTOR(__VA_ARGS__<T1, T2, T3>) }
^
./../folly/Traits.h:424:1: note: in expansion of macro ‘FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3’
FOLLY_ASSUME_FBVECTOR_COMPATIBLE_3(std::basic_string);
^
In file included from ./../folly/Conv.h:27:0,
from ./../folly/Format.h:24,
from build/GenerateFingerprintTables.cpp:29:
./../folly/FBString.h:912:3: error: reference to ‘basic_string’ is ambiguous
std::basic_string<Char> backend_;

dseg commented on 2015-06-01 13:41

@jdarnold Thanks for the information, updated the PKGBUILD.

All comments