[New-bugs-announce] [issue38111] Error while building Python from source

Redcxx report at bugs.python.org
Wed Sep 11 09:47:43 EDT 2019

New submission from Redcxx <weilue222 at gmail.com>:

Python failed `make` when building from source if `--enabled-share` is pass in when running `./configure`.

...(some output which seem irrevelent)
/bin/ld: /home/e38160wl/Python3.7.4/local/lib/libssl.a(s3_meth.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/home/e38160wl/Python3.7.4/local/lib/libssl.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
ln: failed to access ‘libpython3.7m.so.1.0’: No such file or directory
make: *** [libpython3.7m.so] Error 1


I tried adding `CFLAGS="-fPIC"` as parameter of `./configure` but it does not make any changes

components: Build
messages: 351880
nosy: Redcxx
priority: normal
severity: normal
status: open
title: Error while building Python from source
type: crash
versions: Python 3.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list