collect2: ld returned 1 exit status when building from source

Steve D'Aprano steve+python at pearwood.info
Sat Sep 10 19:58:51 EDT 2016


On Sun, 11 Sep 2016 03:34 am, Zachary Ware wrote:

> 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
[...]
>> Any suggestions for fixing this?
> 
> Try make distclean, then configure and build again.  

Same error.

> If that fails, try 
> another make distclean, then configure, do 'make touch', then build again.

make touch fails.


[steve at ando cpython]$ make touch
cd .; \
        hg --config extensions.touch=Tools/hg/hgtouch.py touch -v
*** failed to import extension touch from Tools/hg/hgtouch.py: invalid
syntax (hgtouch.py, line 22)
hg: unknown command 'touch'
Mercurial Distributed SCM

basic commands:

 add         add the specified files on the next commit
 [...]
 view        start interactive history viewer

use "hg help" for the full list of commands or "hg -v" for details
make: *** [touch] Error 255




And *that* error is because the hgtouch.py uses `with`, which fails because
my hg runs under Python 2.4.




-- 
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