Unable to apply the patches on gcc-6 debian source

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to apply the patches on gcc-6 debian source

Muhammad Bilal
Hi,

I'm trying to build debian gcc-6 from source and need to apply
debian/patches but getting error upon apply patches.

Below is my steps:

1.
Download all sources code from
https://packages.debian.org/source/stretch/gcc-6


2. Run dpkg-source

$ dpkg-source -x gcc-6_6.3.0-18+deb9u1.dsc
$ cd gcc-6-6.3.0


3. try to apply patches (but got an error)

$ fakeroot debian/rules patch

--
--
---


patching file src/libiberty/xmemdup.c
patching file src/libiberty/xstrndup.c
patching file src/include/libiberty.h
patching file src/include/demangle.h

Applying patch svn-doc-updates.diff
patching file src/gcc/doc/generic.texi
Hunk #1 FAILED at 3241.
1 out of 1 hunk FAILED -- rejects in file src/gcc/doc/generic.texi
patching file src/gcc/doc/extend.texi
Hunk #1 FAILED at 10157.
Hunk #2 FAILED at 13973.
Hunk #3 FAILED at 16554.
Hunk #4 FAILED at 16591.
Hunk #5 FAILED at 16609.
Hunk #6 FAILED at 16723.
6 out of 6 hunks FAILED -- rejects in file src/gcc/doc/extend.texi
patching file src/gcc/doc/gcc.texi
Hunk #1 FAILED at 67.
Hunk #2 FAILED at 140.
Hunk #3 FAILED at 167.
3 out of 3 hunks FAILED -- rejects in file src/gcc/doc/gcc.texi
patching file src/gcc/doc/passes.texi
Hunk #1 FAILED at 163.
1 out of 1 hunk FAILED -- rejects in file src/gcc/doc/passes.texi
patching file src/gcc/doc/invoke.texi
Hunk #1 FAILED at 256.
Hunk #2 FAILED at 1001.
Hunk #3 FAILED at 3651.
Hunk #4 FAILED at 19880.
Hunk #5 FAILED at 20113.
Hunk #6 FAILED at 20159.
6 out of 6 hunks FAILED -- rejects in file src/gcc/doc/invoke.texi
patching file src/gcc/doc/md.texi
Hunk #1 FAILED at 3139.
Hunk #2 FAILED at 3211.
2 out of 2 hunks FAILED -- rejects in file src/gcc/doc/md.texi
patching file src/gcc/doc/gcov-dump.texi
Patch svn-doc-updates.diff does not apply (enforce with -f)
debian/rules.patch:447: recipe for target 'stamps/02-patch-stamp' failed


How  can I fix this?


Thanks,
-Bilal

Reply | Threaded
Open this post in threaded view
|

Unable to apply the patches on gcc-6 debian source

Muhammad Bilal
Hi,

I'm trying to build debian gcc-6 from source and need to apply
debian/patches but getting error upon apply patches.

Below is my steps:

1.
Download all sources code from
https://packages.debian.org/source/stretch/gcc-6


2. Run dpkg-source

$ dpkg-source -x gcc-6_6.3.0-18+deb9u1.dsc
$ cd gcc-6-6.3.0


3. try to apply patches (but got an error)

$ fakeroot debian/rules patch

--
--
---


patching file src/libiberty/xmemdup.c
patching file src/libiberty/xstrndup.c
patching file src/include/libiberty.h
patching file src/include/demangle.h

Applying patch svn-doc-updates.diff
patching file src/gcc/doc/generic.texi
Hunk #1 FAILED at 3241.
1 out of 1 hunk FAILED -- rejects in file src/gcc/doc/generic.texi
patching file src/gcc/doc/extend.texi
Hunk #1 FAILED at 10157.
Hunk #2 FAILED at 13973.
Hunk #3 FAILED at 16554.
Hunk #4 FAILED at 16591.
Hunk #5 FAILED at 16609.
Hunk #6 FAILED at 16723.
6 out of 6 hunks FAILED -- rejects in file src/gcc/doc/extend.texi
patching file src/gcc/doc/gcc.texi
Hunk #1 FAILED at 67.
Hunk #2 FAILED at 140.
Hunk #3 FAILED at 167.
3 out of 3 hunks FAILED -- rejects in file src/gcc/doc/gcc.texi
patching file src/gcc/doc/passes.texi
Hunk #1 FAILED at 163.
1 out of 1 hunk FAILED -- rejects in file src/gcc/doc/passes.texi
patching file src/gcc/doc/invoke.texi
Hunk #1 FAILED at 256.
Hunk #2 FAILED at 1001.
Hunk #3 FAILED at 3651.
Hunk #4 FAILED at 19880.
Hunk #5 FAILED at 20113.
Hunk #6 FAILED at 20159.
6 out of 6 hunks FAILED -- rejects in file src/gcc/doc/invoke.texi
patching file src/gcc/doc/md.texi
Hunk #1 FAILED at 3139.
Hunk #2 FAILED at 3211.
2 out of 2 hunks FAILED -- rejects in file src/gcc/doc/md.texi
patching file src/gcc/doc/gcov-dump.texi
Patch svn-doc-updates.diff does not apply (enforce with -f)
debian/rules.patch:447: recipe for target 'stamps/02-patch-stamp' failed


How  can I fix this?


Thanks,
-Bilal