folly: folly/python/executor_api.h No such file or directory
Hi, I’m trying the following steps to build folly,
git clone https://github.com/facebook/folly
cd folly
mkdir _build
cd _build
cmake -DBUILD_SHARED_LIBS=ON -DPYTHON_EXTENSIONS=ON -DBUILD_EXAMPLES=off -DBUILD_TESTS=off ../.
make -j4
make install
cmake build executed successfully.
But make -j4 got error at 97% execution raising folly/python/executor_api.h No such file or directory.
I checked the same location there is one executor.h file but couldn’t locate any executor_api.h file
Please suggest if someone got similar issue. Thanks.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 28 (14 by maintainers)
ha … i have a sponsor button on github i think… but i’d prefer you donate to a charity or other worthy cause. I am working on this today and still battling the errors i have for fiber_manager import related to multiple symbols defs/conflicts… not all the folly build flags do what they say. I think the setup needs to be very precise about what objects to link against. more to come but holidays going on here
On Mon, Dec 23, 2024 at 11:18 AM аэт @.***> wrote:
– Up-to-date: /tmp/folly/installed/folly/include/folly/python/executor_api.h ‘python3’ ‘-c’ ‘import sys,os; os.environ[‘PYTHONPATH’] = f’/tmp/folly/installed/folly/lib/python{sys.version_info.major}.{sys.version_info.minor}/site-packages’’ ‘/home/gmarzot/Projects/moq/folly/folly/python/setup.py’ ‘install’ ‘–prefix’ ‘/tmp/folly/installed/folly’ ‘–verbose’ ‘–single-version-externally-managed’ ‘–record=installed_files.txt’ – Up-to-date: /tmp/folly/installed/folly/include/folly/debugging/exception_tracer/ExceptionAbi.h – Up-to-date: /tmp/folly/installed/folly/include/folly/debugging/exception_tracer/ExceptionCounterLib.h – Up-to-date: /tmp/folly/installed/folly/include/folly/debugging/exception_tracer/ExceptionTracer.h – Up-to-date: /tmp/folly/installed/folly/include/folly/debugging/exception_tracer/ExceptionTracerLib.h – Up-to-date: /tmp/folly/installed/folly/include/folly/debugging/exception_tracer/StackTrace.h – Up-to-date: /tmp/folly/installed/folly/lib/libfolly_exception_tracer_base.a – Up-to-date: /tmp/folly/installed/folly/lib/libfolly_exception_tracer.a – Up-to-date: /tmp/folly/installed/folly/lib/libfolly_exception_counter.a Building on {distro=ubuntu, distro_vers=22.04, fb=off, fbsource=off, os=linux, shared_libs=off, test=off} Assessing fast_float… Assessing fmt… Assessing glog… Assessing googletest… Assessing libunwind… Assessing xz… Assessing folly… Building folly… (uv) gmarzot@GMARZOT-LAPTOP:~/Projects/moq/folly$ PYTHONPATH=/tmp/folly/installed/folly/lib/python3.13/site-packages python3 -c “import folly; print(‘Folly import successful’)” Folly import successful
progress… still some issues. pushing current branch updates
After resolving the missing ones, I can import all. Here is the setup.py:
DESTDIR=/tmp/folly python3.11 ./build/fbcode_builder/getdeps.py build folly --allow-system-packages --scratch-path /tmp/folly --extra-cmake-defines='{"CMAKE_CXX_FLAGS": "-fPIC $$(python3.11-config --includes) $$(python3.11-config --ldflags)", "PYTHON_EXTENSIONS": "ON"}' --no-testsI think that lib needs to be in the cython setup.py
likely there are others. what does your test script look like and what is PYTHONPATH?
On Sun, Dec 15, 2024 at 7:59 AM аэт @.***> wrote: