c++ - Building gcc 2.95.3 on Ubuntu 12.04 -
i want compile gcc-2.95.3 on ubuntu 12.04 machine, won't work.
i found this, , this, nothing helped.
i first tried build 4.6.3 version of gcc, got error message. tried build gcc-3.4.6 because in first link, version had been used build 2.95.3, not successful either. trevorpounds best page solving issue can find, wont work. tried other things too, nothing works.
as far know, newer toolchain may problem, there way fix without reinstalling whole os?
actually, dont care whether build myself or not, if there place can download binaries , work, i'm happy.
okay, detailed information did , error messages got:
the whole procedure here
1) have fresh installation of ubuntu 12.04
2) detect glibc have installed ldd --version
, got answer ldd (ubuntu eglibc 2.15-0ubuntu10.5) 2.15 ...
2.15
3) download glibc-2.15.tar.gz http://ftp.gnu.org/gnu/libc/, save downloads folder.
4) unpack glibc tar xzf glibc-2.15.tar.gz
5) mkdir -p gcc-2.95.3/glibc-workaround/include/bits
6) cp glibc-2.15/bits/stdio-lock.h gcc-2.95.3/glibc-workaround/include/bits
7) cp glibc-2.15/nptl/sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h gcc-2.95.3/glibc-workaround/include/bits
8) sed -i -n '1h;1!h;${;g;s/\(__pthread_slist_t __list;\n[ \t]*}\)/\1 __gcc_295_workaround__/g;p;}' gcc-2.95.3/glibc-workaround/include/bits/pthreadtypes.h
9) download gcc-2.95.3.tar.gz ftp://ftp.gnu.org/gnu/gcc/, save in downloads folder.
10) unpack gcc tar xzf gcc-2.95.3.tar.gz
11) cd gcc-2.95.3
12) download http://www.trevorpounds.com/blog/wp-content/uploads/2010/01/gcc-v2.95.x.debian.x86_64.diff , save downloads folder.
13) patch -p0 < ../gcc-v2.95.x.debian.x86_64.diff
no errors occur
14) mkdir ../gcc-2.95.3-objdir
15) cd ../gcc-2.95.3-objdir
16) ../gcc-2.95.3/configure --prefix=/opt/i386/gcc/gcc-2.95.3 --enable-languages=c,c++ --enable-threads=posix --enable-shared --host i386-pc-linux-gnu
seems work fine
17) make > log.txt
this error
i this in console:
and this log.txt file:
18) next step make install
didn't that, since got error before.
Comments
Post a Comment