Skip to content
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

Backport PR #59906 on branch 2.3.x (BLD: Fix armv7 build) #59937

Open
wants to merge 2 commits into
base: 2.3.x
Choose a base branch
from

Conversation

meeseeksmachine
Copy link
Contributor

Backport PR #59906: BLD: Fix armv7 build

@lumberbot-app lumberbot-app bot added this to the 2.3 milestone Oct 2, 2024
@lumberbot-app lumberbot-app bot added Build Library building on various platforms ARM aarch64 architecture labels Oct 2, 2024
@rhshadrach
Copy link
Member

On the dev mailing list, there is an email on the 2.2 documentation not being visible for the 2.2 docs. I want to see if this is fixed in 2.3.

@rhshadrach
Copy link
Member

/preview

1 similar comment
@rhshadrach
Copy link
Member

/preview

@cdce8p
Copy link
Contributor

cdce8p commented Oct 16, 2024

It anything missing here? Both test failures seem to be unrelated.

@rhshadrach
Copy link
Member

Friendly ping @WillAyd

Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Nov 21, 2024
@cdce8p
Copy link
Contributor

cdce8p commented Nov 21, 2024

@WillAyd Would you mind taking a quick look at this? It's just a backport PR.

@esaaprillia
Copy link

@cdce8p @meeseeksmachine

thank you for the patch. this fixes when cross compiling

