Message208630
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) |
|
Date |
User |
Action |
Args |
2014-01-21 08:21:24 | djc | set | recipients:
+ djc, skrah |
2014-01-21 08:21:24 | djc | set | messageid: <1390292484.35.0.247229309669.issue20324@psf.upfronthosting.co.za> |
2014-01-21 08:21:24 | djc | link | issue20324 messages |
2014-01-21 08:21:23 | djc | create | |
|