collect2: ld returned 1 exit status when building from source

Steve D'Aprano steve+python at pearwood.info
Sat Sep 10 11:53:08 EDT 2016


I'm trying to build from source using:

./configure --with-pydebug && make -s -j2


At first the output is okay, then I get a whole heap of similar errors:

Python/dtrace_stubs.o: In function `PyDTrace_LINE':
/home/steve/python/python-dev/cpython/Include/pydtrace.h:25: multiple
definition of `PyDTrace_LINE'
Python/ceval.o:/home/steve/python/python-dev/cpython/Include/pydtrace.h:25:
first defined here
Python/dtrace_stubs.o: In function `PyDTrace_FUNCTION_ENTRY':
/home/steve/python/python-dev/cpython/Include/pydtrace.h:26: multiple
definition of `PyDTrace_FUNCTION_ENTRY'
Python/ceval.o:/home/steve/python/python-dev/cpython/Include/pydtrace.h:26:
first defined here

    [ ... many, many, many more PyDTrace_* multiple definitions ... ]

collect2: ld returned 1 exit status
make: *** [Programs/_freeze_importlib] Error 1


Any suggestions for fixing this?





-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list