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

s390x can't build openssl-src #63

Open
messense opened this issue Sep 19, 2022 · 3 comments
Open

s390x can't build openssl-src #63

messense opened this issue Sep 19, 2022 · 3 comments
Labels

Comments

@messense
Copy link
Member

  = note: /usr/local/musl/bin/../lib/gcc/s390x-unknown-linux-musl/9.2.0/../../../../s390x-unknown-linux-musl/bin/ld: /home/rust/src/target/s390x-unknown-linux-musl/debug/deps/libopenssl_sys-70172c64409e3e90.rlib(curve448.o): in function `recode_wnaf':
          /home/rust/src/target/s390x-unknown-linux-musl/debug/build/openssl-sys-1de3ca3326f5bf22/out/openssl-build/build/src/crypto/ec/curve448/curve448.c:575: undefined reference to `__ctzdi2'
          /usr/local/musl/bin/../lib/gcc/s390x-unknown-linux-musl/9.2.0/../../../../s390x-unknown-linux-musl/bin/ld: read-only segment has dynamic relocations
          collect2: error: ld returned 1 exit status

Hmm, not sure what's going on.

Originally posted by @messense in #62 (comment)

@messense messense added the bug label Sep 19, 2022
@messense
Copy link
Member Author

messense commented Sep 21, 2022

On GCC 11.2.0

  = note: /usr/local/musl/bin/../lib/gcc/s390x-unknown-linux-musl/11.2.0/../../../../s390x-unknown-linux-musl/bin/ld: /usr/local/musl/bin/../lib/gcc/s390x-unknown-linux-musl/11.2.0/../../../../s390x-unknown-linux-musl/bin/ld: DWARF error: can't find .debug_ranges section.
          /home/rust/src/target/s390x-unknown-linux-musl/debug/deps/libopenssl_sys-70172c64409e3e90.rlib(curve448.o): in function `recode_wnaf':
          curve448.c:(.text.recode_wnaf+0xee): undefined reference to `__ctzdi2'
          /usr/local/musl/bin/../lib/gcc/s390x-unknown-linux-musl/11.2.0/../../../../s390x-unknown-linux-musl/bin/ld: read-only segment has dynamic relocations
          collect2: error: ld returned 1 exit status

@paulwratt
Copy link

paulwratt commented Sep 21, 2022

__ctzdi2 should be in a (linux/s390) header somewhere. I am pretty sure its timezone related. I cant see anything Musl related but there was this (note not exactly the same):

https://stackoverflow.com/questions/40302458/undefined-symbol-ctzdi2

It implies its possible its GCC (the glibc?). What was that other error you got on aarch64 which forced you to change it back to using GCC 9.2?

@messense
Copy link
Member Author

What was that other error you got on aarch64 which forced you to change it back to using GCC 9.2?

#67 (comment)

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

No branches or pull requests

2 participants