Want to install pyrfc on raspberry pi 4 but unable to do so due to some installation error
I have done all the steps mentioned in the pyrfc documentation However I am unable to install it on my raspberry pi. I am using python 3.9.2
Below is the error log i get after running pip install pyrfc. Please help
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyrfc
Using cached pyrfc-2.7.1.tar.gz (262 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: setuptools in ./.local/lib/python3.9/site-packages (from pyrfc) (67.6.0)
Building wheels for collected packages: pyrfc
Building wheel for pyrfc (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pyrfc (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
750 Patch Level 11
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-39
creating build/lib.linux-aarch64-cpython-39/pyrfc
copying src/pyrfc/_exception.py -> build/lib.linux-aarch64-cpython-39/pyrfc
copying src/pyrfc/__init__.py -> build/lib.linux-aarch64-cpython-39/pyrfc
running build_ext
building 'pyrfc.pyrfc' extension
creating build/temp.linux-aarch64-cpython-39
creating build/temp.linux-aarch64-cpython-39/src
creating build/temp.linux-aarch64-cpython-39/src/pyrfc
arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DNDEBUG -D_LARGEFILE_SOURCE -D_CONSOLE -D_FILE_OFFSET_BITS=64 -DSAPonUNIX -DSAPwithUNICODE -DSAPwithTHREADS -DSAPonLIN -I/usr/include/python3.9 -c src/pyrfc/_pyrfc.cpp -o build/temp.linux-aarch64-cpython-39/src/pyrfc/_pyrfc.o -Wall -O2 -fexceptions -funsigned-char -fno-strict-aliasing -Wall -Wno-uninitialized -Wno-deprecated-declarations -Wno-unused-function -Wcast-align -fPIC -pthread -minline-all-stringops -I/usr/local/sap/nwrfcsdk/include
arm-linux-gnueabihf-gcc: error: unrecognized command-line option ‘-minline-all-stringops’
error: command '/usr/bin/arm-linux-gnueabihf-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 pyrfc
Failed to build pyrfc
ERROR: Could not build wheels for pyrfc, which is required to install pyproject.toml-based projects