Unable to install Python’s Pyrfc library for SAP on Raspberry pi 4
this error message
arm-linux-gnueabihf-gcc: error: unrecognized command-line option -minline-all-stringops
arm-linux-gnueabihf-gcc is 32bit
htis pyrfc setup.py
https://github.com/SAP/PyRFC/blob/main/setup.py
# https://launchpad.support.sap.com/#/notes/2573953
if sys.platform.startswith("linux"):
os.system('strings $SAPNWRFC_HOME/lib/libsapnwrfc.so | grep "Patch Level"')
LIBS = ["sapnwrfc", "sapucum"]
MACROS = [
("NDEBUG", None),
("_LARGEFILE_SOURCE", None),
("_CONSOLE", None),
("_FILE_OFFSET_BITS", 64),
("SAPonUNIX", None),
("SAPwithUNICODE", None),
("SAPwithTHREADS", None),
("SAPonLIN", None),
]
COMPILE_ARGS = [
"-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{}/include".format(SAPNWRFC_HOME),
]
LINK_ARGS = ["-L{}/lib".format(SAPNWRFC_HOME)]
So you probably need aarch64-linux-gnu-gcc
Read more here: Source link
