logdna / logdna-agent-v2

The blazingly fast, resource efficient log collection client
https://logdna.com
MIT License
65 stars 46 forks source link

Do we have plan to support s390 arch? #405

Open bjzhangl opened 2 years ago

bjzhangl commented 2 years ago

Since logdna-agent is deprecated soon, we want to use v2 instead. But v2 does not support s390, do we have a plan to support it?

bjzhangl commented 2 years ago

This is the error message when building logdna-agent-v2 on s390:

cargo build --release
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /root/zhangli/logdna-agent-v2/bin/Cargo.toml
workspace: /root/zhangli/logdna-agent-v2/Cargo.toml
   Compiling ring v0.16.20
   Compiling tikv-jemalloc-sys v0.5.1+5.3.0-patched
   Compiling pcre2-sys v0.2.4 (https://github.com/logdna/rust-pcre2.git?branch=0.2#8096355b)
   Compiling rayon-core v1.9.3
error: failed to run custom build command for `ring v0.16.20`

Caused by:
  process didn't exit successfully: `/root/zhangli/logdna-agent-v2/target/release/build/ring-e9310a4045e1ec66/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /root/.cargo/registry/src/github.com-eae4ba8cbf2ce1c7/ring-0.16.20/build.rs:358:10
warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:

warning: pcre2/src/pcre2_jit_compile.c:81:2: error: #error Unsupported architecture
warning:    81 | #error Unsupported architecture
warning:       |  ^~~~~
warning: In file included from pcre2/src/pcre2_jit_compile.c:12706:
warning: pcre2/src/pcre2_jit_misc.c: In function ‘pcre2_jit_free_unused_memory_8’:
warning: pcre2/src/pcre2_jit_misc.c:113:1: warning: implicit declaration of function ‘sljit_free_unused_memory_exec’; did you mean ‘pcre2_jit_free_unused_memory_32’? [-Wimplicit-function-declaration]
warning:   113 | sljit_free_unused_memory_exec();
warning:       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning:       | pcre2_jit_free_unused_memory_32
warning: In file included from pcre2/src/sljit/sljitLir.c:27,
warning:                  from pcre2/src/pcre2_jit_compile.c:78:
warning: pcre2/src/pcre2_jit_compile.c: At top level:
warning: pcre2/src/sljit/sljitLir.h:1456:36: warning: ‘sljit_get_float_register_index’ declared ‘static’ but never defined [-Wunused-function]
warning:  1456 | SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_get_float_register_index(sljit_s32 reg);
warning:       |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: failed to run custom build command for `pcre2-sys v0.2.4 (https://github.com/logdna/rust-pcre2.git?branch=0.2#8096355b)`
c-nixon commented 2 years ago

Hi, yeh the ring dependency is going to be the awkward thing to fix for s390. Ring is the defacto standard crypto primitive library within the rust ecosystem, based on the crypto primitives from boring ssl, it's platform support isn't 100% as you have discovered.

We'll have to:

We have a general "port the agent to s390x" ticket in our backlog, but the actual work involved hasn't been scoped

bjzhangl commented 2 years ago

@c-nixon Thanks for the information.

txiaoyi commented 2 years ago

@c-nixon Will you have a forecast or timeline to work on s390x support?

clnperez commented 1 year ago

we're also interested in this for ppc64le. has anything progressed, or anything we can do to help?

dkhokhlov commented 1 year ago

@clnperez contributions are welcome. specifically - to resolve build problems on these ^^^ targets.