Package Details: folly 2024.10.28.00-1

Git Clone URL: https://aur.archlinux.org/folly.git (read-only, click to copy)
Package Base: folly
Description: An open-source C++ library developed and used at Facebook
Upstream URL: https://github.com/facebook/folly
Licenses: Apache-2.0
Provides: libfolly.so, libfollybenchmark.so, libfolly_test_util.so
Submitter: dseg
Maintainer: ftiasch (MrAnno, carsme)
Last Packager: carsme
Votes: 7
Popularity: 0.000884
First Submitted: 2015-03-20 08:29 (UTC)
Last Updated: 2024-11-03 16:14 (UTC)

Pinned Comments

carsme commented on 2023-12-07 04:02 (UTC)

BREAKING CHANGE: This package now builds shared objects:

/usr/lib/libfolly.so
/usr/lib/libfolly_test_util.so
/usr/lib/libfollybenchmark.so

instead of the static libraries:

/usr/lib/libfolly.a
/usr/lib/libfolly_exception_counter.a
/usr/lib/libfolly_exception_tracer.a
/usr/lib/libfolly_exception_tracer_base.a
/usr/lib/libfolly_test_util.a
/usr/lib/libfollybenchmark.a

Downstream packages must move folly from the makedepends to depends array to stay functional.

We are doing this change since dynamic rather than static linking between packages is more in line with Arch Linux packaging practices (or just Linux packaging practices in general).

Latest Comments

« First ‹ Previous 1 2 3 4 5

sleeping commented on 2017-03-08 18:51 (UTC)

I'm getting build errors too.

joker512 commented on 2017-01-19 16:29 (UTC)

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 (UTC)

Sorry, just fixed build errors.

peace commented on 2016-10-08 14:55 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

@jdarnold Thanks for the information, updated the PKGBUILD.

jdarnold commented on 2015-05-28 13:44 (UTC)

I had to change a line in the PKGBUILD to get it to build with gcc 5: LIBS=-latomic ./configure --prefix=/usr --disable-static See this for more info on -latomic: https://github.com/facebook/hhvm/issues/5217