1

I use compiler gcc 4.8 on Ubuntu 14.04. Recently I have found a problem with the compiler which can be solved by applying this following patch https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54930. However, I don't know how to apply this patch file to my gcc? Could someone help me how to do? Many thanks for any help.

Matt
  • 14,906
  • 27
  • 99
  • 149
jack279
  • 23
  • 5

1 Answers1

2

You have to download the source of gcc

wget https://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2

Extract it

tar jxvf gcc-4.8.5.tar.bz2

Install needed dependencies and build tools.

sudo apt-get build-dep

Get the patch

wget https://gcc.gnu.org/bugzilla/attachment.cgi?id=28448 -O reorder.patch

patch gcc

patch < reorder.patch

build gcc

make

and install it, if your are satisfied

make install

You can read Building GCC 4.7.0 on Debian Squeeze (Stable) for more detailed instructions. You can also use the debian package source with the apt-get source command.

Ortomala Lokni
  • 56,620
  • 24
  • 188
  • 240