Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928143 - app-admin/mcelog-198:0 -- ‘cputype’ has an incomplete type ‘enum cputype’
Summary: app-admin/mcelog-198:0 -- ‘cputype’ has an incomplete type ‘enum cputype’
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: parallel-make
  Show dependency tree
 
Reported: 2024-03-29 21:25 UTC by Gary E. Miller
Modified: 2024-05-24 05:27 UTC (History)
3 users (show)

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


Attachments
build log (app-admin:mcelog-198:20240329-190101.log,36.17 KB, text/plain)
2024-03-29 21:27 UTC, Gary E. Miller
Details
build log (app-admin:mcelog-198:20240517-194328.log,27.21 KB, text/plain)
2024-05-17 19:45 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2024-03-29 21:25:48 UTC
Fails to emerge:

x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native  -Wall -Wextra -Wno-missing-f
ield-initializers -Wno-unused-parameter -Wstrict-prototypes -Wformat-security -W
missing-declarations -Wdeclaration-after-statement  -o tsc.o tsc.c
p4.c: In function ‘check_for_mirror’:
p4.c:307:17: error: ‘cputype’ has an incomplete type ‘enum cputype’
  307 |         switch (cputype) {
      |                 ^~~~~~~
p4.c:308:14: error: ‘CPU_BROADWELL_EPEX’ undeclared (first use in this function)
  308 |         case CPU_BROADWELL_EPEX:
      |              ^~~~~~~~~~~~~~~~~~
p4.c:308:14: note: each undeclared identifier is reported only once for each fun
ction it appears in
p4.c:310:14: error: ‘CPU_SKYLAKE_XEON’ undeclared (first use in this function)
  310 |         case CPU_SKYLAKE_XEON:
      |              ^~~~~~~~~~~~~~~~
p4.c:312:14: error: ‘CPU_ICELAKE_XEON’ undeclared (first use in this function)
  312 |         case CPU_ICELAKE_XEON:
      |              ^~~~~~~~~~~~~~~~

etc.

Reproducible: Always

Steps to Reproduce:
1. emerge -uDNa world
2.
3.
Actual Results:  
Fails to emerge.

Expected Results:  
Expected good emerge.

dilbert ~ # emerge -pqv '=app-admin/mcelog-198::gentoo'
[ebuild     U ] app-admin/mcelog-198 [197] USE="(-selinux)" 

dilbert ~ # emerge --info '=app-admin/mcelog-198::gentoo'
Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-13, glibc-2.39-r2, 6.8.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.8.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.39
KiB Mem:    32715092 total,  15942652 free
KiB Swap:   32767996 total,  32767996 free
Timestamp of repository gentoo: Fri, 29 Mar 2024 17:34:19 +0000
Head commit of repository gentoo: 4a2f045ef06aa957ad4aed3e030e9b8887218e79

Timestamp of repository brother-overlay: Tue, 12 Mar 2024 00:48:34 +0000
Head commit of repository brother-overlay: 6ea9527f4660df51670c8c2d630999cf67a908b3

Timestamp of repository guru: Fri, 29 Mar 2024 18:03:35 +0000
Head commit of repository guru: ddd05aad2010a8f9fcc30d832769425654dad13d

sh bash 5.2_p26
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.0::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.10.14::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust:             1.72.0-r1::gentoo
dev-lang/rust-bin:         1.76.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.53.1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo, 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.2::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.2::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.2::gentoo
sys-kernel/linux-headers:  6.7-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y --backtrack 100"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="rsync://129.97.134.71/gentoo-distfiles http://mirror.clarkson.edu/gentoo/ ftp://129.97.134.71/gentoo-distfiles/ http://mirrors.mit.edu/gentoo-distfiles/ http://128.153.145.19/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j5 -l5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
PYTHONPATH="/usr/local/lib/python3.11/site-packages/"
SHELL="/bin/bash"
USE="X a52 aac acl acpi adns aio alsa alsa-plugin amd64 appindicator blake2 bluetooth bluray bpf branding bs2b btpclient bzip2 cairo calf capstone cdda cdp cdr cet chromecast converter corefonts cover cpudetection cron crypt cups curl custom-modes cxx dav1d dbus dia dri dri3 drm dts dv dvb dvd dvdr echo-cancel edp elogind enchant encode equalizer exif extra faac faad fdk fdp fdt ffmpeg ffmpegthumbnailer fingerprint fingerprints flac flashrom fontconfig fontforge freetype fuse gbm gdal gdbm geoclue geolocation geos gif gimp gles2 glib gpg gpm graph gsettings gstreamer gtk gtk3 gui harfbuzz hddtemp hdf5 http http2 iconv icu imagequant introspection io-uring ipp_autosetup ipv6 jack jemalloc jpeg json keybinder ladspa lame lastfm lcms libcanberra libdrm libmpeg2 libmpv libnotify libretro libsamplerate libssh2 libtirpc libuvc libvisual lm_sensors lto lv2 lvm lz4 lzma lzo mad matroska md5sum mda-lv2 metadata mng mp3 mp4 mpeg mtp multilib ncat ncurses ndiff nfs nfsv41 nftables nls notify nping nvenc nvme obex offensive ogg openal opengl openmp opus pam pango pcap pcre pcre32 pdf pgo pipewire pkcs11 plugins png policykit positioning postproc ppds projectm pulseaudio pvr python qml qt5 qt6 qt6-imageformats qtaudio quick rav1e readline realtime rtc rtmp rubberband screencast sdl sdl-image seccomp sensors sftp slirp sna snappy sndfile snmp sound sox spandsp spell spice spirv split-usr sqlite ssh ssl startup-notification svg svg2 svt-av1 system-llvm system-png szip taglib test-rust theora threads tiff tk tkip tools truetype twolame udev udisks uefi unicode update_drivedb upnp upower usb usbredir uxa v4l v4lutils vaapi vde vdpau vdr vim vim-syntax virgl visio vmaf vorbis vpx vtk vulkan webchannel webengine webkit webp wg-quick widgets wifi wxwidgets x264 x265 xa xattr xcb xft xinerama xml xrandr xv xvid zamaudio zenmap zeroconf zimg zink zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="roccat_savu libinput joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_10" RUBY_TARGETS="ruby31" SANE_BACKENDS="net" VIDEO_CARDS="intel i965 nvidia iris nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Gary E. Miller 2024-03-29 21:27:05 UTC
Created attachment 889023 [details]
build log

build log
Comment 2 Ben Kohler gentoo-dev 2024-05-17 12:54:25 UTC
I'm a bit confused, you seem to be the only person I've seen who has any problems compiling mcelog.  Does MAKEOPTS="-j1" work for this build failure?
Comment 3 Gary E. Miller 2024-05-17 19:45:21 UTC
> I'm a bit confused, you seem to be the only person I've seen who has any problems compiling mcelog.

No, I'm the only Gentoo user that took the time to report the issue.  Most mcelog users gave up on it a long time ago.

> Does MAKEOPTS="-j1" work for this build failure?

No.

I'll upload a new build log with -j1
Comment 4 Gary E. Miller 2024-05-17 19:45:50 UTC
Created attachment 893191 [details]
build log

new build log with -j1
Comment 5 Ben Kohler gentoo-dev 2024-05-18 11:46:12 UTC
Can you open an issue upstream? I do not know how to fix this.
Comment 6 Alexander Monakov 2024-05-23 16:27:09 UTC
This can happen if /var/tmp/portage is on a filesystem with low-resolution timestamps. I can reproduce it on an ext4 with 128-byte inodes (which drops timestamp resolution from nanoseconds to seconds):

truncate -s 64M ext4-i128
mkfs.ext4 -I 128 ext4-i128
mount -o loop ext4-i128 /var/tmp/portage