Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925037 - toolchain.eclass: cross-avr/gcc (and others) file collisions when USE=test
Summary: toolchain.eclass: cross-avr/gcc (and others) file collisions when USE=test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-02-20 06:24 UTC by Marco Sirabella
Modified: 2024-03-23 15:42 UTC (History)
1 user (show)

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


Attachments
emerge --info '=cross-avr/gcc-13.2.1_p20240113-r1::crossdev' (emerge-info-cross-avr-gcc.txt,8.43 KB, text/plain)
2024-02-20 06:24 UTC, Marco Sirabella
Details
gcc-build-logs.tar (gcc-build-logs.tar.xz,980.95 KB, application/x-xz)
2024-02-20 06:34 UTC, Marco Sirabella
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Sirabella 2024-02-20 06:24:26 UTC
Created attachment 885480 [details]
emerge --info '=cross-avr/gcc-13.2.1_p20240113-r1::crossdev'

Hi,

I'm cross-compiling avr support with crossdev on a system with global USE=test & am consistently running into this issue:

 * package cross-avr/gcc-13.2.1_p20240113-r1 NOT merged
 * 
 * Detected file collision(s):
 * 
 * 	/var/cache/gcc/13/gcc/testsuite/g++/g++.sum
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * sys-devel/gcc-13.2.1_p20240113-r1:13::gentoo
 * 	/var/cache/gcc/13/gcc/testsuite/g++/g++.sum


Removing the offending file fixes this successfully, but it looks like cross-platform builds w/ tests don't split out where they drop this file?
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-20 06:27:47 UTC
Ah, good catch. Sorry.
Comment 2 Marco Sirabella 2024-02-20 06:34:06 UTC
Created attachment 885481 [details]
gcc-build-logs.tar
Comment 3 Larry the Git Cow gentoo-dev 2024-03-23 15:42:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9c493e228a1542c4bb0a036303102718a78b679

commit e9c493e228a1542c4bb0a036303102718a78b679
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-15 10:17:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-23 15:40:49 +0000

    toolchain.eclass: add CHOST to test data path
    
    We get collisions for cross-compilers otherwise.
    
    Closes: https://bugs.gentoo.org/925037
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/toolchain.eclass | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)