[issue4524] Build fails at running build_scripts

2008-12-04 Thread Chris Hills

New submission from Chris Hills <[EMAIL PROTECTED]>:

On linux-g++-32 with command line `./configure --enable-ipv6 --with-
suffix=3`, python is compiled okay but the build scripts fail as 
follows:-

running build_scripts
copying and adjusting /tmp/Python-3.0/Tools/scripts/idle -> build/
scripts-3.0
Traceback (most recent call last):
  File "./setup.py", line 1533, in 
main()
  File "./setup.py", line 1528, in main
'Lib/smtpd.py']
  File "/tmp/Python-3.0/Lib/distutils/core.py", line 149, in setup
dist.run_commands()
  File "/tmp/Python-3.0/Lib/distutils/dist.py", line 942, in 
run_commands
self.run_command(cmd)
  File "/tmp/Python-3.0/Lib/distutils/dist.py", line 962, in run_command
cmd_obj.run()
  File "/tmp/Python-3.0/Lib/distutils/command/build.py", line 128, in 
run
self.run_command(cmd_name)
  File "/tmp/Python-3.0/Lib/distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
  File "/tmp/Python-3.0/Lib/distutils/dist.py", line 962, in run_command
cmd_obj.run()
  File "/tmp/Python-3.0/Lib/distutils/command/build_scripts.py", line 
51, in run
self.copy_scripts()
  File "/tmp/Python-3.0/Lib/distutils/command/build_scripts.py", line 
108, in copy_scripts
+ sysconfig.get_config_var("EXE")),
TypeError: Can't convert 'int' object to str implicitly
make: *** [sharedmods] Error 1

--
components: Build
messages: 76889
nosy: chaz6
severity: normal
status: open
title: Build fails at running build_scripts
type: compile error
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4524>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4524] Build fails at running build_scripts

2008-12-04 Thread Chris Hills

Chris Hills <[EMAIL PROTECTED]> added the comment:

In hindsight I did not need to use --with-suffix as I assumed the 
interpreter would be installed as "python" by default, but it is not. 
The patch however does fix the reported problem for me.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4524>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-10-05 Thread Chris Hills


Chris Hills  added the comment:

The new behaviour seems broken on my system.

$ PYTHON_VERSION=3.10.0

$ 
PKG_CONFIG_PATH="/home/chaz/.local/local/sqlite3/lib/pkgconfig:/home/chaz/.local/local/openssl3/lib64/pkgconfig"

$ LLVM_PROFDATA=/home/chaz/.local/local/clang+llvm/bin/llvm-profdata CC=clang 
CXX=clang++ ./configure 
--prefix=/home/chaz/.local/local/python-${PYTHON_VERSION} 
--enable-optimizations --enable-shared --enable-loadable-sqlite-extensions 
--with-openssl-rpath=auto

[..]

building '_ssl' extension
clang -pthread -fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code 
-DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result 
-Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes 
-Werror=implicit-function-declaration -fvisibility=hidden 
-fprofile-instr-use=code.profclangd -I./Include/internal 
-I/home/chaz/.local/local/openssl-3.0.0/include -I./Include -I. 
-I/usr/local/include -I/home/chaz/Downloads/Python-3.10.0/Include 
-I/home/chaz/Downloads/Python-3.10.0 -c 
/home/chaz/Downloads/Python-3.10.0/Modules/_ssl.c -o 
build/temp.linux-x86_64-3.10/home/chaz/Downloads/Python-3.10.0/Modules/_ssl.o
warning: no profile data available for file "_ssl.c" 
[-Wprofile-instr-unprofiled]
clang -pthread -shared 
build/temp.linux-x86_64-3.10/home/chaz/Downloads/Python-3.10.0/Modules/_ssl.o 
-L/home/chaz/.local/local/openssl-3.0.0/lib64 -L. -L/usr/local/lib 
-R/home/chaz/.local/local/openssl-3.0.0/lib64 -lssl -lcrypto -o 
build/lib.linux-x86_64-3.10/_ssl.cpython-310-x86_64-linux-gnu.so
clang -pthread -fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code 
-DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result 
-Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes 
-Werror=implicit-function-declaration -fvisibility=hidden 
-fprofile-instr-use=code.profclangd -I./Include/internal 
-I/home/chaz/.local/local/openssl-3.0.0/include -I./Include -I. 
-I/usr/local/include -I/home/chaz/Downloads/Python-3.10.0/Include 
-I/home/chaz/Downloads/Python-3.10.0 -c 
/home/chaz/Downloads/Python-3.10.0/Modules/_hashopenssl.c -o 
build/temp.linux-x86_64-3.10/home/chaz/Downloads/Python-3.10.0/Modules/_hashopenssl.o
warning: no profile data available for file "_hashopenssl.c" 
[-Wprofile-instr-unprofiled]
clang -pthread -shared 
build/temp.linux-x86_64-3.10/home/chaz/Downloads/Python-3.10.0/Modules/_hashopenssl.o
 -L/home/chaz/.local/local/openssl-3.0.0/lib64 -L. -L/usr/local/lib 
