[issue20324] gcc-4.3 support on python-3.3 (libmpdec)

2014-01-21 Thread Dirkjan Ochtman

New submission from Dirkjan Ochtman:

See https://bugs.gentoo.org/show_bug.cgi?id=498640:

What compiler versions are supported for 3.3? We noticed an issue when 
compiling 3.3.3 with gcc 4.3:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-pc-linux-gnu/bin/ld: 
build/temp.linux-x86_64-3.3/var/tmp/portage/dev-lang/python-3.3.3/work/Python-3.3.3/Modules/_decimal/libmpdec/mpdecimal.o:
 warning: relocation against `mprime_rdx' in readonly section `.text'.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-pc-linux-gnu/bin/ld: 
build/temp.linux-x86_64-3.3/var/tmp/portage/dev-lang/python-3.3.3/work/Python-3.3.3/Modules/_decimal/libmpdec/basearith.o:
 relocation R_X86_64_PC32 against symbol `mprime_rdx' can not be used when 
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-pc-linux-gnu/bin/ld: 
final link failed: Bad value

Ruud Koolen redliz...@gentoo.org came up with a patch:

diff -r f7cebf727bc6 Modules/_decimal/libmpdec/constants.c
--- a/Modules/_decimal/libmpdec/constants.c Mon Jan 20 21:59:33 2014 +0200
+++ b/Modules/_decimal/libmpdec/constants.c Mon Jan 20 22:12:50 2014 +0100
@@ -71,6 +71,9 @@
   };
 
   /* magic number for constant division by MPD_RADIX */
+#if defined(__GNUC__)  (__GNUC__  4 || (__GNUC__ == 4  __GNUC_MINOR__  
3))
+ __attribute__((visibility(hidden)))
+#endif
   const mpd_uint_t mprime_rdx = 15581492618384294730ULL;
 
 #elif defined(CONFIG_32)

--
components: Library (Lib)
keywords: 3.3regression
messages: 208630
nosy: djc, skrah
priority: normal
severity: normal
status: open
title: gcc-4.3 support on python-3.3 (libmpdec)
versions: Python 3.3

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



[issue20324] gcc-4.3 support on python-3.3 (libmpdec)

2014-01-21 Thread Georg Brandl

Georg Brandl added the comment:

Should be figured out for 3.3.4

--
nosy: +georg.brandl
priority: normal - release blocker

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



[issue20324] gcc-4.3 support on python-3.3 (libmpdec)

2014-01-21 Thread Stefan Krah

Stefan Krah added the comment:

Do you mean gcc-4.2? The patch uses __GNUC_MINOR__  3.

On the FreeBSD build slave gcc-4.2 works:

   gcc (GCC) 4.2.1 20070831 patched [FreeBSD]


Are you sure that there aren't any gcc patches for this version? It 
looks like a gcc/binutils issue to me.

--

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