+ -
当前位置:首页 → 问答吧 → GCC 4.1.1 and glibc 2.4 going stable 本周周报

GCC 4.1.1 and glibc 2.4 going stable 本周周报

时间:2006-08-24

来源:互联网

GCC 4.1.1 and glibc 2.4 going stable

As you can guess by the title, the Gentoo base project has announced that sys-devel/gcc-4.1.1 and sys-libs/glibc-2.4-r3 will be going stable on both amd64 and x86 this week because of their use in the upcoming 2006.1 release. The ppc architecture has already switched, when using the 2006.1 profile. Other architectures are working on support and will switch over at a later date. This is a major milestone for Gentoo as it marks a transition from the previously deprecated LinuxThreads to Native POSIX Thread Library (NPTL) for glibc. Support for the older versions of glibc with LinuxThreads will remain for x86 in a limited fashion. However, upstream glibc will no longer support LinuxThreads, so bug and security fixes are unlikely. The white paper (PDF) has more information on the design of NPTL. There is a well-written comparison of LinuxThreads and NPTL on IBM DeveloperWorks.

Users on x86 wishing to continue using LinuxThreads are asked to switch to using the "no-nptl" profile for default-linux, or to switch to using a hardened profile.

Warning: The hardened profiles are much more minimalistic than the default-linux profiles that you may be accustomed to using. Switching to a hardened profile will likely require enabling many more USE flags in make.conf to retain the same functionality.

Code Listing 1.1: Switching to the no-nptl profile

# cd /etc
# rm -f make.profile
# ln -sf ../usr/portage/profiles/default-linux/x86/no-nptl

Note: There is also a 2.4 sub-profile, which uses the 2.4 kernel and headers.

This also marks a major upgrade of the GNU Compiler Collection (GCC) to version 4.1.1 on Gentoo. This upgrade requires the user to perform certain tasks outlined in the GCC Upgrading Guide, which has recently been updated with information on GCC 4.1.1 for Gentoo users.

Users who do not wish to upgrade to GCC 4.1.1 will require a few more steps to ensure their systems are not upgraded.

Code Listing 1.2: Masking GCC 4.1.1

# mkdir -p /etc/portage
# echo ">=sys-devel/gcc-4.0" >> /etc/portage/package.mask

作者: fei   发布时间: 2006-08-24

2006.1也快来了。本月底应该就有了。爽啊。Gentoo向来很准时。不象debian和freebsd那么爱跳票。本周gcc 2.4-r3 gcc 4.1.1进stable

作者: fei   发布时间: 2006-08-24

glibc 2.4变成stable的了?
我的unstable怎么都还没有……

作者: Freesnake   发布时间: 2006-08-24

# /lib64/libc.so.6
GNU C Library development release version 2.4, by Roland McGrath et al.
......

作者: 种草得草   发布时间: 2006-08-24

portage里已经有2006.1的profile了,但是好像被deprecate了。期待ing……

作者: Zer4tul   发布时间: 2006-08-24

本周末---周日吧。gentoo一向准时

作者: fei   发布时间: 2006-08-24

我emerge -puD world 的时候怎么没有gcc-4.1.1和gcc-2.4啊,难道要改make.profile 到2006.1才会升级gcc 和glib吗?
我当然是emerge --sync过了!

作者: wsw   发布时间: 2006-08-24

引用:
作者: wsw
我emerge -puD world 的时候怎么没有gcc-4.1.1和gcc-2.4啊,难道要改make.profile 到2006.1才会升级gcc 和glib吗?
我当然是emerge --sync过了!
你的sync服务器更新不及时。

作者: sheep204   发布时间: 2006-08-24

我刚从fei的服务器sync了,4.1.1还是~arch

作者: Zer4tul   发布时间: 2006-08-25

顺便问一问,STL属于glibc吗?

作者: ifree   发布时间: 2006-08-25