2024-11-28T12:38:44.7548560Z [87/151] Compiling C object pandas/_libs/json.cpython-311-aarch64-linux-musl.so.p/src_vendored_ujson_python_JSONtoObj.c.o
2024-11-28T12:38:44.7550384Z FAILED: pandas/_libs/json.cpython-311-aarch64-linux-musl.so.p/src_vendored_ujson_python_JSONtoObj.c.o
2024-11-28T12:38:44.7559848Z aarch64-openwrt-linux-musl-gcc -Ipandas/_libs/json.cpython-311-aarch64-linux-musl.so.p -Ipandas/_libs -I../pandas/_libs -I../../../../../staging_dir/hostpkg/lib/python3.11/site-packages/numpy/_core/include -I../pandas/_libs/include -I/home/staging_dir/target-aarch64_generic_musl/usr>
2024-11-28T12:38:44.7570218Z In file included from /home/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/include/fortify/string.h:25,
2024-11-28T12:38:44.7571561Z                  from ../pandas/_libs/include/pandas/portable.h:12,
2024-11-28T12:38:44.7583849Z                  from ../pandas/_libs/include/pandas/vendored/ujson/lib/ultrajson.h:55,
2024-11-28T12:38:44.7585802Z                  from ../pandas/_libs/src/vendored/ujson/python/JSONtoObj.c:41:
2024-11-28T12:38:44.7587339Z /home/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/include/fortify/stdlib.h:40:13: error: 'realpath' undeclared here (not in a function)
2024-11-28T12:38:44.7589230Z    40 | _FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r)
2024-11-28T12:38:44.7589874Z       |             ^~~~~~~~
2024-11-28T12:38:44.7591172Z /home/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/include/fortify/fortify-headers.h:20:40: note: in definition of macro '_FORTIFY_ORIG'
2024-11-28T12:38:44.7592808Z    20 | #define _FORTIFY_ORIG(p,fn) __typeof__(fn) __orig_##fn __asm__(_FORTIFY_STR(p) #fn)
2024-11-28T12:38:44.7593782Z       |                                        ^~
2024-11-28T12:38:44.7595073Z /home/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/include/fortify/stdlib.h:40:1: note: in expansion of macro '_FORTIFY_FN'
2024-11-28T12:38:44.7596536Z    40 | _FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r)
2024-11-28T12:38:44.7597197Z       | ^~~~~~~~~~~
2024-11-28T12:38:44.7598205Z In file included from /home/staging_dir/target-aarch64_generic_musl/usr/include/python3.11/Python.h:23,
2024-11-28T12:38:44.7599472Z                  from ../pandas/_libs/src/vendored/ujson/python/JSONtoObj.c:43:
2024-11-28T12:38:44.7600749Z /home/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/include/fortify/stdlib.h: In function 'realpath':
2024-11-28T12:38:44.7602791Z /home/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/include/fortify/stdlib.h:43:2: error: #error PATH_MAX unset. A fortified realpath will not work.
2024-11-28T12:38:44.7604340Z    43 | #error PATH_MAX unset. A fortified realpath will not work.
2024-11-28T12:38:44.7604959Z       |  ^~~~~
2024-11-28T12:38:44.7606244Z /home/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/include/fortify/stdlib.h:40:50: warning: unused parameter '__p' [-Wunused-parameter]
2024-11-28T12:38:44.7607792Z    40 | _FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r)
2024-11-28T12:38:44.7608493Z       |                                      ~~~~~~~~~~~~^~~
2024-11-28T12:38:44.7609863Z /home/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/include/fortify/stdlib.h:40:61: warning: unused parameter '__r' [-Wunused-parameter]
2024-11-28T12:38:44.7611649Z    40 | _FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r)
2024-11-28T12:38:44.7612370Z       |                                                       ~~~~~~^~~
2024-11-28T12:38:45.2830764Z [88/151] Compiling C object pandas/_libs/json.cpython-311-aarch64-linux-musl.so.p/src_vendored_ujson_python_objToJSON.c.o
2024-11-28T12:38:47.6451654Z [89/151] Compiling C object pandas/_libs/join.cpython-311-aarch64-linux-musl.so.p/meson-generated_pandas__libs_join.pyx.c.o
2024-11-28T12:38:47.6453394Z In file included from pandas/_libs/join.cpython-311-aarch64-linux-musl.so.p/pandas/_libs/join.pyx.c:1232:
2024-11-28T12:38:47.6646929Z ../pandas/_libs/include/pandas/vendored/klib/khash_python.h: In function 'traced_realloc':
2024-11-28T12:38:47.6648317Z ../pandas/_libs/include/pandas/vendored/klib/khash_python.h:48:7: warning: pointer 'old_ptr' may be used after 'realloc' [-Wuse-after-free]
2024-11-28T12:38:47.6649452Z    48 |       PyTraceMalloc_Untrack(KHASH_TRACE_DOMAIN, (uintptr_t)old_ptr);
2024-11-28T12:38:47.6650062Z       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-11-28T12:38:47.6650826Z ../pandas/_libs/include/pandas/vendored/klib/khash_python.h:45:15: note: call to 'realloc' here
2024-11-28T12:38:47.6651584Z    45 |   void *ptr = realloc(old_ptr, size);
2024-11-28T12:38:47.6651996Z       |               ^~~~~~~~~~~~~~~~~~~~~~
2024-11-28T12:38:50.4323281Z [90/151] Compiling C object pandas/_libs/groupby.cpython-311-aarch64-linux-musl.so.p/meson-generated_pandas__libs_groupby.pyx.c.o
2024-11-28T12:38:53.4355266Z [91/151] Compiling C object pandas/_libs/parsers.cpython-311-aarch64-linux-musl.so.p/meson-generated_pandas__libs_parsers.pyx.c.o
2024-11-28T12:38:53.4357132Z In file included from pandas/_libs/parsers.cpython-311-aarch64-linux-musl.so.p/pandas/_libs/parsers.pyx.c:1236:
2024-11-28T12:38:53.4358412Z ../pandas/_libs/include/pandas/vendored/klib/khash_python.h: In function 'traced_realloc':
2024-11-28T12:38:53.4359697Z ../pandas/_libs/include/pandas/vendored/klib/khash_python.h:48:7: warning: pointer 'old_ptr' may be used after 'realloc' [-Wuse-after-free]
2024-11-28T12:38:53.4360857Z    48 |       PyTraceMalloc_Untrack(KHASH_TRACE_DOMAIN, (uintptr_t)old_ptr);
2024-11-28T12:38:53.4361604Z       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-11-28T12:38:53.4362363Z ../pandas/_libs/include/pandas/vendored/klib/khash_python.h:45:15: note: call to 'realloc' here
2024-11-28T12:38:53.4363103Z    45 |   void *ptr = realloc(old_ptr, size);
2024-11-28T12:38:53.4363510Z       |               ^~~~~~~~~~~~~~~~~~~~~~
2024-11-28T12:38:53.7753284Z [92/151] Compiling C object pandas/_libs/hashtable.cpython-311-aarch64-linux-musl.so.p/meson-generated_pandas__libs_hashtable.pyx.c.o
2024-11-28T12:38:53.7755107Z In file included from pandas/_libs/hashtable.cpython-311-aarch64-linux-musl.so.p/pandas/_libs/hashtable.pyx.c:1232:
2024-11-28T12:38:53.7756252Z ../pandas/_libs/include/pandas/vendored/klib/khash_python.h: In function 'traced_realloc':
2024-11-28T12:38:53.7757349Z ../pandas/_libs/include/pandas/vendored/klib/khash_python.h:48:7: warning: pointer 'old_ptr' may be used after 'realloc' [-Wuse-after-free]
2024-11-28T12:38:53.7758308Z    48 |       PyTraceMalloc_Untrack(KHASH_TRACE_DOMAIN, (uintptr_t)old_ptr);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM aarch64 architecture Build Library building on various platforms Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants