Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't build any 5.x kernel...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nasaiya
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 151

PostPosted: Fri Apr 10, 2020 10:28 pm    Post subject: Can't build any 5.x kernel... Reply with quote

Hello,
I can't seem to get any 5.x kernel to build successfully (using the manual method)... It fails at the end with:
Code:
MODPOST 110 modules
Kernel: arch/x86/boot/bzImage is ready  (#1)
ERROR: "__devm_regmap_init_i2c" [drivers/media/i2c/tvp5150.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:93: __modpost] Error 1
make: *** [Makefile:1283: modules] Error 2


Code:
# grep -r __devm_regmap_init_i2c
drivers/base/regmap/regmap-i2c.c:struct regmap *__devm_regmap_init_i2c(struct i2c_client *i2c,
drivers/base/regmap/regmap-i2c.c:EXPORT_SYMBOL_GPL(__devm_regmap_init_i2c);
Binary file drivers/media/i2c/tvp5150.o matches
include/linux/regmap.h:struct regmap *__devm_regmap_init_i2c(struct i2c_client *i2c,
include/linux/regmap.h: __regmap_lockdep_wrapper(__devm_regmap_init_i2c, #config,       \


Code:
 # grep TVP .config
CONFIG_VIDEO_TVP5150=m


Code:
# grep REGMAP .config
CONFIG_REGMAP=y


I've tried each of y/m/unset for CONFIG_VIDEO_TVP5150 with no effect. I also tried a clean config (and ran make distclean first) and still had the error...

I have no idea how else to debug this.... could something outside of the source tree be causing the problem?

Thanks for any help!



Code:
# emerge --info
Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-9.2.0, glibc-2.29-r7, 4.19.97-gentoo x86_64)
=================================================================
System uname: Linux-4.19.97-gentoo-x86_64-AMD_Ryzen_5_1600X_Six-Core_Processor-with-gentoo-2.6
KiB Mem:    16418248 total,    811548 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 09 Apr 2020 20:00:01 +0000
Head commit of repository gentoo: 75f31320689f76b7c55f5c854d3015de2737bf92
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r2::gentoo, 3.6.10-r1::gentoo, 3.7.7-r1::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=znver1 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=znver1 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver1 -O2 -pipe"
GENTOO_MIRRORS="http://mirrors.evowise.com/gentoo/ https://mirrors.evowise.com/gentoo/ http://mirror.sjc02.svwh.net/gentoo/ http://gentoo.osuosl.org/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
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"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr consolekit crypt cups dbus declarative dts dvd dvdr emboss encode exif flac gif gpm gtk hardened iconv icu ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon pie plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp selinux semantic-desktop spell split-usr ssl ssp startup-notification svg tiff truetype ubac udev udisks unconfined unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xtpax xv xvid zlib" ABI_X86="64" 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 authz_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="mmx mmxext sse sse2" 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="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi r600" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


_________________
If it ain't broke - fix it till it is!


Last edited by nasaiya on Fri Apr 10, 2020 10:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7677
Location: Saint Amant, Acadiana

PostPosted: Fri Apr 10, 2020 10:30 pm    Post subject: Reply with quote

What is your active GCC version? As seen in emerge --info.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
nasaiya
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 151

PostPosted: Fri Apr 10, 2020 10:34 pm    Post subject: Reply with quote

Jaglover wrote:
What is your active GCC version? As seen in emerge --info.


Just added emerge --info output... 9.2.0
thanks
_________________
If it ain't broke - fix it till it is!
Back to top
View user's profile Send private message
hdcg
n00b
n00b


Joined: 07 Apr 2013
Posts: 68

PostPosted: Sat Apr 11, 2020 4:27 am    Post subject: Reply with quote

Hi nasaiya,

do you have REGMAP_I2C enabled?

Best Regards,
Holger
Back to top
View user's profile Send private message
nasaiya
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 151

PostPosted: Sun Apr 12, 2020 1:08 am    Post subject: Reply with quote

hdcg wrote:
Hi nasaiya,

do you have REGMAP_I2C enabled?

Best Regards,
Holger


No I do not... That option wasn't in the config file and I couldn't find it anywhere, so I tried adding it to the config file manually and still got the some error...

Code:

# echo "CONFIG_REGMAP_I2C=y" >> .config                   
# make -j12 && make install && make modules_install
scripts/kconfig/conf  --syncconfig Kconfig
  DESCEND  objtool
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GZIP    kernel/config_data.gz
  CC      kernel/configs.o
  AR      kernel/built-in.a
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  AR      init/built-in.a
  LD      vmlinux.o
  MODPOST vmlinux.o
  MODINFO modules.builtin.modinfo
  GEN     modules.builtin
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTTAB vmlinux
  SYSMAP  System.map
  MODPOST 110 modules
  CC      arch/x86/boot/version.o
  VOFFSET arch/x86/boot/compressed/../voffset.h
  OBJCOPY arch/x86/boot/compressed/vmlinux.bin
  GZIP    arch/x86/boot/compressed/vmlinux.bin.gz
  CC      arch/x86/boot/compressed/misc.o
ERROR: "__devm_regmap_init_i2c" [drivers/media/i2c/tvp5150.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:93: __modpost] Error 1
make: *** [Makefile:1283: modules] Error 2
make: *** Waiting for unfinished jobs....
  MKPIGGY arch/x86/boot/compressed/piggy.S
  AS      arch/x86/boot/compressed/piggy.o
  LD      arch/x86/boot/compressed/vmlinux
ld: arch/x86/boot/compressed/head_64.o: warning: relocation in read-only section `.head.text'
ld: warning: creating a DT_TEXTREL in object
  ZOFFSET arch/x86/boot/zoffset.h
  OBJCOPY arch/x86/boot/vmlinux.bin
  AS      arch/x86/boot/header.o
  LD      arch/x86/boot/setup.elf
  OBJCOPY arch/x86/boot/setup.bin
  BUILD   arch/x86/boot/bzImage
Setup is 13948 bytes (padded to 14336 bytes).
System is 9401 kB
CRC 9e1ea72d
Kernel: arch/x86/boot/bzImage is ready  (#3)


That sure sounds like the possible culprit though... do you know where to find it and it's related options in the menu so I can enable them properly?

On a hunch, I tried disabling the "Device Drivers/Multimedia/Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)" option and the build succeeded! Though I worry what may have been broken by de-selecting that option... I'll need to test my webcam etc...

Thanks!
_________________
If it ain't broke - fix it till it is!
Back to top
View user's profile Send private message
hdcg
n00b
n00b


Joined: 07 Apr 2013
Posts: 68

PostPosted: Sun Apr 12, 2020 2:15 am    Post subject: Reply with quote

Hi nasaiya,

to locate an option hit / while e.g. in "make menuconfig" selection.

On an arm64 box this yields:

Code:
    Symbol: REGMAP_I2C [=m]                                                                                                                                 │   
  │ Type  : tristate                                                                                                                                        │   
  │   Defined at drivers/base/regmap/Kconfig:19                                                                                                             │   
  │   Depends on: I2C [=m]                                                                                                                                  │   
  │   Selected by [m]:                                                                                                                                      │   
  │   - PINCTRL_MCP23S08 [=m] && PINCTRL [=y] && (SPI_MASTER [=y] || I2C [=m]) && (I2C [=m] || I2C [=m]=n) && I2C [=m]                                      │   
  │   - SND_SOC [=m] && SOUND [=m] && !UML && SND [=m] && I2C [=m]                                                                                          │   
  │   Selected by [n]:
  │   ...


The option will only be visible if the "Depends on" term is true.

Best Regards,
Holger
Back to top
View user's profile Send private message
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 837

PostPosted: Sun Apr 12, 2020 10:07 am    Post subject: Reply with quote

I think this is the same problem as a bug I opened a couple of weeks ago. When I tested the fix, it appeared 5.6.2 was already fixed, but yesterday I found 5.6.3 was still broken. I think I was wrong about 5.6.2; the same defect is in the drivers/power/supply/Kconfig file. The same patch appears to be needed.
_________________
Greybeard
Back to top
View user's profile Send private message
nasaiya
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 151

PostPosted: Mon Apr 13, 2020 3:58 pm    Post subject: Reply with quote

I thought this seemed like a bug of some sort... I've been on gentoo forever and have never had a kernel build fail before... everything appears to still be working after I found that "workaround" so I guess I'm satisfied for now.

Nice to know about that search feature in menuconfig!

Thanks for the help everyone!
_________________
If it ain't broke - fix it till it is!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum