This shows you the differences between two versions of the page.
internal:gcc-local-build [2012/03/23 15:01] dhiru add bison and flex as dependencies |
internal:gcc-local-build [2013/07/13 20:33] (current) solar recommend --enable-languages=c,c++ |
||
---|---|---|---|
Line 64: | Line 64: | ||
Beware: if you happen to omit or mistype the ''LD_LIBRARY_PATH'' setting (or if it needs to be revised for newer versions of the software components involved) or/and omit the ''--disable-multilib'' option (yet you're on an x86_64 or a "similar" 64-bit system without 32-bit compatibility compiler and libraries installed), then the build will likely fail with an error message that would not indicate the root cause of the failure. The error message will //not// provide any hint about ''LD_LIBRARY_PATH'' and ''--disable-multilib''. | Beware: if you happen to omit or mistype the ''LD_LIBRARY_PATH'' setting (or if it needs to be revised for newer versions of the software components involved) or/and omit the ''--disable-multilib'' option (yet you're on an x86_64 or a "similar" 64-bit system without 32-bit compatibility compiler and libraries installed), then the build will likely fail with an error message that would not indicate the root cause of the failure. The error message will //not// provide any hint about ''LD_LIBRARY_PATH'' and ''--disable-multilib''. | ||
+ | |||
+ | If you downloaded the full ''gcc'' tarball including all language frontends, but only need support for C and C++, use the ''--enable-languages=c,c++'' option to ''configure'' to speed up the build and reduce disk space usage. | ||
Create a script to conveniently and transparently run the new gcc. It may look like this: | Create a script to conveniently and transparently run the new gcc. It may look like this: |