r9y9 / pysinsy

Python wrapper for Sinsy
https://r9y9.github.io/pysinsy/
MIT License
51 stars 11 forks source link

collect2: error: ld returned 1 exit status #3

Closed errolyan closed 3 years ago

errolyan commented 4 years ago

fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). running develop -- Building version 0.0.1 running egg_info writing pysinsy.egg-info/PKG-INFO writing dependency_links to pysinsy.egg-info/dependency_links.txt writing requirements to pysinsy.egg-info/requires.txt writing top-level names to pysinsy.egg-info/top_level.txt reading manifest file 'pysinsy.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'LICENSE.md' warning: no files found matching '*.md' under directory 'pysinsy' writing manifest file 'pysinsy.egg-info/SOURCES.txt' running build_ext building 'pysinsy.sinsy' extension gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/lib/python3.6/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/include/python3.6m -c pysinsy/sinsy.cpp -o build/temp.linux-x86_64-3.6/pysinsy/sinsy.o In file included from /usr/local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1760, from /usr/local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:17, from /usr/local/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4, from pysinsy/sinsy.cpp:651: /usr/local/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]

warning "Using deprecated NumPy API, disable it by " \

^~~ pysinsy/sinsy.cpp: In function ‘PyObject __pyx_pf_7pysinsy_5sinsy_12LabelStrings_getData(__pyx_obj_7pysinsy_5sinsy_LabelStrings)’: pysinsy/sinsy.cpp:1902:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] for (pyx_t_4 = 0; pyx_t_4 < pyx_t_3; pyx_t_4+=1) {


g++ -pthread -shared build/temp.linux-x86_64-3.6/pysinsy/sinsy.o -L/usr/local/lib -L/usr/local/lib -lsinsy -lpython3.6m -o /work/nnsvs/docker/pysinsy/pysinsy/sinsy.cpython-36m-x86_64-linux-gnu.so
/usr/bin/ld: /usr/local/lib/libsinsy.a(Sinsy.cpp.o): relocation R_X86_64_PC32 against symbol `_ZSt4cerr@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(Converter.cpp.o): relocation R_X86_64_PC32 against symbol `_ZN5sinsy11PhonemeInfo11TYPE_SILENTB5cxx11E' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(PhonemeInfo.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy11PhonemeInfoE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(HtsEngine.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy9HtsEngineE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(SynthConditionImpl.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy18SynthConditionImplE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(LabelMaker.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTISt11range_error@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(LabelMeasure.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy12LabelMeasureE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(LabelPosition.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy13LabelPositionE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(LabelStrings.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy12LabelStringsE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(NoteGroup.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy9NoteGroupE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(NoteLabeler.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy11NoteLabelerE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(PhonemeLabeler.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy14PhonemeLabelerE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(SyllableLabeler.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy15SyllableLabelerE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(Beat.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy4BeatE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(Dynamics.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy8DynamicsE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(Key.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy3KeyE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(Mode.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy4ModeE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(Note.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy4NoteE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(Pitch.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy5PitchE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(Slur.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy4SlurE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(Syllabic.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy8SyllabicE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(ScoreDoctor.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy11ScoreDoctorE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(TempScore.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy9TempScoreE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(InputFile.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy9InputFileE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(OutputFile.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy10OutputFileE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(XmlReader.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTISt13runtime_error@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(XmlWriter.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTISt13runtime_error@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(ConfGroup.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy9ConfGroupE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(ConfManager.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy11ConfManagerE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(UnknownConf.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy11UnknownConfE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(util_converter.cpp.o): relocation R_X86_64_PC32 against symbol `_ZSt3hexRSt8ios_base' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(JConf.cpp.o): relocation R_X86_64_PC32 against symbol `_ZN5sinsy11PhonemeInfo10TYPE_VOWELB5cxx11E' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(LabelData.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy9LabelDataE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(Configurations.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy14ConfigurationsE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(MacronTable.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy11MacronTableE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(MultibyteCharRange.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy18MultibyteCharRangeE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(PhonemeTable.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy12PhonemeTable6ResultE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(StringTokenizer.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy15StringTokenizerE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(XmlData.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN5sinsy7XmlDataE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libsinsy.a(XmlParser.cpp.o): relocation R_X86_64_PC32 against symbol `_ZN5sinsy15StreamExceptionD1Ev' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1
ZenzenDatabase commented 4 years ago

bad code

r9y9 commented 3 years ago

I revised the binary dependency. Feel free to reopen if the problem persists.