-
Notifications
You must be signed in to change notification settings - Fork 131
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
build-wheel.py for duckdb package failed #1181
Comments
This is a compiler error, so a linker flag wouldn't fix it. The surrounding code is: # if defined(JEMALLOC_HAVE_SCHED_SETAFFINITY)
sched_getaffinity(0, sizeof(set), &set);
# else /* !JEMALLOC_HAVE_SCHED_SETAFFINITY */
pthread_getaffinity_np(pthread_self(), sizeof(set), &set);
# endif /* JEMALLOC_HAVE_SCHED_SETAFFINITY */ From searching the Android headers ($ANDROID_HOME/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include), I see that Android does have This can be done by editing duckdb_build/extension/jemalloc/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h to replace For how to apply and save this edit, see the build-wheel README under "If any changes are needed to make the build work". |
The build then fails with these errors:
Searching the sysroot/usr/include directory again, I found that these functions were added to Android in API level 24, so you can work around this by passing There may be other issues; I haven't tested any further. |
already check some issue, but unable to understand how to solve this error when try to prebuild python package for "duckdb"
here is my package meta.yaml
here is the build command that i run
python build-wheel.py --python 3.11 --abi arm64-v8a duckdb
look closer that the error happend here
after looking for a while, i found that i need to set -lpthread on gcc command,
how to achieve this and how to suppress some of the warning?
The text was updated successfully, but these errors were encountered: