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

Depdency failures while installing depedencies on power #1524

Open
ashwinik30 opened this issue May 9, 2023 · 8 comments
Open

Depdency failures while installing depedencies on power #1524

ashwinik30 opened this issue May 9, 2023 · 8 comments
Labels
bug Researched, reproducible, committed to fix waiting on author Additional information is needed form the author of the issue

Comments

@ashwinik30
Copy link

ISSUE TYPE
  • Bug Report
SUMMARY

Testing ansible -navigator repository on power

steps done :
install python depdencies >3.9
git clone ansible-navigator repository
git clone https://github.com/ansible/ansible-navigator
pip3 install -e .[test]

ANSIBLE-NAVIGATOR VERSION
[root@ibm-p9z-15-lp14 ansible-navigator]# ansible --version
ansible [core 2.14.3]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.9.13 (main, Jun 15 2022, 11:39:48) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)] (/usr/bin/python3.9)
  jinja version = 3.1.2
  libyaml = False

CONFIGURATION
LOG FILE
STEPS TO REPRODUCE
EXPECTED RESULTS

It should install depdencies successfully
Should pass build and tests for power

ACTUAL RESULTS

depdencies not installing
facing below issue

ansible [core 2.14.3]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.9.13 (main, Jun 15 2022, 11:39:48) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)] (/usr/bin/python3.9)
  jinja version = 3.1.2
  libyaml = False
ADDITIONAL INFORMATION

image

@ashwinik30 ashwinik30 added bug Researched, reproducible, committed to fix new New issues and PRs to triaged labels May 9, 2023
@cidrblock
Copy link
Collaborator

Looks like the oniguruma package is missing, we haven't seen this before it is usually installed.

Can you see if it is available ?

https://github.com/kkos/oniguruma <= the source

@shatakshiiii shatakshiiii removed the new New issues and PRs to triaged label May 15, 2023
@shreyakajbaje
Copy link

Hi @cidrblock this is power specific error as not seen on x86. please suggest.

@cidrblock
Copy link
Collaborator

I found this: https://techglimpse.com/install-oniguruma-on-ppc64le-machine-with-centos/

Can you try that? You'll need to have the system onigurama installed.

If it works, can you post back here and let us know...

@cidrblock cidrblock added the waiting on author Additional information is needed form the author of the issue label May 17, 2023
@shreyakajbaje
Copy link

shreyakajbaje commented Jun 5, 2023

Implemented mentioned steps for onigurama installation logs -

make install
Making install in .
make[1]: Entering directory '/ansible-navigator/onig-5.9.6'
make[2]: Entering directory '/ansible-navigator/onig-5.9.6'
 /usr/bin/mkdir -p '/usr/local/onig-5.9.6/bin'
 /usr/bin/install -c onig-config '/usr/local/onig-5.9.6/bin'
 /usr/bin/mkdir -p '/usr/local/onig-5.9.6/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libonig.la '/usr/local/onig-5.9.6/lib'
libtool: install: /usr/bin/install -c .libs/libonig.so.2.0.0 /usr/local/onig-5.9.6/lib/libonig.so.2.0.0
libtool: install: (cd /usr/local/onig-5.9.6/lib && { ln -s -f libonig.so.2.0.0 libonig.so.2 || { rm -f libonig.so.2 && ln -s libonig.so.2.0.0 libonig.so.2; }; })
libtool: install: (cd /usr/local/onig-5.9.6/lib && { ln -s -f libonig.so.2.0.0 libonig.so || { rm -f libonig.so && ln -s libonig.so.2.0.0 libonig.so; }; })
libtool: install: /usr/bin/install -c .libs/libonig.lai /usr/local/onig-5.9.6/lib/libonig.la
libtool: install: /usr/bin/install -c .libs/libonig.a /usr/local/onig-5.9.6/lib/libonig.a
libtool: install: chmod 644 /usr/local/onig-5.9.6/lib/libonig.a
libtool: install: ranlib /usr/local/onig-5.9.6/lib/libonig.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/onig-5.9.6/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/onig-5.9.6/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/usr/local/onig-5.9.6/include'
 /usr/bin/install -c -m 644 oniguruma.h oniggnu.h onigposix.h '/usr/local/onig-5.9.6/include'
 /usr/bin/mkdir -p '/usr/local/onig-5.9.6/lib/pkgconfig'
 /usr/bin/install -c -m 644 oniguruma.pc '/usr/local/onig-5.9.6/lib/pkgconfig'
