Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37025 - Can not emerge gcc 3.2.3-r3. Fails when trying to apply tls patch
Summary: Can not emerge gcc 3.2.3-r3. Fails when trying to apply tls patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High blocker
Assignee: Please assign to toolchain
URL: http://www.uoe.dk/stuff/gentoo/gcc-3....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-02 08:04 UTC by Thomas Skovsende
Modified: 2004-04-18 22:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Skovsende 2004-01-02 08:04:07 UTC
When running an emerge gcc(after doing an emerge sync), it downloads gcc 3.2.3-r3 and starts to apply a patch with the following error:

 * Failed Patch: gcc-3.2.3-tls-update.patch.bz2!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/gcc-3.2.3-r3/temp/gcc-3.2.3-tls-update.patch.bz2-4113.out

URL above points to that file.

Current version of gcc is 3.2.3-r2

Reproducible: Always
Steps to Reproduce:
1.emerge sync
2.emerge -u gcc
3.

Actual Results:  
* Applying gcc-3.2.3-tls-update.patch.bz2...

 * Failed Patch: gcc-3.2.3-tls-update.patch.bz2!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/gcc-3.2.3-r3/temp/gcc-3.2.3-tls-update.patch.bz2-20585.out


!!! ERROR: sys-devel/gcc-3.2.3-r3 failed.
!!! Function epatch, Line 322, Exitcode 0
!!! Failed Patch: gcc-3.2.3-tls-update.patch.bz2!


Expected Results:  
Uhmm - less errormessages :)
Comment 1 Christopher Wawak 2004-01-25 08:21:32 UTC
FWIW, I had this problem, with the same error messages.  I deleted the work directories as well as all of the source files in distfiles, then re-emerged, and it worked.
Comment 2 Alexander Gabert (RETIRED) gentoo-dev 2004-03-03 06:57:46 UTC
the patch that may have failed was apparently not the tls update

this is because the logic always displays the last applied patch as being the failed one.

two possible problems play into this:

1) the abort shows only the last patch that failed, which must not necessarily be the patch that actually led into the failure.

2) when emerging gcc, interrupting it, restarting it and in the meantime not removing the involved directory in /var/tmp/portage, it may not be removed and recreated (call this a portage bug or what) on given heuristics.

recent versions recognize the timestamp on the patches and source packages involved and can recreate the working directory.

however, it may still happen that patching in gcc breaks when (as the last comment also noticed) the "old" directory is still around.

thanks,

Alex
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2004-03-19 02:35:30 UTC
is this this an issue ?
Comment 4 SpanKY gentoo-dev 2004-04-18 22:50:51 UTC
should be all set on this