1 |
Oddity: I have multiple gentoo systems here happily using the |
2 |
kernel headers, including stddef.h. |
3 |
|
4 |
One of them, screwed up in a variety of other ways, blows up building |
5 |
glibc for lack of an extant header file: |
6 |
|
7 |
# ls -l /usr/include/linux/stddef.h; |
8 |
-rw-r--r-- 1 root root 131 Sep 12 22:40 /usr/include/linux/stddef.h |
9 |
|
10 |
i.e., the header is there. |
11 |
Checking, I've built glibc before: |
12 |
|
13 |
# emerge --search sys-libs/glibc |
14 |
|
15 |
[ Results for search key : sys-libs/glibc ] |
16 |
Searching... |
17 |
|
18 |
* sys-libs/glibc |
19 |
Latest version available: 2.32-r6 |
20 |
Latest version installed: 2.32-r1 |
21 |
Size of files: 21,811 KiB |
22 |
Homepage: https://www.gnu.org/software/libc/ |
23 |
Description: GNU libc C library |
24 |
License: LGPL-2.1+ BSD HPND ISC inner-net rc PCRE |
25 |
|
26 |
[ Applications found : 1 ] |
27 |
|
28 |
But emerge blows up: |
29 |
|
30 |
root@steamer:package.use # emerge =sys-libs/glibc-2.32-r1; |
31 |
Calculating dependencies... done! |
32 |
|
33 |
emerge: there are no ebuilds to satisfy "=sys-libs/glibc-2.32-r1". |
34 |
root@steamer:package.use # emerge sys-libs/glibc; |
35 |
Calculating dependencies... done! |
36 |
|
37 |
>>> Verifying ebuild manifests |
38 |
>>> Running pre-merge checks for sys-libs/glibc-2.32-r6 |
39 |
* Checking general environment sanity. |
40 |
make -j4 glibc-test CC=x86_64-pc-linux-gnu-gcc |
41 |
x86_64-pc-linux-gnu-gcc -O2 -march=native -pipe -Wl,-O1 -Wl,--as-needed glibc-test.c -o glibc-test |
42 |
In file included from glibc-test.c:1: |
43 |
? /usr/include/unistd.h:226:10: fatal error: stddef.h: No such file or directory |
44 |
? 226 | #include <stddef.h> |
45 |
? | ^~~~~~~~~~ |
46 |
? compilation terminated. |
47 |
make: *** [<builtin>: glibc-test] Error 1 |
48 |
emake failed |
49 |
|
50 |
So far as I know /usr/include/linux is on the standard -I path, |
51 |
or am I missing something? |
52 |
|
53 |
|
54 |
# emerge --info sys-libs/glibc; |
55 |
Portage 3.0.1 (python 3.6.12-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.32-r1, 5.6.13-gentoo.av x86_64) |
56 |
================================================================= |
57 |
System Settings |
58 |
================================================================= |
59 |
System uname: Linux-5.6.13-gentoo.av-x86_64-Intel-R-_Core-TM-_i7-7500U_CPU_@_2.70GHz-with-gentoo-2.7 |
60 |
KiB Mem: 16060584 total, 1608000 free |
61 |
KiB Swap: 33425404 total, 33425404 free |
62 |
Timestamp of repository gentoo: Sun, 14 Feb 2021 16:00:01 +0000 |
63 |
Head commit of repository gentoo: 4ceda2219fdacd7a7095774c7485ffe378f8d550 |
64 |
sh bash 5.0_p18 |
65 |
ld GNU ld (Gentoo 2.34 p4) 2.34.0 |
66 |
app-shells/bash: 5.0_p18::gentoo |
67 |
dev-lang/perl: 5.30.3-r1::gentoo |
68 |
dev-lang/python: 2.7.18-r2::gentoo, 3.6.12::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo, 3.9.0_beta1::gentoo |
69 |
dev-util/cmake: 3.17.3::gentoo |
70 |
dev-util/pkgconfig: 0.29.2::gentoo |
71 |
sys-apps/baselayout: 2.7-r1::gentoo |
72 |
sys-apps/openrc: 0.41.2::gentoo |
73 |
sys-apps/sandbox: 2.20::gentoo |
74 |
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo |
75 |
sys-devel/automake: 1.13.4-r2::gentoo, 1.16.2::gentoo |
76 |
sys-devel/binutils: 2.34-r1::gentoo |
77 |
sys-devel/gcc: 9.2.0-r3::gentoo, 9.3.0::gentoo |
78 |
sys-devel/gcc-config: 2.3.2::gentoo |
79 |
sys-devel/libtool: 2.4.6-r6::gentoo |
80 |
sys-devel/make: 4.3::gentoo |
81 |
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers) |
82 |
sys-libs/glibc: 2.32-r1::gentoo |
83 |
Repositories: |
84 |
|
85 |
gentoo |
86 |
location: /var/db/repos/gentoo |
87 |
sync-type: rsync |
88 |
sync-uri: rsync://rsync.gentoo.org/gentoo-portage |
89 |
priority: -1000 |
90 |
sync-rsync-verify-max-age: 24 |
91 |
sync-rsync-verify-jobs: 1 |
92 |
sync-rsync-verify-metamanifest: yes |
93 |
sync-rsync-extra-opts: |
94 |
|
95 |
ACCEPT_KEYWORDS="amd64" |
96 |
ACCEPT_LICENSE="* -@EULA" |
97 |
CBUILD="x86_64-pc-linux-gnu" |
98 |
CFLAGS="-O2 -march=native -pipe" |
99 |
CHOST="x86_64-pc-linux-gnu" |
100 |
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" |
101 |
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" |
102 |
CXXFLAGS="-O2 -march=native -pipe" |
103 |
DISTDIR="/usr/portage/distfiles" |
104 |
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" |
105 |
FCFLAGS="-O2 -pipe" |
106 |
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" |
107 |
FFLAGS="-O2 -pipe" |
108 |
GENTOO_MIRRORS="rsync://rsync.us.gentoo.org/" |
109 |
LANG="en_US.UTF-8" |
110 |
LC_ALL="en_US.UTF-8" |
111 |
LDFLAGS="-Wl,-O1 -Wl,--as-needed" |
112 |
LINGUAS="en_US" |
113 |
PKGDIR="/var/cache/binpkgs" |
114 |
PORTAGE_CONFIGROOT="/" |
115 |
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" |
116 |
PORTAGE_TMPDIR="/var/tmp" |
117 |
USE="X Xaw3d acl acpi alsa alsa-plugin amd64 bash-completion berkdb bluray bzip2 caps cdparanoia cleartype cli corefonts crypt cups dbus device-mapper dri elogind evdev ffmpeg foomatic fortran gcc4 gd gdbm gimp gsm gtk gzip iconv imap java jpeg libglvnd libtirpc lm_sensors lvm2 mad maildir md5sum mga mjpeg mp3 mpeg mtp multilib ncurses nls nptl ntfsdecrypt ntfsprogs ogg openmp openssl pam pcre perl png pnm ppm pulseaudio qt3support readline sasl scanner sdl seccomp speech; split-usr sqlite ssl svg tcpd tiff truetype type1 udev unicode upekbsapi vorbis x264 xanim xattr zeroconf zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default auth |
118 |
z_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="utf8,en_US,en_US.utf8" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS=" |
119 |
lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby26" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i965;" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" |
120 |
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
121 |
|
122 |
================================================================= |
123 |
Package Settings |
124 |
================================================================= |
125 |
|
126 |
sys-libs/glibc-2.32-r1::gentoo was built with the following: |
127 |
USE="caps (crypt) gd multiarch (multilib) ssp (static-libs) -audit (-cet) -compile-locales -custom-cflags -doc -headers-only -nscd -profile (-selinux) -static-pie -suid -systemtap -test (-vanilla)" ABI_X86="(64)" |
128 |
CFLAGS="-march=native -pipe -O2" |
129 |
CXXFLAGS="-march=native -pipe -O2" |
130 |
FEATURES="multilib-strict sandbox unknown-features-warn binpkg-dostrip pid-sandbox binpkg-logs usersandbox usersync ebuild-locks preserve-libs ipc-sandbox sfperms network-sandbox binpkg-docompress unmerge-logs parallel-fetch xattr qa-unresolved-soname-deps distlocks clean-logs merge-sync fixlafiles userpriv parallel-install unmerge-orphans assume-digests news protect-owned config-protect-if-modified strict userfetch" |