New submission from Matthias Klose:
using the only mpdecimal release (2.3):
building '_decimal' extension
creating
build/temp.linux-x86_64-3.3/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal
x86_64-linux-gnu-gcc -pthread -fPIC -D_FORTIFY_SOURCE=2 -Wno-unused-result
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -g -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -fprofile-generate
-g -flto -fuse-linker-plugin -DCONFIG_64=1 -DASM=1 -I../Include -I. -IInclude
-I/usr/include/x86_64-linux-gnu
-I/scratch/packages/python/3.3/python3.3-3.3.3/Include
-I/scratch/packages/python/3.3/python3.3-3.3.3/build-static -c
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c -o
build/temp.linux-x86_64-3.3/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.o
-Wextra -Wno-missing-field-initializers
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c: In
function 'dectuple_as_str':
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c:2522:47:
error: expected ')' before 'PRI_mpd_ssize_t'
n = snprintf(cp, MPD_EXPDIGITS+2, "%" PRI_mpd_ssize_t, exp);
^
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c:2522:47:
warning: spurious trailing '%' in format [-Wformat=]
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c:2522:47:
warning: spurious trailing '%' in format [-Wformat=]
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c: In
function 'dec_str':
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c:3075:5:
warning: implicit declaration of function 'mpd_to_sci_size'
[-Wimplicit-function-declaration]
size = mpd_to_sci_size(&cp, MPD(dec), CtxCaps(context));
^
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c: In
function 'dec_format':
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c:3243:9:
warning: implicit declaration of function 'mpd_validate_lconv'
[-Wimplicit-function-declaration]
if (mpd_validate_lconv(&spec) < 0) {
^
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c: In
function 'dec_as_long':
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c:3340:5:
warning: passing argument 1 of 'mpd_qexport_u32' from incompatible pointer
type [enabled by default]
n = mpd_qexport_u32(&ob_digit, 0, PyLong_BASE, x, &status);
^
In file included from
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c:34:0:
/usr/include/x86_64-linux-gnu/mpdecimal.h:474:8: note: expected 'uint32_t *'
but argument is of type 'digit **'
size_t mpd_qexport_u32(uint32_t *rdata, size_t rlen, uint32_t base,
^
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c: In
function 'dec_mpd_to_eng':
/scratch/packages/python/3.3/python3.3-3.3.3/Modules/_decimal/_decimal.c:4136:5:
warning: implicit declaration of function 'mpd_to_eng_size'
[-Wimplicit-function-declaration]
size = mpd_to_eng_size(&s, MPD(self), CtxCaps(context));
^
----------
components: Build
messages: 203978
nosy: doko
priority: normal
severity: normal
status: open
title: python fails to build when configured with --with-system-libmpdec
versions: Python 3.3, Python 3.4
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19732>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com