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

how can I install toolchain on redhat 8 ppc64le #24

Open
milind69 opened this issue May 20, 2021 · 3 comments
Open

how can I install toolchain on redhat 8 ppc64le #24

milind69 opened this issue May 20, 2021 · 3 comments
Labels
question Further information is requested

Comments

@milind69
Copy link

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

@theopolis theopolis added the question Further information is requested label May 25, 2021
@theopolis
Copy link
Member

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.

@milind69
Copy link
Author

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 ..

@milind69
Copy link
Author

milind69 commented Jun 2, 2021

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

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

No branches or pull requests

2 participants