make[2]: Leaving directory '/ansible-navigator/onig-5.9.6'
make[1]: Leaving directory '/ansible-navigator/onig-5.9.6'
Making install in sample
make[1]: Entering directory '/ansible-navigator/onig-5.9.6/sample'
make[2]: Entering directory '/ansible-navigator/onig-5.9.6/sample'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/ansible-navigator/onig-5.9.6/sample'
make[1]: Leaving directory '/ansible-navigator/onig-5.9.6/sample'

still error persists -

      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for onigurumacffi
ERROR: Could not build wheels for onigurumacffi, which is required to install pyproject.toml-based projects

py39: exit 1 (19.95 seconds) /ansible-navigator> python -I -m pip install -e '.[test]' pid=10289
  py39: FAIL code 1 (20.05 seconds)
  evaluation failed :( (20.32 seconds)

@cidrblock
Copy link
Collaborator

cidrblock commented Jun 8, 2023

Can you try just this?

pip install onigurumacffi --user

and provide the output here?

thanks!

@shreyakajbaje
Copy link

pip3 install onigurumacffi --user
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting onigurumacffi
  Using cached onigurumacffi-1.2.0.tar.gz (5.7 kB)
Requirement already satisfied: cffi>=1 in /usr/local/lib64/python3.9/site-packages (from onigurumacffi) (1.15.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/site-packages (from cffi>=1->onigurumacffi) (2.21)
Building wheels for collected packages: onigurumacffi
  Building wheel for onigurumacffi (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tonxsvrs/onigurumacffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tonxsvrs/onigurumacffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-x7m8bid6
       cwd: /tmp/pip-install-tonxsvrs/onigurumacffi/
  Complete output (109 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-ppc64le-3.9
  copying onigurumacffi.py -> build/lib.linux-ppc64le-3.9
  running build_ext
  generating cffi module 'build/temp.linux-ppc64le-3.9/_onigurumacffi.c'
  creating build/temp.linux-ppc64le-3.9
  building '_onigurumacffi' extension
  creating build/temp.linux-ppc64le-3.9/build
  creating build/temp.linux-ppc64le-3.9/build/temp.linux-ppc64le-3.9
  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -funwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -funwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -funwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.9 -c build/temp.linux-ppc64le-3.9/_onigurumacffi.c -o build/temp.linux-ppc64le-3.9/build/temp.linux-ppc64le-3.9/_onigurumacffi.o
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:624:5: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
       OnigRegSet* set,
       ^~~~~~~~~~
       OnigRegex
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:821:38: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
   static void _cffi_d_onig_regset_free(OnigRegSet * x0)
                                        ^~~~~~~~~~
                                        OnigRegex
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_f_onig_regset_free’:
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:829:3: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
     OnigRegSet * x0;
     ^~~~~~~~~~
     OnigRegex
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:836:39: error: ‘OnigRegSet’ undeclared (first use in this function); did you mean ‘OnigRegex’?
       x0 = ((size_t)datasize) <= 640 ? (OnigRegSet *)alloca((size_t)datasize) : NULL;
                                         ^~~~~~~~~~
                                         OnigRegex
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:836:39: note: each undeclared identifier is reported only once for each function it appears in
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:836:51: error: expected expression before ‘)’ token
       x0 = ((size_t)datasize) <= 640 ? (OnigRegSet *)alloca((size_t)datasize) : NULL;
                                                     ^
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:844:5: warning: implicit declaration of function ‘onig_regset_free’; did you mean ‘onig_region_free’? [-Wimplicit-function-declaration]
     { onig_regset_free(x0); }
       ^~~~~~~~~~~~~~~~
       onig_region_free
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c: At top level:
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:857:36: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
   static int _cffi_d_onig_regset_new(OnigRegSet * * x0, int x1, regex_t * * x2)
                                      ^~~~~~~~~~
                                      OnigRegex
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_f_onig_regset_new’:
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:865:3: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
     OnigRegSet * * x0;
     ^~~~~~~~~~
     OnigRegex
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:882:39: error: ‘OnigRegSet’ undeclared (first use in this function); did you mean ‘OnigRegex’?
       x0 = ((size_t)datasize) <= 640 ? (OnigRegSet * *)alloca((size_t)datasize) : NULL;
                                         ^~~~~~~~~~
                                         OnigRegex
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:882:53: error: expected expression before ‘)’ token
       x0 = ((size_t)datasize) <= 640 ? (OnigRegSet * *)alloca((size_t)datasize) : NULL;
                                                       ^
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:903:14: warning: implicit declaration of function ‘onig_regset_new’; did you mean ‘onig_region_new’? [-Wimplicit-function-declaration]
     { result = onig_regset_new(x0, x1, x2); }
                ^~~~~~~~~~~~~~~
                onig_region_new
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c: At top level:
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1156:43: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
   static int _cffi_d_onigcffi_regset_search(OnigRegSet * x0, unsigned char const * x1, size_t x2, size_t x3, OnigRegion * * x4, unsigned int x5)
                                             ^~~~~~~~~~
                                             OnigRegex
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_f_onigcffi_regset_search’:
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1164:3: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
     OnigRegSet * x0;
     ^~~~~~~~~~
     OnigRegex
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1187:39: error: ‘OnigRegSet’ undeclared (first use in this function); did you mean ‘OnigRegex’?
       x0 = ((size_t)datasize) <= 640 ? (OnigRegSet *)alloca((size_t)datasize) : NULL;
                                         ^~~~~~~~~~
                                         OnigRegex
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1187:51: error: expected expression before ‘)’ token
       x0 = ((size_t)datasize) <= 640 ? (OnigRegSet *)alloca((size_t)datasize) : NULL;
                                                     ^
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1225:14: warning: implicit declaration of function ‘onigcffi_regset_search’; did you mean ‘onigcffi_search’? [-Wimplicit-function-declaration]
     { result = onigcffi_regset_search(x0, x1, x2, x3, x4, x5); }
                ^~~~~~~~~~~~~~~~~~~~~~
                onigcffi_search
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_const_ONIG_OPTION_NOT_BEGIN_POSITION’:
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1364:12: error: ‘ONIG_OPTION_NOT_BEGIN_POSITION’ undeclared (first use in this function); did you mean ‘_cffi_const_ONIG_OPTION_NOT_BEGIN_POSITION’?
     int n = (ONIG_OPTION_NOT_BEGIN_POSITION) <= 0;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              _cffi_const_ONIG_OPTION_NOT_BEGIN_POSITION
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_const_ONIG_OPTION_NOT_BEGIN_STRING’:
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1371:12: error: ‘ONIG_OPTION_NOT_BEGIN_STRING’ undeclared (first use in this function); did you mean ‘ONIG_OPTION_NEGATE_SINGLELINE’?
     int n = (ONIG_OPTION_NOT_BEGIN_STRING) <= 0;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
              ONIG_OPTION_NEGATE_SINGLELINE
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_const_ONIG_OPTION_NOT_END_STRING’:
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1378:12: error: ‘ONIG_OPTION_NOT_END_STRING’ undeclared (first use in this function); did you mean ‘ONIG_OPTION_EXTEND’?
     int n = (ONIG_OPTION_NOT_END_STRING) <= 0;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
              ONIG_OPTION_EXTEND
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c: At top level:
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1417:106: error: ‘_cffi_d_onig_regset_free’ undeclared here (not in a function); did you mean ‘_cffi_f_onig_regset_free’?
     { "onig_regset_free", (void *)_cffi_f_onig_regset_free, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 40), (void *)_cffi_d_onig_regset_free },
                                                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
                                                                                                            _cffi_f_onig_regset_free
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1418:103: error: ‘_cffi_d_onig_regset_new’ undeclared here (not in a function); did you mean ‘_cffi_f_onig_regset_new’?
     { "onig_regset_new", (void *)_cffi_f_onig_regset_new, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 4), (void *)_cffi_d_onig_regset_new },
                                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                                         _cffi_f_onig_regset_new
  build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1424:117: error: ‘_cffi_d_onigcffi_regset_search’ undeclared here (not in a function); did you mean ‘_cffi_f_onigcffi_regset_search’?
     { "onigcffi_regset_search", (void *)_cffi_f_onigcffi_regset_search, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 9), (void *)_cffi_d_onigcffi_regset_search },
                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                                                       _cffi_f_onigcffi_regset_search
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for onigurumacffi
  Running setup.py clean for onigurumacffi
