collect2: ld returned 1 exit status when building from source

Zachary Ware zachary.ware+pylist at gmail.com
Sat Sep 10 13:34:52 EDT 2016


On Sep 10, 2016 09:56, "Steve D'Aprano" <steve+python at pearwood.info> wrote:
>> 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?

Try make distclean, then configure and build again. If that fails, try
another make distclean, then configure, do 'make touch', then build again.
--
Zach
(On a phone)


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /