PyRFC icon indicating copy to clipboard operation
PyRFC copied to clipboard

Failed to compile under Raspberry Pi Bookworm (unrecognized command-line option ‘-minline-all-stringops’)

Open DomSchmHopp opened this issue 1 year ago • 3 comments

Describe the bug Try to install pyrfc on a Raspberry Pi.

To Reproduce pip3 install --trusted-host www.piwheels.org --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pyrfc --timeout=600

Screenshots image

Environment

  • OS: Linux, Raspberry Pi, Bookworm Image
  • Running in docker -> No
  • PyRFC version -> 3.3.1

Additional context There seems to be a problem with a compiler setting: arm-linux-gnueabihf-gcc: error: unrecognized command-line option ‘-minline-all-stringops’

As far as I read, ARM should be supported?

DomSchmHopp avatar Feb 28 '24 10:02 DomSchmHopp

Platforms supported by PyRFC are those supported by SAP NW RFC SDK and it is only Mac OSX ARM64

https://me.sap.com/notes/2573790

SAP NW RFC SDK is not supported on Raspberry PI ARM. It should however work, with proper compiler/linker settings.

The business case and RFC SDK platform support request can be sent via SAP customer message, to BC-MID-RFC-SDK component, with link to this issue. Please also update the issue with customer message reference.

bsrdjan avatar Feb 28 '24 11:02 bsrdjan

It should however work, with proper compiler/linker settings.

Can you tell me how to tweak the compiler settings, please? The error don´t look like a real blocking point to me.

DomSchmHopp avatar Feb 28 '24 11:02 DomSchmHopp

I really don't have them any more but it would not help. The SAP NW RFC SDK binaries need to be built for RPI platform and it can be done by SAP development, sources are not public.

If I remember correctly, @gregorwolf also tried it once.

bsrdjan avatar Feb 28 '24 11:02 bsrdjan