[issue27101] Compilation of python (modules) for foreign target platform problem.

2022-01-29 Thread Irit Katriel


Irit Katriel  added the comment:

2.7 and 3.5 are no longer maintained. Please create a new issue if you are 
still having this problem with a current version (>= 3.9).

--
nosy: +iritkatriel
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-06-06 Thread Petr Ovtchenkov

Petr Ovtchenkov added the comment:

This mean that code for search in /usr/include/... in multiarch environment was 
added by you in commit fc1903166 2012-09-21 13:52:29 +0200, so in my suggestion 
I just don't change behaviour of you code.

As for my opinion, any additions of -I/usr/include/... are wrong: compiler 
either see it without such -I... or shouldn't see it at all (as for cross), or 
require hint from builder (something like 
CURSES_CFLAGS=-I/home/bluser/new_curses/include).

--

___
Python tracker 

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



[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-06-06 Thread Matthias Klose

Matthias Klose added the comment:

sorry, I don't understand your last comment.

--

___
Python tracker 

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



[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-06-06 Thread Petr Ovtchenkov

Petr Ovtchenkov added the comment:

Matthias,

This question is really for you:

fc1903166 (doko2012-09-21 13:52:29 +0200  422) if 
multiarch_path_component != '':
fc1903166 (doko2012-09-21 13:52:29 +0200  423) 
add_dir_to_list(self.compiler.library_dirs,
fc1903166 (doko2012-09-21 13:52:29 +0200  424)  
   '/usr/lib/' + multiarch_path_component)
fc1903166 (doko2012-09-21 13:52:29 +0200  425) 
add_dir_to_list(self.compiler.include_dirs,
fc1903166 (doko2012-09-21 13:52:29 +0200  426)  
   '/usr/include/' + multiarch_path_component)
fc1903166 (doko2012-09-21 13:52:29 +0200  427) 
return

--

___
Python tracker 

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



[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-06-04 Thread Matthias Klose

Matthias Klose added the comment:

The 0002-* patches look fine, however the 0001-* patches are wrong if you are 
in a Multi-Arch environment, where you can find valid headers in /usr/include.  
From my point of view, the set of include and header directories should be 
directly initialized from the compiler defaults, and not hard coded.

--

___
Python tracker 

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



[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-28 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +doko

___
Python tracker 

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



[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-24 Thread Petr Ovtchenkov

Petr Ovtchenkov added the comment:

for 2.7 branch

--
Added file: 
http://bugs.python.org/file42984/0002-Compilation-ssl-module-for-foreign-target-platform.patch

___
Python tracker 

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



[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-24 Thread Petr Ovtchenkov

Petr Ovtchenkov added the comment:

for 2.7 branch

--
versions: +Python 2.7
Added file: 
http://bugs.python.org/file42983/0001-Compilation-modules-for-foreign-target-platform.patch

___
Python tracker 

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



[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-24 Thread Petr Ovtchenkov

Petr Ovtchenkov added the comment:

for 3.5 branch

--
Added file: 
http://bugs.python.org/file42982/0002-Compilation-ssl-module-for-foreign-target-platform.patch

___
Python tracker 

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



[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-24 Thread Petr Ovtchenkov

Petr Ovtchenkov added the comment:

for 3.5 branch

--
Added file: 
http://bugs.python.org/file42981/0001-Compilation-modules-for-foreign-target-platform.patch

___
Python tracker 

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



[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-24 Thread Petr Ovtchenkov

Changes by Petr Ovtchenkov :


Removed file: http://bugs.python.org/file42963/cpython.patch

___
Python tracker 

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



[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-05-23 Thread Petr Ovtchenkov

New submission from Petr Ovtchenkov:

Compilation of python for foreign target platform problem.

Host arch is x86_64, target arch is arm (arm32).

Configuration is (target arch part):

(cd build-python && \
DESTDIR=${SYSROOT} \
PKG_CONFIG=true \
LIBFFI_INCLUDEDIR= \
PATH=${CURDIR}/host-python-home/bin:$$PATH \
PYTHONHOME=${CURDIR}/host-python-home/lib \
PYTHONPATH=${CURDIR}/host-python-home/lib/python3.5 \
../cpython/configure \
  --host=${TARGET_CROSS} \
  --build=${BUILD_M_ARCH}-unknown-linux-gnu \
  --prefix=/usr \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --enable-shared \
  --disable-ipv6 \
  --with-system-ffi \
  --with-system-expat \
  --without-ensurepip \
  --cache-file=config.cache\
)
sed -e 's/#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1/#undef 
HAVE_ATTRIBUTE_FORMAT_PARSETUPLE/' -i build-python/pyconfig.h
sed -e '/^PGEN=/ 
s|=.*$$|=\t\t${CURDIR}/build-python-native/Parser/pgen|' -e '/^LDFLAGS=/ 
s|=.*$$|=\t\t-L.|' -e '/^\$$(PGEN):/,+1d' -e '/^LIBFFI_INCLUDEDIR=/ s|=.*$$|=|' 
-i build-python/Makefile

Problem: option -I/usr/include passed to compiler during modules compilation. 
This lead to fails, due to target platform is different from host.

Suggested patch resolve the issue for me.

BTW, pass -I/usr/include is useless even for native builds.

--
components: Cross-Build
files: cpython.patch
keywords: patch
messages: 266225
nosy: Alex.Willmer, complement
priority: normal
severity: normal
status: open
title: Compilation of python (modules) for foreign target platform problem.
type: compile error
versions: Python 3.5
Added file: http://bugs.python.org/file42963/cpython.patch

___
Python tracker 

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