Failed to build onigurumacffi
Installing collected packages: onigurumacffi
    Running setup.py install for onigurumacffi ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tonxsvrs/onigurumacffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tonxsvrs/onigurumacffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-h8tlhtre/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /root/.local/include/python3.9/onigurumacffi
         cwd: /tmp/pip-install-tonxsvrs/onigurumacffi/
    Complete output (109 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-ppc64le-3.9
    copying onigurumacffi.py -> build/lib.linux-ppc64le-3.9
    running build_ext
    generating cffi module 'build/temp.linux-ppc64le-3.9/_onigurumacffi.c'
    creating build/temp.linux-ppc64le-3.9
    building '_onigurumacffi' extension
    creating build/temp.linux-ppc64le-3.9/build
    creating build/temp.linux-ppc64le-3.9/build/temp.linux-ppc64le-3.9
    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -funwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -funwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -funwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.9 -c build/temp.linux-ppc64le-3.9/_onigurumacffi.c -o build/temp.linux-ppc64le-3.9/build/temp.linux-ppc64le-3.9/_onigurumacffi.o
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:624:5: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
         OnigRegSet* set,
         ^~~~~~~~~~
         OnigRegex
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:821:38: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
     static void _cffi_d_onig_regset_free(OnigRegSet * x0)
                                          ^~~~~~~~~~
                                          OnigRegex
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_f_onig_regset_free’:
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:829:3: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
       OnigRegSet * x0;
       ^~~~~~~~~~
       OnigRegex
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:836:39: error: ‘OnigRegSet’ undeclared (first use in this function); did you mean ‘OnigRegex’?
         x0 = ((size_t)datasize) <= 640 ? (OnigRegSet *)alloca((size_t)datasize) : NULL;
                                           ^~~~~~~~~~
                                           OnigRegex
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:836:39: note: each undeclared identifier is reported only once for each function it appears in
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:836:51: error: expected expression before ‘)’ token
         x0 = ((size_t)datasize) <= 640 ? (OnigRegSet *)alloca((size_t)datasize) : NULL;
                                                       ^
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:844:5: warning: implicit declaration of function ‘onig_regset_free’; did you mean ‘onig_region_free’? [-Wimplicit-function-declaration]
       { onig_regset_free(x0); }
         ^~~~~~~~~~~~~~~~
         onig_region_free
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c: At top level:
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:857:36: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
     static int _cffi_d_onig_regset_new(OnigRegSet * * x0, int x1, regex_t * * x2)
                                        ^~~~~~~~~~
                                        OnigRegex
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_f_onig_regset_new’:
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:865:3: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
       OnigRegSet * * x0;
       ^~~~~~~~~~
       OnigRegex
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:882:39: error: ‘OnigRegSet’ undeclared (first use in this function); did you mean ‘OnigRegex’?
         x0 = ((size_t)datasize) <= 640 ? (OnigRegSet * *)alloca((size_t)datasize) : NULL;
                                           ^~~~~~~~~~
                                           OnigRegex
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:882:53: error: expected expression before ‘)’ token
         x0 = ((size_t)datasize) <= 640 ? (OnigRegSet * *)alloca((size_t)datasize) : NULL;
                                                         ^
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:903:14: warning: implicit declaration of function ‘onig_regset_new’; did you mean ‘onig_region_new’? [-Wimplicit-function-declaration]
       { result = onig_regset_new(x0, x1, x2); }
                  ^~~~~~~~~~~~~~~
                  onig_region_new
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c: At top level:
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1156:43: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
     static int _cffi_d_onigcffi_regset_search(OnigRegSet * x0, unsigned char const * x1, size_t x2, size_t x3, OnigRegion * * x4, unsigned int x5)
                                               ^~~~~~~~~~
                                               OnigRegex
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_f_onigcffi_regset_search’:
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1164:3: error: unknown type name ‘OnigRegSet’; did you mean ‘OnigRegex’?
       OnigRegSet * x0;
       ^~~~~~~~~~
       OnigRegex
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1187:39: error: ‘OnigRegSet’ undeclared (first use in this function); did you mean ‘OnigRegex’?
         x0 = ((size_t)datasize) <= 640 ? (OnigRegSet *)alloca((size_t)datasize) : NULL;
                                           ^~~~~~~~~~
                                           OnigRegex
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1187:51: error: expected expression before ‘)’ token
         x0 = ((size_t)datasize) <= 640 ? (OnigRegSet *)alloca((size_t)datasize) : NULL;
                                                       ^
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1225:14: warning: implicit declaration of function ‘onigcffi_regset_search’; did you mean ‘onigcffi_search’? [-Wimplicit-function-declaration]
       { result = onigcffi_regset_search(x0, x1, x2, x3, x4, x5); }
                  ^~~~~~~~~~~~~~~~~~~~~~
                  onigcffi_search
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_const_ONIG_OPTION_NOT_BEGIN_POSITION’:
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1364:12: error: ‘ONIG_OPTION_NOT_BEGIN_POSITION’ undeclared (first use in this function); did you mean ‘_cffi_const_ONIG_OPTION_NOT_BEGIN_POSITION’?
       int n = (ONIG_OPTION_NOT_BEGIN_POSITION) <= 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                _cffi_const_ONIG_OPTION_NOT_BEGIN_POSITION
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_const_ONIG_OPTION_NOT_BEGIN_STRING’:
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1371:12: error: ‘ONIG_OPTION_NOT_BEGIN_STRING’ undeclared (first use in this function); did you mean ‘ONIG_OPTION_NEGATE_SINGLELINE’?
       int n = (ONIG_OPTION_NOT_BEGIN_STRING) <= 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                ONIG_OPTION_NEGATE_SINGLELINE
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c: In function ‘_cffi_const_ONIG_OPTION_NOT_END_STRING’:
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1378:12: error: ‘ONIG_OPTION_NOT_END_STRING’ undeclared (first use in this function); did you mean ‘ONIG_OPTION_EXTEND’?
       int n = (ONIG_OPTION_NOT_END_STRING) <= 0;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
                ONIG_OPTION_EXTEND
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c: At top level:
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1417:106: error: ‘_cffi_d_onig_regset_free’ undeclared here (not in a function); did you mean ‘_cffi_f_onig_regset_free’?
       { "onig_regset_free", (void *)_cffi_f_onig_regset_free, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_O, 40), (void *)_cffi_d_onig_regset_free },
                                                                                                              ^~~~~~~~~~~~~~~~~~~~~~~~
                                                                                                              _cffi_f_onig_regset_free
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1418:103: error: ‘_cffi_d_onig_regset_new’ undeclared here (not in a function); did you mean ‘_cffi_f_onig_regset_new’?
       { "onig_regset_new", (void *)_cffi_f_onig_regset_new, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 4), (void *)_cffi_d_onig_regset_new },
                                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                                           _cffi_f_onig_regset_new
    build/temp.linux-ppc64le-3.9/_onigurumacffi.c:1424:117: error: ‘_cffi_d_onigcffi_regset_search’ undeclared here (not in a function); did you mean ‘_cffi_f_onigcffi_regset_search’?
       { "onigcffi_regset_search", (void *)_cffi_f_onigcffi_regset_search, _CFFI_OP(_CFFI_OP_CPYTHON_BLTN_V, 9), (void *)_cffi_d_onigcffi_regset_search },
                                                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                                                         _cffi_f_onigcffi_regset_search
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tonxsvrs/onigurumacffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tonxsvrs/onigurumacffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-h8tlhtre/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /root/.local/include/python3.9/onigurumacffi Check the logs for full command output.

@cidrblock
Copy link
Collaborator

navigator won't work unless we can figure out how to get onigurumacffi installed. Unfortunately I'm not familiar enough with power to suggest much more here :(

I'll ask around to see if anyone over here has more experience with it.

@aklyachkin
Copy link

ansible-navigator can be installed and works on IBM Power (ppc64le). The problem is usually too old version of oniguruma in some Linux distros. If it is reinstalled, everything works as it should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Researched, reproducible, committed to fix waiting on author Additional information is needed form the author of the issue
Projects
Status: No status
Development

No branches or pull requests

5 participants