Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506430 - sys-kernel/vanilla-sources-3.14.0 - ax14577.c:(.text+...): undefined reference to `regmap_del_irq_chip'
Summary: sys-kernel/vanilla-sources-3.14.0 - ax14577.c:(.text+...): undefined referenc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-01 10:32 UTC by Juergen Rose
Modified: 2014-04-02 17:11 UTC (History)
0 users

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


Attachments
kernel config (.config_lyxx,108.33 KB, text/plain)
2014-04-01 10:32 UTC, Juergen Rose
Details
genkernel.log for 3.14.0-gentoo (genkernel.log,96.87 KB, text/plain)
2014-04-02 10:07 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2014-04-01 10:32:03 UTC
Created attachment 374020 [details]
kernel config

'genkernel --oldconfig --udev --lvm all' fails with:

...
* Linux Kernel 3.14.0 for x86_64...
* .. with config file /usr/share/genkernel/arch/x86_64/kernel-config
* kernel: --mrproper is disabled; not running 'make mrproper'.
*         >> Running oldconfig...
* kernel: --clean is disabled; not running 'make clean'.
*         >> Compiling 3.14.0 bzImage...
* ERROR: Failed to compile the "bzImage" target...
* 
* -- Grepping log... --
* 
*max14577.c:(.text+0x13e217): undefined reference to `regmap_del_irq_chip'
*drivers/built-in.o: In function `max14577_i2c_probe':
*max14577.c:(.text+0x13e35b): undefined reference to `regmap_add_irq_chip'
*max14577.c:(.text+0x13e383): undefined reference to `regmap_irq_get_domain'
*max14577.c:(.text+0x13e3c8): undefined reference to `regmap_del_irq_chip'
*Makefile:827: recipe for target 'vmlinux' failed
*make: *** [vmlinux] Error 1
Comment 1 Juergen Rose 2014-04-01 10:45:42 UTC
Removing the MAX14577 option clear the issue:

root@lynx:/usr/src/linux(35)# diff -u2  /home_impala/rose/.config_lyxx  .config
--- /home_impala/rose/.config_lyxx      2014-04-01 12:31:17.479335894 +0200
+++ .config     2014-04-01 12:35:30.000000000 +0200
@@ -2059,5 +2059,4 @@
 CONFIG_CHARGER_MAX8903=m
 # CONFIG_CHARGER_LP8727 is not set
-CONFIG_CHARGER_MAX14577=y
 # CONFIG_CHARGER_BQ2415X is not set
 # CONFIG_CHARGER_SMB347 is not set
@@ -2307,5 +2306,5 @@
 # CONFIG_MFD_88PM805 is not set
 # CONFIG_MFD_88PM860X is not set
-CONFIG_MFD_MAX14577=y
+# CONFIG_MFD_MAX14577 is not set
 CONFIG_MFD_MAX77686=y
 # CONFIG_MFD_MAX77693 is not set
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-01 11:04:39 UTC
Please attach the entire genkernel log to this bug report.
Comment 3 Mike Pagano gentoo-dev 2014-04-01 13:54:57 UTC
I don't have your .config but can you please 'make menuconfig' and select the appropriate config options so that CONFIG_REGMAP_IRQ=y.

Recompile and let us know if that helps.

If not, please include compile log, .config and emerge --info.
Comment 4 Juergen Rose 2014-04-02 10:06:31 UTC
(In reply to Jeroen Roovers from comment #2)
> Please attach the entire genkernel log to this bug report.

I just the same issue with 3.14.0-gentoo. I will attach the corresponding
/var/log/genkernel.log
Comment 5 Juergen Rose 2014-04-02 10:07:32 UTC
Created attachment 374080 [details]
genkernel.log for 3.14.0-gentoo
Comment 6 Juergen Rose 2014-04-02 10:13:09 UTC
(In reply to Mike Pagano from comment #3)
> I don't have your .config but can you please 'make menuconfig' and select
> the appropriate config options so that CONFIG_REGMAP_IRQ=y.
> 
> Recompile and let us know if that helps.
> 
> If not, please include compile log, .config and emerge --info.

I can not find a CONFIG_REGMAP_IRQ option neither in .config for vanilla-sources nor for gentoo sources. Maybe this option depends on an other option, which is not set in my config files. If someone has a .config, where this option is set, can attach this file.


root@lynx:/usr/src/linux(19)# grep -u3 REGMAP .config
CONFIG_DEBUG_DEVRES=y
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=y
CONFIG_DMA_SHARED_BUFFER=y

#
Comment 7 Mike Pagano gentoo-dev 2014-04-02 13:40:47 UTC
"make menuconfig"

then search on REGMAP_IRQ

That will show you what you need. For example, mine shows:

Selected by: MFD_AS3711 [=n] && HAS_IOMEM [=y] && I2C [=y]=y || MFD_AS3722 [=n] && HAS_IOMEM [=y] && I2C [=y]=y

In this example, you need either MFD_AS3711  or MFD_AS3722 for the option to get set.
Comment 8 Juergen Rose 2014-04-02 15:15:32 UTC
(In reply to Mike Pagano from comment #7)
> "make menuconfig"
> 
> then search on REGMAP_IRQ
> 
> That will show you what you need. For example, mine shows:
> 
> Selected by: MFD_AS3711 [=n] && HAS_IOMEM [=y] && I2C [=y]=y || MFD_AS3722
> [=n] && HAS_IOMEM [=y] && I2C [=y]=y
> 
> In this example, you need either MFD_AS3711  or MFD_AS3722 for the option to
> get set.

Thanks Mike for the help, setting CONFIG_MFD_AS3711=y solved the issue:

root@caiman:/usr/src/linux(86)# grep -u2 "AS37\|REGMAP_IRQ\|14577" .config
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=y
CONFIG_REGMAP_IRQ=y
CONFIG_DMA_SHARED_BUFFER=y

--
CONFIG_CHARGER_MAX8903=m
# CONFIG_CHARGER_LP8727 is not set
CONFIG_CHARGER_MAX14577=m
# CONFIG_CHARGER_BQ2415X is not set
# CONFIG_CHARGER_SMB347 is not set
--
CONFIG_MFD_CORE=y
# CONFIG_MFD_CS5535 is not set
CONFIG_MFD_AS3711=y
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_CROS_EC is not set
--
# CONFIG_MFD_88PM805 is not set
# CONFIG_MFD_88PM860X is not set
CONFIG_MFD_MAX14577=y
CONFIG_MFD_MAX77686=y
# CONFIG_MFD_MAX77693 is not set
--
# CONFIG_BACKLIGHT_LM3639 is not set
# CONFIG_BACKLIGHT_LP855X is not set
# CONFIG_BACKLIGHT_AS3711 is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
Comment 9 Mike Pagano gentoo-dev 2014-04-02 17:11:19 UTC
Great news. And thanks for letting us know.