Mailing List Archive

[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf
New submission from Ben Gamari <bgamari@gmail.com>:

Configure.in assumes that %lld is not supported by printf if cross-compiling. This causes build errors in pyport.h,

In file included from Include/Python.h:58:0,
from Parser/parser.c:8:
Include/pyport.h:243:13: error: #error "This platform's pyconfig.h needs to define PY_FORMAT_LONG_LONG"
...

What is one supposed to do about this short of changing the configure script to assume support by default.

----------
components: Build
messages: 124722
nosy: bgamari
priority: normal
severity: normal
status: open
title: Not possible to cross-compile due to poor detection of %lld support in printf
type: compile error
versions: Python 2.7

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue10782>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf [ In reply to ]
Roumen Petrov <bugtrack@roumenpetrov.info> added the comment:

Use config.cache to set ac_cv_have_long_long_format

----------
nosy: +rpetrov

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue10782>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf [ In reply to ]
Terry J. Reedy <tjreedy@udel.edu> added the comment:

Requests for information should go to python-list or other support forums. That said, does the response settle this issue, so that it can be closed, or is there still a claim that something should be changed in the Python repository?

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue10782>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf [ In reply to ]
Ben Gamari <bgamari@gmail.com> added the comment:

Well, I'm not convinced that overriding config.cache is the best solution, but I am not really sure what else can be done. So far I've just been carrying a patch which changes configure.in, but this is clearly an awful hack.

----------

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue10782>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com