Date: 27-09-20  Time: 13:38 PM

Author Topic: AIX failed install uamqp 1.2.10  (Read 484 times)

0 Members and 1 Guest are viewing this topic.

scarlettyc

  • New Member
  • *
  • Posts: 4
  • Karma: +0/-0
AIX failed install uamqp 1.2.10
« on: August 21, 2020, 06:27:46 AM »
Hi.
there is a issue for install uamqp 1.2.10 in AIX 7
the CMAKE generates invalid make files for AIX or the dependent libraries are not resolved correctly. Can you please confirm if this is compiled successfully on AIX OS and if so, which OS
version and share with us the dependent AIX libraries?

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
  • Karma: +0/-0
Re: AIX failed install uamqp 1.2.10
« Reply #1 on: August 21, 2020, 08:13:58 AM »
Is this a package, or part of a package I built?
cmake I recognize as something I looked at years ago (and used for for what required it) - but uamqp does not ring a bell.
Michael
p.s. Willing to help, if I can, - but need a bit more info.

scarlettyc

  • New Member
  • *
  • Posts: 4
  • Karma: +0/-0
Re: AIX failed install uamqp 1.2.10
« Reply #2 on: August 26, 2020, 08:07:02 AM »
hi Michael.
Thank you for your reply, I meant the AIX server.
I'm appreciated for your answer :)

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
  • Karma: +0/-0
Re: AIX failed install uamqp 1.2.10
« Reply #3 on: August 27, 2020, 09:19:15 AM »
If I search for 'uampq' I get https://pypi.org/project/uamqp/ as the top hit.
So, I see it as a potential python module.
The second link I find is: https://github.com/Azure/azure-uamqp-c
And, both modules cause me to think this related to a cloud-managed environment.
How to got forward: I could probably build, but not test the python module - but that would be using my python, not the python from BULL or the AIX Toolbox.
Let me know if there is anything additional I can (try to) do.
Michael

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
  • Karma: +0/-0
Re: AIX failed install uamqp 1.2.10
« Reply #4 on: August 31, 2020, 07:46:24 AM »
OK - guessing you mean 'pip install uamqp' issues - I hit the cmake barrier as well:
  Building with generator flags: -G "Unix Makefiles"
  calling cmake /tmp/pip-wheel-51uepq6b/uamqp/src/vendor/azure-uamqp-c/ -G "Unix Makefiles" -Duse_openssl:bool=ON -Duse_default_uuid:bool=ON  -Duse_built       in_httpapi:bool=ON  -Dskip_samples:bool=ON -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE -DCMAKE_BUILD_TYPE=Release
  /bin/sh: cmake:  not found.
  Traceback (most recent call last):
...  subprocess.CalledProcessError: Command 'cmake /tmp/pip-wheel-51uepq6b/uamqp/src/vendor/azure-uamqp-c/ -G "Unix Makefiles" -Duse_openssl:bool=ON -Duse_d       efault_uuid:bool=ON  -Duse_builtin_httpapi:bool=ON  -Dskip_samples:bool=ON -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE -DCMAKE_BUILD_TYPE=Release' returned no       n-zero exit status 127.
  ----------------------------------------
  ERROR: Failed building wheel for uamqp
  Running setup.py clean for uamqp
Failed to build uamqp
ERROR: Failed to build one or more wheels

Working on this...

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
  • Karma: +0/-0
Re: AIX failed install uamqp 1.2.10
« Reply #5 on: August 31, 2020, 07:51:39 AM »
OK - the first issue I run into is that it assumes gcc is being used - the flag -Werror is being used.
I'll look into the uamqp sources - but there are issues there that (also) need resolving.
Michael
Code: [Select]
  calling cmake --build . --config Release
  Scanning dependencies of target aziotsharedutil
  [  1%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/src/base32.c.o
  /usr/vac/bin/cc: 1501-210 (S) command option Werror contains an incorrect subargument

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
  • Karma: +0/-0
Re: AIX failed install uamqp 1.2.10
« Reply #6 on: August 31, 2020, 08:00:32 AM »
So, working on system with both xlc and gcc installed - I set CC=gcc and ran python ./setup.py build.
The build breaks during:
Code: [Select]
[ 45%] Building C object deps/azure-c-shared-utility/CMakeFiles/aziotsharedutil.dir/adapters/platform_linux.c.o
/home/aixtools/wheels/uamqp-1.2.10/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/platform_linux.c: In function 'platform_get_default_tlsio':
/home/aixtools/wheels/uamqp-1.2.10/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/platform_linux.c:39:5: error: implicit declaration of function 'tlsio_openssl_get_interface_description' [-Werror=implicit-function-declaration]
/home/aixtools/wheels/uamqp-1.2.10/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/platform_linux.c:39:5: error: return makes pointer from integer without a cast [-Werror]
cc1: all warnings being treated as errors
make: 1254-004 The error code from the last command is 1.
So, a major point is that the uamqp sources make assumptions* - e.g., that it is only running on Linux - and the Werror flag makes builds that might have worked - impossible.
Note the file that fails is "home/aixtools/wheels/uamqp-1.2.10/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/platform_linux.c"

* Well , maybe they do not make that assumption - but it is striking that it fails during the build of platform_linux.c.
« Last Edit: August 31, 2020, 11:22:01 AM by Michael »

scarlettyc

  • New Member
  • *
  • Posts: 4
  • Karma: +0/-0
Re: AIX failed install uamqp 1.2.10
« Reply #7 on: September 09, 2020, 08:36:52 AM »
hi Michael,
thank you so much for your replies.
Yeah, I also contact with the PYthon SDK guithub team. The issue is because of c share package.
they will release a new one with pure Uamqp package.

I'm so grateful you can help to do many tests.
sorry, my email always change this form notification in Junk mail. Could we archive this case first.

Thank you so much

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
  • Karma: +0/-0
Re: AIX failed install uamqp 1.2.10
« Reply #8 on: September 09, 2020, 09:17:28 AM »
I tried sending a direct email. Hope that comes through ok.
Let me know if there is something additional I can do or attempt to do.
Michael

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
  • Karma: +0/-0
Re: AIX failed install uamqp 1.2.10
« Reply #9 on: September 09, 2020, 09:20:37 AM »
p.s. you can also try to reach me via twitter: @aixtools (which I will - eventually prefer) or @rootvgnet.

Michael
p.p.s. I say try, because, sadly, so much of twitter these days is, imho, 'noise' and I may not see it immediately.