taosdata / TDengine

TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, Industrial IoT and DevOps.

Home Page:https://tdengine.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pip安装pyudf时报错: ...relocation R_X86_64_32S against...recompile with -fPIC

Bob-cn1 opened this issue · comments

Bug Description
pip log
`

$ pip3 install taospyudf
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting taospyudf
Using cached https://mirrors.aliyun.com/pypi/packages/ae/47/17f901085f3f0704d681666155beee95b7f0f9a2b45e14c345d9ccc49bee/taospyudf-0.0.11.tar.gz (25 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: taospyudf
Building wheel for taospyudf (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for taospyudf (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [174 lines of output]
*** scikit-build-core 0.9.2 using CMake 3.29.2 (wheel)
*** Configuring CMake...
loading initial cache file /tmp/tmpvh2d6qlp/build/CMakeInit.txt
-- The CXX compiler identification is GNU 8.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at /tmp/pip-build-env-xp_23j43/overlay/lib/python3.11/site-packages/pybind11/share/cmake/pybind11/FindPythonLibsNew.cmake:101 (message):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning, or
preferably upgrade to using FindPython, either by calling it explicitly
before pybind11, or by setting PYBIND11_FINDPYTHON ON before pybind11.
Call Stack (most recent call first):
/tmp/pip-build-env-xp_23j43/overlay/lib/python3.11/site-packages/pybind11/share/cmake/pybind11/pybind11Tools.cmake:50 (find_package)
/tmp/pip-build-env-xp_23j43/overlay/lib/python3.11/site-packages/pybind11/share/cmake/pybind11/pybind11Common.cmake:192 (include)
/tmp/pip-build-env-xp_23j43/overlay/lib/python3.11/site-packages/pybind11/share/cmake/pybind11/pybind11Config.cmake:250 (include)
CMakeLists.txt:9 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

  -- Found PythonInterp: /usr/local/bin/python3.11 (found suitable version "3.11.6", minimum required is "3.6")
  -- Found PythonLibs: /usr/local/lib/libpython3.11.a
  -- Performing Test HAS_FLTO
  -- Performing Test HAS_FLTO - Success
  -- Found pybind11: /tmp/pip-build-env-xp_23j43/overlay/lib/python3.11/site-packages/pybind11/include (found version "2.12.0")
  -- Configuring done (1.5s)
  -- Generating done (0.0s)
  -- Build files have been written to: /tmp/tmpvh2d6qlp/build
  *** Building project with Ninja...
  [1/2] Building CXX object CMakeFiles/taospyudf.dir/src/taospyudf.cpp.o
  [2/2] Linking CXX shared library libtaospyudf.so
  FAILED: libtaospyudf.so
  : && /usr/bin/c++ -fPIC -O3 -DNDEBUG   -shared -Wl,-soname,libtaospyudf.so -o libtaospyudf.so CMakeFiles/taospyudf.dir/src/taospyudf.cpp.o  /usr/local/lib/libpython3.11.a && :
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(abstract.o): relocation R_X86_64_32S against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(boolobject.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(bytearrayobject.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(bytesobject.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(call.o): relocation R_X86_64_PC32 against symbol `PyExc_TypeError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(capsule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(classobject.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(complexobject.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(descrobject.o): relocation R_X86_64_PC32 against symbol `PyExc_TypeError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(exceptions.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(genericaliasobject.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(genobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(floatobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(frameobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(funcobject.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(iterobject.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(listobject.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(longobject.o): relocation R_X86_64_32S against symbol `PyLong_Type' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(dictobject.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(memoryobject.o): relocation R_X86_64_PC32 against symbol `PyExc_BufferError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(methodobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(moduleobject.o): relocation R_X86_64_PC32 against symbol `PyExc_ValueError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(object.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(obmalloc.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(picklebufobject.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(rangeobject.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(setobject.o): relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(sliceobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(structseq.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(tupleobject.o): relocation R_X86_64_PC32 against symbol `PyExc_ValueError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(typeobject.o): relocation R_X86_64_32 against symbol `PyBaseObject_Type' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(unicodeobject.o): relocation R_X86_64_32S against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(unicodectype.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(unionobject.o): relocation R_X86_64_32S against symbol `_PyNone_Type' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(weakrefobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_warnings.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(bltinmodule.o): relocation R_X86_64_32S against symbol `PyFilter_Type' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(ceval.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(codecs.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(compile.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(context.o): relocation R_X86_64_PC32 against symbol `PyExc_RuntimeError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(errors.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(frame.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(future.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(getargs.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(hamt.o): relocation R_X86_64_32S against hidden symbol `_PyHamt_BitmapNode_Type' can not be used when making a shared object
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(import.o): relocation R_X86_64_32S against symbol `PyDict_Type' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(importdl.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(initconfig.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(marshal.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(modsupport.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(preconfig.o): relocation R_X86_64_PC32 against symbol `Py_HasFileSystemDefaultEncoding' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(pyhash.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(pylifecycle.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(pystate.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(pythonrun.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(pytime.o): relocation R_X86_64_PC32 against symbol `PyExc_OverflowError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(bootstrap_hash.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(specialize.o): relocation R_X86_64_32S against symbol `PyMemberDescr_Type' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(structmember.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(symtable.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(sysmodule.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(thread.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(traceback.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(getopt.o): relocation R_X86_64_32S against `.rodata.str4.4' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(pystrtod.o): relocation R_X86_64_32S against symbol `_Py_ctype_tolower' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(pystrhex.o): relocation R_X86_64_PC32 against symbol `PyExc_ValueError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(dtoa.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(formatter_unicode.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(fileutils.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(suggestions.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(dynload_shlib.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(gcmodule.o): relocation R_X86_64_32 against symbol `_Py_FalseStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(atexitmodule.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(faulthandler.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(posixmodule.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(signalmodule.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_tracemalloc.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_codecsmodule.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_collectionsmodule.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(errnomodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_iomodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(iobase.o): relocation R_X86_64_PC32 against symbol `_Py_FalseStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(fileio.o): relocation R_X86_64_PC32 against symbol `PyExc_ValueError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(bytesio.o): relocation R_X86_64_PC32 against symbol `PyExc_SystemError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(bufferedio.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(textio.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(stringio.o): relocation R_X86_64_PC32 against symbol `PyExc_ValueError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(itertoolsmodule.o): relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(sre.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_threadmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(timemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_weakref.o): relocation R_X86_64_32 against symbol `_PyWeakref_RefType' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_abc.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_functoolsmodule.o): relocation R_X86_64_32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_localemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_operator.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(_stat.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(symtablemodule.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(pwdmodule.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(xxsubtype.o): relocation R_X86_64_PC32 against symbol `PyList_Type' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(deepfreeze.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(getpath.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(getbuildinfo.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(pegen.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(pegen_errors.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(parser.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(peg_api.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(myreadline.o): relocation R_X86_64_PC32 against symbol `_PyOS_ReadlineTState' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(tokenizer.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(accu.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(bytes_methods.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(cellobject.o): relocation R_X86_64_PC32 against symbol `PyExc_ValueError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(codeobject.o): relocation R_X86_64_32S against symbol `PyTuple_Type' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(enumobject.o): relocation R_X86_64_32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(fileobject.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(interpreteridobject.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(odictobject.o): relocation R_X86_64_PC32 against symbol `PyExc_ValueError' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(namespaceobject.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(Python-ast.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(Python-tokenize.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(ast.o): relocation R_X86_64_32S against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(ast_opt.o): relocation R_X86_64_32S against symbol `PyFrozenSet_Type' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(ast_unparse.o): relocation R_X86_64_32S against symbol `PyFloat_Type' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(getcopyright.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(getplatform.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(getversion.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(hashtable.o): relocation R_X86_64_32S against hidden symbol `_Py_hashtable_get_entry_generic' can not be used when making a shared object
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(mystrtoul.o): relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(pathconfig.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(token.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(action_helpers.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(string_parser.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: /usr/local/lib/libpython3.11.a(getcompiler.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: 最后的链结失败: nonrepresentable section on output
  collect2: error: ld returned 1 exit status
  ninja: build stopped: subcommand failed.
  
  *** CMake build failed
  [end of output]

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

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: pip3 install --upgrade pip
`

To Reproduce
Steps to reproduce the behavior:

  1. 按照教程 https://docs.taosdata.com/develop/udf/ 安装python扩展

Environment (please complete the following information):

  • OS: Debian12
  • TDengine Version 3.0.1.7
  • taospyudf Version default (可能是0.0.11)

Additional Context
有尝试pip download下来本地修改cmake文件,但不知道怎么改

调整python版本为3.7后可以正常安装,可能taospyudf是存在python版本上限要求(未查明具体版本限制)
it could installed successfuly by using python with version 3.7, i'm not going to find the limitation of python version.