Open milind69 opened 3 years ago
Hi @milind69, there is no osquery toolchain with ppc64le at this time. You will have to rebuild this toolchain with the support. If you look at recent commits you will see how aarch64 was added.
Hi @theopolis thanks for reply I tried compiling it on both ppc64le abd x86_64 machine but failed , I tried updating cmake variable from cross complication. Honestly I am not very well versed with cross compilation but let me try one more time . I want to compile ppc64le from x86_64 host and I assume it is doable with cmake. But if not I can try on ppc64le and submit the errors I am getting ..
Hi @theopolis I copied crosstool-ng-config-aarch64 made suitable changes and try build on ppc64le host I always get error building multilib the recent error i get is
[INFO ] Installing pass-2 core C gcc compiler [EXTRA] Configuring core C gcc compiler [EXTRA] Building gcc [EXTRA] Installing gcc [EXTRA] Housekeeping for core gcc compiler [EXTRA] '' --> lib (gcc) lib64 (os) [INFO ] Installing pass-2 core C gcc compiler: done in 302.63s (at 14:14) [INFO ] ================================================================= [INFO ] Installing C library [INFO ] ================================================================= [INFO ] Building for multilib 1/1: '' [EXTRA] Cleaning up start files [EXTRA] Configuring C library [EXTRA] Building C library [ERROR] ../sysdeps/powerpc/powerpc64/power6/memset.S:254: Error: operand out of range (5 is not between 0 and 1) [ERROR] ../sysdeps/powerpc/powerpc64/power6/memset.S:254: Error: operand out of range (128 is not between 0 and 31) [ERROR] ../sysdeps/powerpc/powerpc64/power6/memset.S:254: Error: missing operand [ERROR] make[3]: [/opt/osquery-toolchain/stage0/crosstool-ng/.build/powerpc64le-osquery-linux-gnu/build/build-libc-final/multilib/sysd-rules:1651: /opt/osquery-toolchain/stage0/crosstool-ng/.build/powerpc64le-osquery-linux-gnu/build/build-libc-final/multilib/string/memset-power6.o] Error 1 [ERROR] make[3]: Waiting for unfinished jobs.... [ERROR] make[2]: [Makefile:214: string/subdir_lib] Error 2 [ERROR] make[1]: [Makefile:9: all] Error 2 [ERROR] [ERROR] >> [ERROR] >> Build failed in step 'Building for multilib 1/1: ''' [ERROR] >> called in step 'Installing C library' [ERROR] >> called in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@376] [ERROR] >> called from: glibc_backend_once[scripts/build/libc/glibc.sh@395] [ERROR] >> called from: CT_IterateMultilibs[scripts/functions@1586] [ERROR] >> called from: glibc_backend[scripts/build/libc/glibc.sh@74] [ERROR] >> called from: glibc_main[scripts/build/libc/glibc.sh@44] [ERROR] >> called from: do_libc_main[scripts/build/libc.sh@33] [ERROR] >> called from: main[scripts/crosstool-NG.sh@696] [ERROR] >> [ERROR] >> There is a list of known issues, some with workarounds, in: [ERROR] >> https://crosstool-ng.github.io/docs/known-issues/ [ERROR] >> [ERROR] >> If you feel this is a bug in crosstool-NG, report it at: [ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/ [ERROR] >> [ERROR] >> Make sure your report includes all the information pertinent to this issue
i need to install osquery on redhat 8 ppc64le I am trying to compile it but when installing toolchain I get the error below
osquery-toolchain# ./build.sh Unspported architecture
where can I get supported toolchain