
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 8/25/10 11:37 , Christian Maeder wrote:
Christian Maeder schrieb:
Simon Marlow schrieb:
On 23/08/2010 17:45, Brandon S Allbery KF8NH wrote:
On 8/23/10 11:57 , Christian Maeder wrote:
However, when I try to compile the simplest source with on older gcc-3.4.4 I get the link error below, but only for the threaded rts!
With ghc-6.12.1 and gcc-4.x.y (x< 3) I did not have such a problem when switching to a machine that only has gcc-3.4.4. You got lucky; mixing GCC major versions like that is not expected (much less guaranteed) to work in general. GCC evidently changed the way it implements some thread support routines between gcc3 and gcc4.
Why should it not be possible to create object files (like also dynamic libs) with (very) different compilers?
All bets are off when it comes to compiler support routines. Anyone who's tried to link code generated by gcc with code generated by SunPro/Forte C on Solaris knows this one from experience. Those of us old enough to remember early versions of gcc do too; it took a while for the support to become stable, then libg++/libstdc++ went through the same thing later, then the gcc/egcs split (aka the gcc2/gcc3 split). Red Hat's cowboy 2.95.3 release also caused a lot of grief. gcc3 to gcc4 is the exception, not the rule. - -- brandon s. allbery [linux,solaris,freebsd,perl] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx1WiYACgkQIn7hlCsL25Vb7wCgqa3cCKh3aTtd/OhyYQjkrwmD 5twAoLUPM0yXBjw7i701V6XTUxmA8D7D =/Nnw -----END PGP SIGNATURE-----