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

[Packaging][RPM][Gandiva] centos-9-stream-amd64 nightly build failure #32792

Closed
asfimport opened this issue Aug 26, 2022 · 3 comments
Closed

Comments

@asfimport
Copy link

In the Python refactoring PR there was a new failure in the nightly build (centos-9-stream-amd64) that doesn't look related to that specific PR:

https://github.com/ursacomputing/crossbow/runs/8027904112?check_suite_focus=true#step:6:4839

Reporter: Alenka Frim / @AlenkaF
Assignee: Kouhei Sutou / @kou

PRs and other links:

Note: This issue was originally created as ARROW-17536. Please see the migration documentation for further details.

@asfimport
Copy link
Author

@asfimport
Copy link
Author

Kouhei Sutou / @kou:
This is the problem:


/usr/bin/ld: /build/rpmbuild/BUILD/apache-arrow-9.0.0.dev783/c_glib/build/../../cpp/redhat-linux-build/release/libgandiva.so.1000: undefined reference to `std::__glibcxx_assert_fail(char const*, int, char const*, char const*)'

LLVM static libraries such as /usr/lib64/libLLVMMCJIT.a refers std::__glibcxx_assert_fail.

But why? The default g++ on CentOS Stream 9 is g++ (GCC) 11.3.1 20220421 (Red Hat 11.3.1-2) and it doesn't provides std::__glibcxx_assert_fail:


$ strings /lib64/libstdc++.so.6  | grep assert_fail
__assert_fail

But /usr/lib64/libLLVMMCJIT.a refers std::__glibcxx_assert_fail:


$ nm --demangle /usr/lib64/libLLVMMCJIT.a | grep assert_fail
                 U std::__glibcxx_assert_fail(char const*, int, char const*, char const*)

libstdc++.so in gcc-toolset-12 provides std::__glibcxx_assert_fail:


$ cat /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/libstdc++.so 
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf64-x86-64)
INPUT ( /usr/lib64/libstdc++.so.6 -lstdc++_nonshared )
nm --demangle /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/libstdc++_nonshared.a | grep assert
                 U std::__glibcxx_assert_fail(char const*, int, char const*, char const*)
0000000000000000 T std::__glibcxx_assert_fail(char const*, int, char const*, char const*)

Was CentOS Stream 9's LLVM package built with gcc-toolset-12?

CentOS Stream 9's LLVM package's repository: https://gitlab.com/redhat/centos-stream/rpms/llvm

@asfimport
Copy link
Author

Kouhei Sutou / @kou:
Issue resolved by pull request 13984
#13984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants