Building GCC with glibc in a non-standard location without root

假装没事ソ 提交于 2019-12-04 05:04:41

I am in a hurry so I can't analyze your error messages in detail.

Newer glibc and old glibc are not only ABI incompatible, but also headers, see gcc bug 52922.

Therefore any mixing will result in errors like you encountered, you need to be extremely careful.

Hand tuning is hopelessly tedious.

If your goal is to use gcc-4.7.2, I recommend you to Gentoo Prefix. I have many instances of Gentoo Prefix running on RHEL 5 (which have 2.6.18 kernel, gcc-4.1 and glibc-2.5 as you do). This compiles gcc-4.7.2 on top of glibc-2.5.

If your want some fun of using newer glibc, take a look at Prefix/libc. It is a work-in-progress though. Expect many breakage. But it won't be a big draw back as you are trying to compile out a modern toolchain by hand, will it?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!