Reproducible: Always Steps to Reproduce: 1.emerge -v gcc 2.emerge -e system 3. When I am trying to emerge gcc it fails due to errors while applying patches: Code: emerge -v gcc Calculating dependencies .....done! >>> emerge (1 of 1) sys-devel/gcc-3.4.4-r1 to / >>> md5 files ;-) gcc-3.3.5.20050130-r2.ebuild >>> md5 files ;-) gcc-3.4.3-r1.ebuild >>> md5 files ;-) gcc-3.2.3-r4.ebuild >>> md5 files ;-) gcc-3.3.5-r1.ebuild >>> md5 files ;-) gcc-3.1.1-r2.ebuild >>> md5 files ;-) gcc-4.1.0_beta20051230.ebuild >>> md5 files ;-) gcc-3.4.3.20050110-r2.ebuild >>> md5 files ;-) gcc-3.3.2-r7.ebuild >>> md5 files ;-) gcc-2.95.3-r9.ebuild >>> md5 files ;-) gcc-3.2.2.ebuild >>> md5 files ;-) gcc-3.3.6.ebuild >>> md5 files ;-) gcc-3.4.5.ebuild >>> md5 files ;-) gcc-3.4.4-r1.ebuild >>> md5 files ;-) gcc-4.0.1.ebuild >>> md5 files ;-) gcc-3.3.5.20050130-r1.ebuild >>> md5 files ;-) gcc-3.4.1-r3.ebuild >>> md5 files ;-) gcc-4.0.2-r2.ebuild >>> md5 files ;-) files/mkinfodir >>> md5 files ;-) files/digest-gcc-3.4.3-r1 >>> md5 files ;-) files/digest-gcc-3.2.3-r4 >>> md5 files ;-) files/digest-gcc-3.3.5-r1 >>> md5 files ;-) files/digest-gcc-3.3.5.20050130-r2 >>> md5 files ;-) files/digest-gcc-3.4.3.20050110-r2 >>> md5 files ;-) files/digest-gcc-4.1.0_beta20051230 >>> md5 files ;-) files/digest-gcc-3.3.2-r7 >>> md5 files ;-) files/digest-gcc-3.1.1-r2 >>> md5 files ;-) files/digest-gcc-3.3.5.20050130-r1 >>> md5 files ;-) files/gcc-configure-LANG.patch >>> md5 files ;-) files/digest-gcc-2.95.3-r9 >>> md5 files ;-) files/digest-gcc-3.4.1-r3 >>> md5 files ;-) files/digest-gcc-3.2.2 >>> md5 files ;-) files/digest-gcc-3.3.6 >>> md5 files ;-) files/fix_libtool_files.sh >>> md5 files ;-) files/gcc-spec-env.patch >>> md5 files ;-) files/gcc331_use_multilib.amd64.patch >>> md5 files ;-) files/pro-police-docs.patch >>> md5 files ;-) files/scan_libgcc_linked_ssp.sh >>> md5 files ;-) files/digest-gcc-3.4.4-r1 >>> md5 files ;-) files/digest-gcc-3.4.5 >>> md5 files ;-) files/digest-gcc-4.0.1 >>> md5 files ;-) files/digest-gcc-4.0.2-r2 >>> md5 files ;-) files/3.3.6/gcc-3.3.6-cross-compile.patch >>> md5 files ;-) files/3.2.1/gcc31-loop-load-final-value.patch >>> md5 files ;-) files/3.2.1/gcc32-arm-disable-mathf.patch >>> md5 files ;-) files/3.2.1/gcc32-arm-reload1-fix.patch >>> md5 files ;-) files/3.2.1/gcc32-athlon-alignment.patch >>> md5 files ;-) files/3.2.1/gcc32-sparc32-hack.patch >>> md5 files ;-) files/3.2.1/gcc32-strip-dotdot.patch >>> md5 files ;-) files/3.2.2/gcc32-pr7768.patch >>> md5 files ;-) files/3.2.2/gcc32-pr8213.patch >>> md5 files ;-) files/3.2.2/gcc-3.2.2-no-COPYING-cross-compile.patch >>> md5 files ;-) files/3.2.2/gcc322-ggc_page-speedup.patch >>> md5 files ;-) files/3.2.2/gcc-3.2.2-cross-compile.patch >>> md5 files ;-) files/3.2.3/gcc-323-propolice-version.patch >>> md5 files ;-) files/3.2.3/gcc-3.2.3-mergel-fix.patch >>> md5 files ;-) files/3.2.3/gcc323-hppa-default_assemble_visibility.patch >>> md5 files ;-) files/3.2.3/gcc-3.2.3-move-propolice-into-glibc.patch >>> md5 files ;-) files/3.2.3/gcc32-c++-classfn-member-template.patch >>> md5 files ;-) files/3.2.3/gcc32-mklibgcc-serialize-crtfiles.patch >>> md5 files ;-) files/3.2.3/gcc323-gentoo-branding.patch >>> md5 files ;-) files/3.3.1/gcc331-pp-fixup.patch >>> md5 files ;-) files/3.3.2/gcc332-gentoo-branding.patch >>> md5 files ;-) files/3.3.2/gcc332-altivec-fix.patch >>> md5 files ;-) files/3.3.3/gcc-3.3.3-norelro.patch >>> md5 files ;-) files/3.3.3/gcc-3.3.3-uclibc-add-ssp.patch >>> md5 files ;-) files/3.3.3/gcc-uclibc-3.3-loop.patch >>> md5 files ;-) files/3.3.3/gcc333-debian-arm-getoff.patch >>> md5 files ;-) files/3.3.3/gcc333-debian-arm-ldm.patch >>> md5 files ;-) files/3.3.3/gcc333_pre20040408-stack-size.patch >>> md5 files ;-) files/3.3.4/libffi-without-libgcj.patch >>> md5 files ;-) files/3.4.0/gcc-3.4.0-cc1-no-stack-protector.patch >>> md5 files ;-) files/3.4.0/gcc34-reiser4-fix.patch >>> md5 files ;-) files/3.4.1/gcc-3.4.1-r2-gentoo-branding.patch >>> md5 files ;-) files/3.4.1/gcc-3.4.1-glibc-is-native.patch >>> md5 files ;-) files/3.4.1/gcc-3.4.1-mips-n32only.patch >>> md5 files ;-) files/3.4.1/gcc-3.4.1-mips-n64only.patch >>> Unpacking source... >>> Unpacking gcc-3.4.4.tar.bz2 to /var/tmp/portage/gcc-3.4.4-r1/work >>> Unpacking gcc-3.4.4-patches-1.7.tar.bz2 to /var/tmp/portage/gcc-3.4.4-r1/work >>> Unpacking gcc-3.4.4-uclibc-patches-1.2.tar.bz2 to /var/tmp/portage/gcc-3.4.4-r1/work >>> Unpacking gcc-3.4.4-ssp-1.0.tar.bz2 to /var/tmp/portage/gcc-3.4.4-r1/work >>> Unpacking gcc-3.4.4-piepatches-v8.7.8.tar.bz2 to /var/tmp/portage/gcc-3.4.4-r1/work Applying stub patch for htb ... [OK] Applying gcc-3.4.4-ssp.patch ... [OK] Updating gcc to use SSP from libc ... [OK] Applying upstream pie patches ... [OK] 00_all_gcc-4.0-cvs-incompat.patch.bz2 ... [OK] 00_all_gcc-4.0-cvs-mips-pic-for-3.4.3.patch.bz2 ... [OK] 00_all_gcc-4.0-cvs-pic.patch.bz2 ... [OK] 00_all_gcc-4.0-cvs-start_endfile-for-3.4.4.patch.bz2 ... [OK] 03_all_gcc-3.4.0-v8.7.6.1-pie-arm.patch.bz2 ... [OK] 04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2 ... Failed Patch: 04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2 ! ( /var/tmp/portage/gcc-3.4.4-r1/temp/19451.patch ) Include in your bugreport the contents of: /var/tmp/portage/gcc-3.4.4-r1/temp/04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2-19451.out And below the context of 04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2-19451.out Code: ***** 04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2 ***** ============================================================== PIPE_COMMAND: bzip2 -dc /var/tmp/portage/gcc-3.4.4-r1/work/piepatch/upstream/04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2 > /var/tmp/portage/gcc-3.4.4-r1/temp/19451.patch PATCH COMMAND: patch -p0 -g0 --no-backup-if-mismatch < /var/tmp/portage/gcc-3.4.4-r1/temp/19451.patch ============================================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- gcc-3.4.0/gcc/config/arm/linux-elf.h.mps Thu May 20 09:11:17 2004 |+++ gcc-3.4.0/gcc/config/arm/linux-elf.h Thu May 20 09:12:28 2004 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ============================================================== PIPE_COMMAND: bzip2 -dc /var/tmp/portage/gcc-3.4.4-r1/work/piepatch/upstream/04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2 > /var/tmp/portage/gcc-3.4.4-r1/temp/19451.patch PATCH COMMAND: patch -p1 -g0 --no-backup-if-mismatch < /var/tmp/portage/gcc-3.4.4-r1/temp/19451.patch ============================================================== patching file gcc/config/arm/linux-elf.h Hunk #1 FAILED at 91. 1 out of 1 hunk FAILED -- saving rejects to file gcc/config/arm/linux-elf.h.rej ============================================================== PIPE_COMMAND: bzip2 -dc /var/tmp/portage/gcc-3.4.4-r1/work/piepatch/upstream/04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2 > /var/tmp/portage/gcc-3.4.4-r1/temp/19451.patch PATCH COMMAND: patch -p2 -g0 --no-backup-if-mismatch < /var/tmp/portage/gcc-3.4.4-r1/temp/19451.patch ============================================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- gcc-3.4.0/gcc/config/arm/linux-elf.h.mps Thu May 20 09:11:17 2004 |+++ gcc-3.4.0/gcc/config/arm/linux-elf.h Thu May 20 09:12:28 2004 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ============================================================== PIPE_COMMAND: bzip2 -dc /var/tmp/portage/gcc-3.4.4-r1/work/piepatch/upstream/04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2 > /var/tmp/portage/gcc-3.4.4-r1/temp/19451.patch PATCH COMMAND: patch -p3 -g0 --no-backup-if-mismatch < /var/tmp/portage/gcc-3.4.4-r1/temp/19451.patch ============================================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- gcc-3.4.0/gcc/config/arm/linux-elf.h.mps Thu May 20 09:11:17 2004 |+++ gcc-3.4.0/gcc/config/arm/linux-elf.h Thu May 20 09:12:28 2004 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ============================================================== PIPE_COMMAND: bzip2 -dc /var/tmp/portage/gcc-3.4.4-r1/work/piepatch/upstream/04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2 > /var/tmp/portage/gcc-3.4.4-r1/temp/19451.patch PATCH COMMAND: patch -p4 -g0 --no-backup-if-mismatch < /var/tmp/portage/gcc-3.4.4-r1/temp/19451.patch ============================================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- gcc-3.4.0/gcc/config/arm/linux-elf.h.mps Thu May 20 09:11:17 2004 |+++ gcc-3.4.0/gcc/config/arm/linux-elf.h Thu May 20 09:12:28 2004 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored
Don't know if this really matters, but removing "vanilla" from my USE flags seems to solve it (/usr/portage/profiles/use.desc says not to set the flag globally...don't know why I had it).
I had vanilla USE flag in my /etc/make.conf. So I removed it. Then I put this flag to package.use, and the error still exist. Then I removed this flag from package.use and i use it in Command Line - USE="vanilla" emerge -v gcc, and error still exist. The error disapear when I wasn't use vanilla USE flag at all. So i am leaving this bug open, because i am unable to compile gcc with vanilla flag at all. Without this flag all seems to be ok.
you shouldnt be using USE=vanilla since you probably have no idea what it's doing fixed in cvs