vBaiCai / python-pesq

A python package for calculating the PESQ.
MIT License
353 stars 69 forks source link

fix bug: fix the duplicate symbol error #18

Closed qyou closed 4 years ago

qyou commented 4 years ago

error message:

 clang++ -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk build/temp.macosx-10.15-x86_64-3.7/pypesq/pesq.o build/temp.macosx-10.15-x86_64-3.7/pypesq/dsp.o build/temp.macosx-10.15-x86_64-3.7/pypesq/pesqdsp.o build/temp.macosx-10.15-x86_64-3.7/pypesq/pesqio.o build/temp.macosx-10.15-x86_64-3.7/pypesq/pesqmain.o build/temp.macosx-10.15-x86_64-3.7/pypesq/pesqmod.o -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -o build/lib.macosx-10.15-x86_64-3.7/pesq_core.cpython-37m-darwin.so
    duplicate symbol '_Nb' in:
        build/temp.macosx-10.15-x86_64-3.7/pypesq/pesq.o
        build/temp.macosx-10.15-x86_64-3.7/pypesq/pesqio.o
    duplicate symbol '_Nb' in:
        build/temp.macosx-10.15-x86_64-3.7/pypesq/pesq.o
        build/temp.macosx-10.15-x86_64-3.7/pypesq/pesqdsp.o
    duplicate symbol '_Nb' in:
        build/temp.macosx-10.15-x86_64-3.7/pypesq/pesq.o
        build/temp.macosx-10.15-x86_64-3.7/pypesq/pesqmain.o
    duplicate symbol '_InIIR_Nsos' in:
        build/temp.macosx-10.15-x86_64-3.7/pypesq/pesqdsp.o
        build/temp.macosx-10.15-x86_64-3.7/pypesq/pesqmod.o
    duplicate symbol '_Nb' in:
        build/temp.macosx-10.15-x86_64-3.7/pypesq/pesq.o
        build/temp.macosx-10.15-x86_64-3.7/pypesq/pesqmod.o
    ld: 5 duplicate symbols for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'clang++' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/h0/w7jzmrn91g123jqshs7t4nwc0000gq/T/pip-install-fa7q3bwy/pypesq/setup.py'"'"'; __file__='"'"'/private/var/folders/h0/w7jzmrn91g123jqshs7t4nwc0000gq/T/pip-install-fa7q3bwy/pypesq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/h0/w7jzmrn91g123jqshs7t4nwc0000gq/T/pip-record-78fa2r57/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7m/pypesq Check the logs for full command output.

I fix the bug the duplicate symbol happens.

vBaiCai commented 4 years ago

Hi qyou, Thank you for contribution!