Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692052 - =sys-libs/glibc-2.29-r4 reports a warning: libc-modules.h: No such file or directory
Summary: =sys-libs/glibc-2.29-r4 reports a warning: libc-modules.h: No such file or di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-13 08:31 UTC by tt_1
Modified: 2019-09-01 17:05 UTC (History)
2 users (show)

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


Attachments
compressed build log (build.log.gz,273.93 KB, application/gzip)
2019-08-13 08:31 UTC, tt_1
Details
output from emerge --info (emerge--info,5.38 KB, text/plain)
2019-08-13 09:13 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2019-08-13 08:31:58 UTC
Created attachment 586706 [details]
compressed build log

from the build.log

cat build.log | grep error: -b1
28120-      -U_FORTIFY_SOURCE -Iinclude   -I/var/tmp/portage/sys-libs/glibc-2.29-r4/work/build-x86-x86_64-pc-linux-gnu-nptl  -Isysdeps/unix/sysv/linux/i386/i686  -Isysdeps/i386/i686/nptl  -Isysdeps/unix/sysv/linux/i386  -Isysdeps/unix/sysv/linux/x86/include -Isysdeps/unix/sysv/linux/x86  -Isysdeps/x86/nptl  -Isysdeps/i386/nptl  -Isysdeps/unix/sysv/linux/include -Isysdeps/unix/sysv/linux  -Isysdeps/nptl  -Isysdeps/pthread  -Isysdeps/gnu  -Isysdeps/unix/inet  -Isysdeps/unix/sysv  -Isysdeps/unix/i386  -Isysdeps/unix  -Isysdeps/posix  -Isysdeps/i386/i686/fpu/multiarch  -Isysdeps/i386/i686/fpu  -Isysdeps/i386/i686/multiarch  -Isysdeps/i386/i686  -Isysdeps/i386/fpu  -Isysdeps/x86/fpu/include -Isysdeps/x86/fpu  -Isysdeps/i386  -Isysdeps/x86  -Isysdeps/wordsize-32  -Isysdeps/ieee754/float128  -Isysdeps/ieee754/ldbl-96/include -Isysdeps/ieee754/ldbl-96  -Isysdeps/ieee754/dbl-64  -Isysdeps/ieee754/flt-32  -Isysdeps/ieee754  -Isysdeps/generic   -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include-fixed -isystem /usr/include -xc - -o /var/tmp/portage/sys-libs/glibc-2.29-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/bits/stdio_lim.hT
29331:cc1: fatal error: /var/tmp/portage/sys-libs/glibc-2.29-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/libc-modules.h: No such file or directory
29502-compilation terminated.

and since I'm on multilib, the same error again:  

41359-      -U_FORTIFY_SOURCE -Iinclude   -I/var/tmp/portage/sys-libs/glibc-2.29-r4/work/build-x86-x86_64-pc-linux-gnu-nptl  -Isysdeps/unix/sysv/linux/i386/i686  -Isysdeps/i386/i686/nptl  -Isysdeps/unix/sysv/linux/i386  -Isysdeps/unix/sysv/linux/x86/include -Isysdeps/unix/sysv/linux/x86  -Isysdeps/x86/nptl  -Isysdeps/i386/nptl  -Isysdeps/unix/sysv/linux/include -Isysdeps/unix/sysv/linux  -Isysdeps/nptl  -Isysdeps/pthread  -Isysdeps/gnu  -Isysdeps/unix/inet  -Isysdeps/unix/sysv  -Isysdeps/unix/i386  -Isysdeps/unix  -Isysdeps/posix  -Isysdeps/i386/i686/fpu/multiarch  -Isysdeps/i386/i686/fpu  -Isysdeps/i386/i686/multiarch  -Isysdeps/i386/i686  -Isysdeps/i386/fpu  -Isysdeps/x86/fpu/include -Isysdeps/x86/fpu  -Isysdeps/i386  -Isysdeps/x86  -Isysdeps/wordsize-32  -Isysdeps/ieee754/float128  -Isysdeps/ieee754/ldbl-96/include -Isysdeps/ieee754/ldbl-96  -Isysdeps/ieee754/dbl-64  -Isysdeps/ieee754/flt-32  -Isysdeps/ieee754  -Isysdeps/generic   -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include-fixed -isystem /usr/include -xc - -o /var/tmp/portage/sys-libs/glibc-2.29-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/bits/stdio_lim.hT
42570:cc1: fatal error: /var/tmp/portage/sys-libs/glibc-2.29-r4/work/build-x86-x86_64-pc-linux-gnu-nptl/libc-modules.h: No such file or directory
42741-compilation terminated.
Comment 1 tt_1 2019-08-13 09:13:35 UTC
Created attachment 586708 [details]
output from emerge --info
Comment 2 tt_1 2019-08-13 09:14:27 UTC
fun fact: =glibc-2.29-r4 emerged fine, despite the fatal error!
Comment 3 Matt Turner gentoo-dev 2019-08-13 17:16:19 UTC
I've seen this too.
Comment 4 Sergei Trofimovich gentoo-dev 2019-08-13 19:04:37 UTC
To reiterate the obvious: it's not an error WRT any build failures.