-R/home/chaz/.local/local/openssl-3.0.0/lib64 -lssl -lcrypto -o 
build/lib.linux-x86_64-3.10/_hashlib.cpython-310-x86_64-linux-gnu.so
*** WARNING: renaming "_ssl" since importing it failed: libssl.so.3: cannot 
open shared object file: No such file or directory
*** WARNING: renaming "_hashlib" since importing it failed: libssl.so.3: cannot 
open shared object file: No such file or directory

$ ldd 
/home/chaz/Downloads/Python-3.10.0/build/lib.linux-x86_64-3.10/_ssl.cpython-310-x86_64-linux-gnu_failed.so
linux-vdso.so.1 =>  (0x7fffc99f4000)
libssl.so.3 => not found
libcrypto.so.3 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x7faa70802000)
libc.so.6 => /lib64/libc.so.6 (0x7faa70434000)
/lib64/ld-linux-x86-64.so.2 (0x7faa70a1e000)

$ readelf -d 
/home/chaz/Downloads/Python-3.10.0/build/lib.linux-x86_64-3.10/_ssl.cpython-310-x86_64-linux-gnu_failed.so
 | grep PATH

It appears that RPATH/RUNPATH is not getting set.

--
nosy: +chaz6

___
Python tracker 
<https://bugs.python.org/issue43466>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-10-05 Thread Chris Hills


Chris Hills  added the comment:

If I set LDFLAGS as with previous versions, it works as expected. I do not know 
if it is related, but I noticed that by default rpath does not get set for the 
files in DESTDIR/bin/* (e.g. python3.10 or pip3.10) hence the inclusion of 
/home/chaz/.local/local/python-${PYTHON_VERSION}/lib in the rpath.

LDFLAGS="-Wl,-rpath,'/home/chaz/.local/local/openssl3/lib64:/home/chaz/.local/local/sqlite3/lib:/home/chaz/.local/local/python-'${PYTHON_VERSION}'/lib'
 -Wl,--enable-new-dtags"

--

___
Python tracker 
<https://bugs.python.org/issue43466>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45371] distutil's runtime_library_dir (rpath) option doesn't work with clang

2021-10-05 Thread Chris Hills


Chris Hills  added the comment:

I tested this both with and without LDFLAGS="-Wl,-rpath 
-Wl,/home/chaz/.local/local/python3.10.0/lib", and in both cases this patch 
works as expected. Thank you!

--
nosy: +chaz6

___
Python tracker 
<https://bugs.python.org/issue45371>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45374] sqlite3: Add configure option to set or auto-detect rpath to sqlite3 libs

2021-10-05 Thread Chris Hills


New submission from Chris Hills :

Similar to https://bugs.python.org/issue43466 for openssl, please add a 
configure option to set rpath for sqlite3.

--with-sqlite-rpath=

Ideally, when any dpeendency is discovered with pkg-config, the correct rpath 
should be set, but this would be a breaking change.

--
assignee: docs@python
components: Documentation, Installation
messages: 403214
nosy: chaz6, docs@python
priority: normal
severity: normal
status: open
title: sqlite3: Add configure option to set or auto-detect rpath to sqlite3 libs
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue45374>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com