Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 908550

Summary: sys-devel/gcc-13.1.1_p20230610: compile error missing doc dir creation
Product: Gentoo Linux Reporter: Jon Daniel <joneqdaniel>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: ds-gentoo, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 351559    
Attachments: build.log for gcc-13.1.1_p20230610

Description Jon Daniel 2023-06-15 17:40:10 UTC
make: *** x86_64-pc-linux-gnu/libstdc++-v3/doc: No such file or directory.  Stop.


Reproducible: Always

Steps to Reproduce:
1. USE="doc" emerge -v gcc:13
Actual Results:  
make: *** x86_64-pc-linux-gnu/libstdc++-v3/doc: No such file or directory.  Stop.
Comment 1 Jon Daniel 2023-06-15 17:47:46 UTC
Created attachment 863871 [details]
build.log for gcc-13.1.1_p20230610
Comment 2 Jon Daniel 2023-06-15 17:51:29 UTC
Last known working version is gcc-13.1.1_p20230603
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-15 20:21:49 UTC
(Please don't CC arch teams, they're used for keywording and stabilisation, not general bugs.)
Comment 4 Dirk Sondermann 2023-06-17 16:41:00 UTC
This issue is caused by a bug in toolchain.eclass introduced by the "cleanup < GCC 8 debris" commit about a week ago (https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/toolchain.eclass?id=a606b978be638005c9b832a733d087dbc97ae6d0).

This commit replaces
    cd "${CTARGET}"/libstdc++-v3/doc
    emake doc-man-doxygen
with
    cd "${CTARGET}"/libstdc++-v3/doc
    emake -C "${CTARGET}"/libstdc++-v3/doc doc-man-doxygen
Of course, using both cd and the -C option doesn't work.

As a workaround, it suffices to comment out the cd line in toolchain.eclass.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-17 16:50:36 UTC
Thanks, I was suspecting it was related.

I'll fix now.
Comment 6 Larry the Git Cow gentoo-dev 2023-06-17 16:52:40 UTC
The bug has been closed via the following commit(s):

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

commit c7cd3be059f221c6333980f155c1bafca9769ed0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-17 16:51:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-17 16:51:56 +0000

    toolchain.eclass: fix USE=doc build
    
    Thanks to Dirk Sondermann for pointing out the precise issue.
    
    Closes: https://bugs.gentoo.org/908550
    Fixes: a606b978be638005c9b832a733d087dbc97ae6d0
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/toolchain.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)