[opensuse-kernel] v4.13-rc1 module linking issue
Hi, I'm facing an error trying to locally build a custom kernel module: make -C /lib/modules/`uname -r`/build M=$PWD make[1]: Entering directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' AR /home/andreas/lora/built-in.o CC [M] /home/andreas/lora/af_lora.o LD [M] /home/andreas/lora/lora.o CC [M] /home/andreas/lora/dev.o LD [M] /home/andreas/lora/lora-dev.o CC [M] /home/andreas/lora/sx1276.o CC [M] /home/andreas/lora/rn2483.o Building modules, stage 2. MODPOST 4 modules CC /home/andreas/lora/lora-dev.mod.o LD [M] /home/andreas/lora/lora-dev.ko ld: cannot find ./arch/arm64/kernel/ftrace-mod.o: No such file or directory make[4]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/scripts/Makefile.modpost:132: /home/andreas/lora/lora-dev.ko] Error 1 make[3]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/Makefile:1525: modules] Error 2 make[2]: *** [Makefile:145: sub-make] Error 2 make[1]: *** [Makefile:24: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' make: *** [Makefile:8: all] Error 2 If I pass KDIR=/lib/modules/4.12.*/build it builds okay. To reproduce: git clone https://github.com/afaerber/lora-modules.git cd lora-modules make It's not specific to that module of mine: make -C /lib/modules/`uname -r`/build M=$PWD make[1]: Entering directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' AR /home/andreas/netx-module/built-in.o CC [M] /home/andreas/netx-module/netx.o Building modules, stage 2. MODPOST 1 modules CC /home/andreas/netx-module/netx.mod.o LD [M] /home/andreas/netx-module/netx.ko ld: cannot find ./arch/arm64/kernel/ftrace-mod.o: No such file or directory make[4]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/scripts/Makefile.modpost:132: /home/andreas/netx-module/netx.ko] Error 1 make[3]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/Makefile:1525: modules] Error 2 make[2]: *** [Makefile:145: sub-make] Error 2 make[1]: *** [Makefile:24: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' make: *** [Makefile:8: all] Error 2 git clone https://github.com/afaerber/netx-module.git cd netx-module make On x86_64 (Leap host) lora-modules.git builds okay. armv7hl 4.13-rc1 packages haven't finished building yet for comparison. Any ideas what's going wrong here? Our config/arm64/default Kconfig? Our kernel[-default]-devel packaging? Something in the upstream kernel? Thanks, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
Hi, Am 22.07.2017 um 13:23 schrieb Andreas Färber:
I'm facing an error trying to locally build a custom kernel module:
This issue is still around at -rc7... Any ideas? Regards, Andreas
make -C /lib/modules/`uname -r`/build M=$PWD make[1]: Entering directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' AR /home/andreas/lora/built-in.o CC [M] /home/andreas/lora/af_lora.o LD [M] /home/andreas/lora/lora.o CC [M] /home/andreas/lora/dev.o LD [M] /home/andreas/lora/lora-dev.o CC [M] /home/andreas/lora/sx1276.o CC [M] /home/andreas/lora/rn2483.o Building modules, stage 2. MODPOST 4 modules CC /home/andreas/lora/lora-dev.mod.o LD [M] /home/andreas/lora/lora-dev.ko ld: cannot find ./arch/arm64/kernel/ftrace-mod.o: No such file or directory make[4]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/scripts/Makefile.modpost:132: /home/andreas/lora/lora-dev.ko] Error 1 make[3]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/Makefile:1525: modules] Error 2 make[2]: *** [Makefile:145: sub-make] Error 2 make[1]: *** [Makefile:24: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' make: *** [Makefile:8: all] Error 2
If I pass KDIR=/lib/modules/4.12.*/build it builds okay.
To reproduce: git clone https://github.com/afaerber/lora-modules.git cd lora-modules make
It's not specific to that module of mine:
make -C /lib/modules/`uname -r`/build M=$PWD make[1]: Entering directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' AR /home/andreas/netx-module/built-in.o CC [M] /home/andreas/netx-module/netx.o Building modules, stage 2. MODPOST 1 modules CC /home/andreas/netx-module/netx.mod.o LD [M] /home/andreas/netx-module/netx.ko ld: cannot find ./arch/arm64/kernel/ftrace-mod.o: No such file or directory make[4]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/scripts/Makefile.modpost:132: /home/andreas/netx-module/netx.ko] Error 1 make[3]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/Makefile:1525: modules] Error 2 make[2]: *** [Makefile:145: sub-make] Error 2 make[1]: *** [Makefile:24: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' make: *** [Makefile:8: all] Error 2
git clone https://github.com/afaerber/netx-module.git cd netx-module make
On x86_64 (Leap host) lora-modules.git builds okay. armv7hl 4.13-rc1 packages haven't finished building yet for comparison.
Any ideas what's going wrong here? Our config/arm64/default Kconfig? Our kernel[-default]-devel packaging? Something in the upstream kernel?
Thanks, Andreas
-- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
On Thu, 07 Sep 2017 14:14:26 +0200, Andreas F4rber wrote:
Hi,
Am 22.07.2017 um 13:23 schrieb Andreas Färber:
I'm facing an error trying to locally build a custom kernel module:
This issue is still around at -rc7... Any ideas?
Does the file in question exist? If there is, it's likely some race. If not, it's some missing dependency or such. FWIW, arch/arm64/kernel/ftrace-mod.S was added by commit e71a4e1bebaf7fd990efbdc04b38e5526914f0f1 arm64: ftrace: add support for far branches to dynamic ftrace Takashi
Regards, Andreas
make -C /lib/modules/`uname -r`/build M=$PWD make[1]: Entering directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' AR /home/andreas/lora/built-in.o CC [M] /home/andreas/lora/af_lora.o LD [M] /home/andreas/lora/lora.o CC [M] /home/andreas/lora/dev.o LD [M] /home/andreas/lora/lora-dev.o CC [M] /home/andreas/lora/sx1276.o CC [M] /home/andreas/lora/rn2483.o Building modules, stage 2. MODPOST 4 modules CC /home/andreas/lora/lora-dev.mod.o LD [M] /home/andreas/lora/lora-dev.ko ld: cannot find ./arch/arm64/kernel/ftrace-mod.o: No such file or directory make[4]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/scripts/Makefile.modpost:132: /home/andreas/lora/lora-dev.ko] Error 1 make[3]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/Makefile:1525: modules] Error 2 make[2]: *** [Makefile:145: sub-make] Error 2 make[1]: *** [Makefile:24: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' make: *** [Makefile:8: all] Error 2
If I pass KDIR=/lib/modules/4.12.*/build it builds okay.
To reproduce: git clone https://github.com/afaerber/lora-modules.git cd lora-modules make
It's not specific to that module of mine:
make -C /lib/modules/`uname -r`/build M=$PWD make[1]: Entering directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' AR /home/andreas/netx-module/built-in.o CC [M] /home/andreas/netx-module/netx.o Building modules, stage 2. MODPOST 1 modules CC /home/andreas/netx-module/netx.mod.o LD [M] /home/andreas/netx-module/netx.ko ld: cannot find ./arch/arm64/kernel/ftrace-mod.o: No such file or directory make[4]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/scripts/Makefile.modpost:132: /home/andreas/netx-module/netx.ko] Error 1 make[3]: *** [/usr/src/linux-4.13.0-rc1-2.g9c198f2/Makefile:1525: modules] Error 2 make[2]: *** [Makefile:145: sub-make] Error 2 make[1]: *** [Makefile:24: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.13.0-rc1-2.g9c198f2-obj/arm64/default' make: *** [Makefile:8: all] Error 2
git clone https://github.com/afaerber/netx-module.git cd netx-module make
On x86_64 (Leap host) lora-modules.git builds okay. armv7hl 4.13-rc1 packages haven't finished building yet for comparison.
Any ideas what's going wrong here? Our config/arm64/default Kconfig? Our kernel[-default]-devel packaging? Something in the upstream kernel?
Thanks, Andreas
-- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
On 09/07/2017, 02:33 PM, Takashi Iwai wrote:
On Thu, 07 Sep 2017 14:14:26 +0200, Andreas F4rber wrote:
Hi,
Am 22.07.2017 um 13:23 schrieb Andreas Färber:
I'm facing an error trying to locally build a custom kernel module:
This issue is still around at -rc7... Any ideas?
Does the file in question exist? If there is, it's likely some race. If not, it's some missing dependency or such.
FWIW, arch/arm64/kernel/ftrace-mod.S was added by commit e71a4e1bebaf7fd990efbdc04b38e5526914f0f1 arm64: ftrace: add support for far branches to dynamic ftrace
Despite the object is needed for modules build, we haven't packaged it. Hopefully fixed. thanks, -- js suse labs -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
Am 08.09.2017 um 13:35 schrieb Jiri Slaby:
On 09/07/2017, 02:33 PM, Takashi Iwai wrote:
On Thu, 07 Sep 2017 14:14:26 +0200, Andreas F4rber wrote:
Hi,
Am 22.07.2017 um 13:23 schrieb Andreas Färber:
I'm facing an error trying to locally build a custom kernel module:
This issue is still around at -rc7... Any ideas?
Despite the object is needed for modules build, we haven't packaged it. Hopefully fixed.
Confirming fixed with today's kernel. Many thanks! Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (3)
-
Andreas Färber
-
Jiri Slaby
-
Takashi Iwai