Closed AEHamrick closed 3 years ago
I was able to resolve this by the following, but I'm afraid I still don't quite understand what's going on:
/usr/local/lib
to ld.so.conf
and run ldconfig
. /usr/lib/libpython3.6m.a
Yikes. Was this box upgraded from RHEL6 to 7, by any chance?
I am facing same issue as described, the solution given AEHamrick is not worked for me. Would anyone please help on same.
Do you have the exact same set of error messages? Your situation may be slightly different. Please post them to ascertain.
Below is log
_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(boolobject.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(bytearrayobject.o): relocation R_X86_64_32 against symbol _PyByteArray_empty_string' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(bytesobject.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(exceptions.o): relocation R_X86_64_32S against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(genobject.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(floatobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(funcobject.o): relocation R_X86_64_32S against symbol
PyCode_Type' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(iterobject.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(listobject.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(longobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(dictobject.o): relocation R_X86_64_32S against
.text' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(memoryobject.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(methodobject.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(moduleobject.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(object.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(obmalloc.o): relocation R_X86_64_32S against .data' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(capsule.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(rangeobject.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(setobject.o): relocation R_X86_64_32S against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(sliceobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(structseq.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(tupleobject.o): relocation R_X86_64_32 against symbol _PyEval_SliceIndex' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(typeobject.o): relocation R_X86_64_32 against
.text' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(unicodeobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(unicodectype.o): relocation R_X86_64_32S against
.rodata' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(weakrefobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_warnings.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(bltinmodule.o): relocation R_X86_64_32S against symbol PyFilter_Type' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(ceval.o): relocation R_X86_64_32 against
.bss' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(compile.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(codecs.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(errors.o): relocation R_X86_64_32S against symbol PyTraceBack_Type' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(future.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(getargs.o): relocation R_X86_64_32S against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(import.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(importdl.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(marshal.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(modsupport.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(peephole.o): relocation R_X86_64_32S against
.rodata' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(pyhash.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(pylifecycle.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(pystate.o): relocation R_X86_64_32S against symbol _PyEval_EvalFrameDefault' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(pythonrun.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(pytime.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(random.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(symtable.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(sysmodule.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(traceback.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.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
/bin/ld: /usr/local/lib/libpython3.6m.a(dtoa.o): relocation R_X86_64_32S against .bss' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(formatter_unicode.o): relocation R_X86_64_32S against symbol
_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(fileutils.o): relocation R_X86_64_32S against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.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
/bin/ld: /usr/local/lib/libpython3.6m.a(thread.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(getpath.o): relocation R_X86_64_32 against
.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(gcmodule.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_threadmodule.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(posixmodule.o): relocation R_X86_64_32S against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(errnomodule.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(pwdmodule.o): relocation R_X86_64_32 against .bss' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_sre.o): relocation R_X86_64_32S against symbol
_Py_ctype_tolower' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_codecsmodule.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_weakref.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_functoolsmodule.o): relocation R_X86_64_32 against .data' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_operator.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_collectionsmodule.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(itertoolsmodule.o): relocation R_X86_64_32S against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(atexitmodule.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(signalmodule.o): relocation R_X86_64_32 against
.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_stat.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(timemodule.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_localemodule.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_iomodule.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(iobase.o): relocation R_X86_64_32 against symbol _Py_FalseStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(fileio.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(bytesio.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(bufferedio.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(textio.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(stringio.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(zipimport.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(faulthandler.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_tracemalloc.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(hashtable.o): relocation R_X86_64_32 against symbol
PyMem_RawFree' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(symtablemodule.o): relocation R_X86_64_32 against symbol PyUnicode_FSDecoder' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(xxsubtype.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(getbuildinfo.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(acceler.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(grammar1.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(myreadline.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(parsetok.o): relocation R_X86_64_32S against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(tokenizer.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(accu.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.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
/bin/ld: /usr/local/lib/libpython3.6m.a(cellobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(classobject.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(codeobject.o): relocation R_X86_64_32S against symbol PyUnicode_Type' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(complexobject.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(descrobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(enumobject.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(fileobject.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(frameobject.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(odictobject.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(namespaceobject.o): relocation R_X86_64_32S against symbol
_PyNamespace_Type' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(Python-ast.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(ast.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(getcopyright.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(getplatform.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(getversion.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.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
/bin/ld: /usr/local/lib/libpython3.6m.a(structmember.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(parser.o): relocation R_X86_64_32 against
.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(getcompiler.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(boolobject.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(bytearrayobject.o): relocation R_X86_64_32 against symbol _PyByteArray_empty_string' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(bytesobject.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(exceptions.o): relocation R_X86_64_32S against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(genobject.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(floatobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(funcobject.o): relocation R_X86_64_32S against symbol
PyCode_Type' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(iterobject.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(listobject.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(longobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(dictobject.o): relocation R_X86_64_32S against
.text' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(memoryobject.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(methodobject.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(moduleobject.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(object.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(obmalloc.o): relocation R_X86_64_32S against .data' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(capsule.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(rangeobject.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(setobject.o): relocation R_X86_64_32S against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(sliceobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(structseq.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(tupleobject.o): relocation R_X86_64_32 against symbol _PyEval_SliceIndex' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(typeobject.o): relocation R_X86_64_32 against
.text' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(unicodeobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(unicodectype.o): relocation R_X86_64_32S against
.rodata' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(weakrefobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_warnings.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(bltinmodule.o): relocation R_X86_64_32S against symbol PyFilter_Type' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(ceval.o): relocation R_X86_64_32 against
.bss' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(compile.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(codecs.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(errors.o): relocation R_X86_64_32S against symbol PyTraceBack_Type' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(future.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(getargs.o): relocation R_X86_64_32S against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(import.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(importdl.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(marshal.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(modsupport.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(peephole.o): relocation R_X86_64_32S against
.rodata' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(pyhash.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(pylifecycle.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(pystate.o): relocation R_X86_64_32S against symbol _PyEval_EvalFrameDefault' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(pythonrun.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(pytime.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(random.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(symtable.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(sysmodule.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(traceback.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.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
/bin/ld: /usr/local/lib/libpython3.6m.a(dtoa.o): relocation R_X86_64_32S against .bss' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(formatter_unicode.o): relocation R_X86_64_32S against symbol
_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(fileutils.o): relocation R_X86_64_32S against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.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
/bin/ld: /usr/local/lib/libpython3.6m.a(thread.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(getpath.o): relocation R_X86_64_32 against
.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(gcmodule.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_threadmodule.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(posixmodule.o): relocation R_X86_64_32S against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(errnomodule.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(pwdmodule.o): relocation R_X86_64_32 against .bss' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_sre.o): relocation R_X86_64_32S against symbol
_Py_ctype_tolower' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_codecsmodule.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_weakref.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_functoolsmodule.o): relocation R_X86_64_32 against .data' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_operator.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_collectionsmodule.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(itertoolsmodule.o): relocation R_X86_64_32S against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(atexitmodule.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(signalmodule.o): relocation R_X86_64_32 against
.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_stat.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(timemodule.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_localemodule.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(_iomodule.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(iobase.o): relocation R_X86_64_32 against symbol _Py_FalseStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(fileio.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(bytesio.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(bufferedio.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(textio.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(stringio.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(zipimport.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(faulthandler.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(_tracemalloc.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(hashtable.o): relocation R_X86_64_32 against symbol
PyMem_RawFree' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(symtablemodule.o): relocation R_X86_64_32 against symbol PyUnicode_FSDecoder' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(xxsubtype.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(getbuildinfo.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(acceler.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(grammar1.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(myreadline.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(parsetok.o): relocation R_X86_64_32S against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(tokenizer.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(accu.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.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
/bin/ld: /usr/local/lib/libpython3.6m.a(cellobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(classobject.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(codeobject.o): relocation R_X86_64_32S against symbol PyUnicode_Type' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(complexobject.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(descrobject.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(enumobject.o): relocation R_X86_64_32 against
.data' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(fileobject.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(frameobject.o): relocation R_X86_64_32 against symbol
_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(odictobject.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(namespaceobject.o): relocation R_X86_64_32S against symbol
_PyNamespace_Type' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(Python-ast.o): relocation R_X86_64_32 against symbol _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(ast.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(getcopyright.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(getplatform.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(getversion.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.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
/bin/ld: /usr/local/lib/libpython3.6m.a(structmember.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /bin/ld: /usr/local/lib/libpython3.6m.a(parser.o): relocation R_X86_64_32 against
.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/bin/ld: /usr/local/lib/libpython3.6m.a(getcompiler.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1_h311wy/pyodbc/setup.py'"'"'; file='"'"'/tmp/pip-install-1_h311wy/pyodbc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-cnydwc7q/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/pyodbc Check the logs for full command output. WARNING: You are using pip version 20.0.2; however, version 20.1 is available. You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
Try to rename the /usr/local/lib/libpython3.6m.a
to e.g. libpython3.6m.a.bak
and try again. Also see if you have a libpython3.6m.so
which is what it should be trying to link with.
Thank you very much v-chojas.
The above solution worked for me.
Environment
To diagnose, we usually need to know the following, including version numbers. On Windows, be sure to specify 32-bit Python or 64-bit:
Issue
Getting the following error trying to install, whether with
poetry
orpip
. I suspect this indicatesunixODBC
or some pre-req is not installed correctly, based on previous interaction with the server I'm using, but diagnosing what's going over here is (currently) over my head.