Summary: | boost-1.34.1-r2 fails to compile with gcc-4.3 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Keith R. <EckosGentoo> |
Component: | [OLD] GCC Porting | Assignee: | C++ Team [disbanded] <cpp+disabled> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | ag, dev-zero, dschridde+gentoobugs, esigra, hvengel, jlec, jmgottfried, mabi, nicholas.potts, pacho, rhill, StormByte, xenoterracide |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 198121 | ||
Attachments: |
fixes date-time
fixes mpl fixes spirit/phoenix fixes bit range fixes ptree-utils fixes spirit/phoenix boost-1.34.1-gcc-4.3.patch boost-gcc43.patch Patch for boost-1.34.1 to compile with gcc-4.3 |
Description
Keith R.
2008-02-17 01:47:54 UTC
Created attachment 143702 [details, diff]
fixes date-time
Created attachment 143703 [details, diff]
fixes mpl
Created attachment 143705 [details, diff]
fixes spirit/phoenix
Created attachment 143707 [details, diff]
fixes bit range
Created attachment 143708 [details, diff]
fixes ptree-utils
theres are the patches I found on the boost website submitted by others. Created attachment 143709 [details]
fixes spirit/phoenix
posted the wrong one which was an html formatted one, now is corrected.
thanks. there are still some errors but i'm working on them now. Created attachment 143739 [details, diff]
boost-1.34.1-gcc-4.3.patch
this is a preliminary patch that successfully builds
dev-libs/boost-1.34.1-r2 USE="icu -debug -doc -pyste -tools"
i will need to patch gccxml before i can test USE=pyste and i get a failure with USE=tools that i need to look into. the testsuite probably needs work too. debian and fedora have some build fixes that i didn't seem to need, some of which Keith posted above. i'll have to look into that too.
Sorry I didn't know how to combine the all above patches into a single solid one. boost is still broken with this patch. "dirtyepic, with your patch from here boost compile with gcc-4.3, but it doesn't resolve problems with packages that depend on it, eg. tagpy still fails with the same error message as it used to with boost compiled with gcc-4.2.3." i need to work on this some more soon. it's worth noting that boost svn builds without any problems. Created attachment 144862 [details, diff]
boost-gcc43.patch
This is the patch applied by fedora
Ryan's patch from comment #9 fixes the compilation of boost, but at least one other package that depends on boost (glob2-0.9.2) still fails. glob2 needs a patch for boost/date_time/date_facet.hpp in order to compile correctly, or else you'll get some redeclaration errors. (I noticed that patch is included in the Fedora patch from comment #12). USE="tools" still failed. It took me a while (hours!), but I think I may have found the problem. boost/serialization/collection_traits.hpp is missing a #include <climits>. It uses ULONG_MAX in an #ifdef. Since ULONG_MAX is being used in an #ifdef, gcc did not throw any errors about it being undeclared, but instead other things were being erroneously #defined because of the miscalculation. I'm going to attach a patch that combines all of the previous patches, including the patch for collection_traits.hpp. Aside from missing includes, the other patches on this bug modified some references (boost::mpl::next, instead of just next). I do not know if they are required or not, but I included them. As a test, I just finished recompiling all packaged depending on boost on my system, and they all compiled just fine. Created attachment 145187 [details, diff]
Patch for boost-1.34.1 to compile with gcc-4.3
This patch allows me to compile boost-1.34.1 with USE="tools".
Thanks Neil. I think those are pieces that were missing. A couple things were fixed a little differently upstream but the end result is the same. I've added your patch to the gcc-porting overlay. boost-1.34.1-r1 also fails at compile time. (In reply to comment #14) > Created an attachment (id=145187) [edit] > Patch for boost-1.34.1 to compile with gcc-4.3 > > This patch allows me to compile boost-1.34.1 with USE="tools". > It seems to works for me on ~amd64 sorry people, but I'm not going to fix boost-1.34.1, but you should use boost-1.35.0 with gcc-4.3.x (which compiles with a couple of patches). *** Bug 219586 has been marked as a duplicate of this bug. *** *** Bug 217577 has been marked as a duplicate of this bug. *** *** Bug 246259 has been marked as a duplicate of this bug. *** *** Bug 252371 has been marked as a duplicate of this bug. *** *** Bug 253362 has been marked as a duplicate of this bug. *** *** Bug 258638 has been marked as a duplicate of this bug. *** Thanks to Ryan Hill, patch boost-1.34.1-gcc-4.3.patch really help me to compile boost-1.34.1-r2 |