This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author djc
Recipients djc, skrah
Date 2014-01-21.08:21:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390292484.35.0.247229309669.issue20324@psf.upfronthosting.co.za>
In-reply-to
Content
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.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.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 <redlizard@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)
History
Date User Action Args
2014-01-21 08:21:24djcsetrecipients: + djc, skrah
2014-01-21 08:21:24djcsetmessageid: <1390292484.35.0.247229309669.issue20324@psf.upfronthosting.co.za>
2014-01-21 08:21:24djclinkissue20324 messages
2014-01-21 08:21:23djccreate