Possible an effect of handling CPPFLAGS handling where appropriate:
    https://bugs.gentoo.org/686248

I'll look at it.
Comment 5 Larry the Git Cow gentoo-dev 2019-09-01 16:14:56 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=7283a01fc3dd7523793c28d8acd04ce7fd049389

commit 7283a01fc3dd7523793c28d8acd04ce7fd049389
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-09-01 16:08:26 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-09-01 16:14:27 +0000

    crossdev: set --without-headers by default
    
    In https://sourceware.org/PR24577 we discovered that riscv
    can't really install libc headers as it needs a cross-compiler.
    
    Before this change we had the following default build order:
    - cross-binutils
    - kernel/libc headers
    - stage1 gcc
    - glibc
    - stage2 gcc
    
    After this change it's:
    - cross-binutils
    - stage1 gcc
    - kernel headers
    - glibc
    - stage2 gcc
    
    Users can still fors headers installation with '--ith-headers' option.
    
    Bug: https://sourceware.org/PR24577
    Bug: https://bugs.gentoo.org/692052
    Bug: https://bugs.gentoo.org/686248
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 crossdev | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Comment 6 Larry the Git Cow gentoo-dev 2019-09-01 16:50:50 UTC
The bug has been referenced in the following commit(s):

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

commit 8893df0d11de029e26b31bc3310e43ccb6b35dc3
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-09-01 16:47:47 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-09-01 16:50:41 +0000

    sys-libs/glibc: revert CPPFLAGS fix for cross-compilers
    
    In https://sourceware.org/PR24577 we discovered that riscv
    can't really install libc headers as it needs a cross-compiler.
    
    This revert reintroduces riscv bootstrap on crossdev.
    To workaround it use the -without-headers option until
    it's a crossdev's default.
    
    Bug: https://sourceware.org/PR24577
    Bug: https://bugs.gentoo.org/692052
    Bug: https://bugs.gentoo.org/686248
    Package-Manager: Portage-2.3.74, Repoman-2.3.17
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-libs/glibc/Manifest             |    4 +-
 sys-libs/glibc/glibc-2.29-r5.ebuild | 1473 ++++++++++++++++++++++++++++++++++
 sys-libs/glibc/glibc-2.30-r1.ebuild | 1482 +++++++++++++++++++++++++++++++++++
 sys-libs/glibc/glibc-9999.ebuild    |    2 +-
 4 files changed, 2959 insertions(+), 2 deletions(-)
Comment 7 Sergei Trofimovich gentoo-dev 2019-09-01 16:51:54 UTC
Should be all set now.
Comment 8 Larry the Git Cow gentoo-dev 2019-09-01 17:05:57 UTC
The bug has been referenced in the following commit(s):

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

commit 6d3ba8bbca17e9a7cc21c7211491f3848af92e5d
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-09-01 17:05:37 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-09-01 17:05:48 +0000

    sys-devel/crossdev: bump up to 20190901
    
    Set --without-headers by default
    
    In https://sourceware.org/PR24577 we discovered that riscv
    can't really install libc headers as it needs a cross-compiler.
    
    Before this change we had the following default build order:
    - cross-binutils
    - kernel/libc headers
    - stage1 gcc
    - glibc
    - stage2 gcc
    
    After this change it's:
    - cross-binutils
    - stage1 gcc
    - kernel headers
    - glibc
    - stage2 gcc
    
    Users can still use old headers installation with '--with-headers' option.
    
    Bug: https://sourceware.org/PR24577
    Bug: https://bugs.gentoo.org/692052
    Closes: https://bugs.gentoo.org/686248
    Package-Manager: Portage-2.3.74, Repoman-2.3.17
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-devel/crossdev/Manifest                 |  1 +
 sys-devel/crossdev/crossdev-20190901.ebuild | 36 +++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)