Skip to contentSkip to conversation

linux-next build failure

DISCUSSION Mark Salter 2 participants 3 messages Jan 3, 2014 – Jan 6, 2014 Linux-next tree

lore
Share & tools
lore
#0 lore raw

The c6x arch (no MMU) is failing to build in linux-next with:

kernel/built-in.o:(.fardata+0x3fc): undefined reference to overcommit_ratio_handler' kernel/built-in.o:(.fardata+0x420): undefined reference to overcommit_kbytes_handler' make[1]: *** [vmlinux] Error 1

Looks like this patch adds those functions to mm/mmap.c which is only used when CONFIG_MMU is defined.

commit 31bdaf7c8e8a784fd8f889371bdacb24670734c7
Author: Jerome Marchand <[email protected]>
Date: Tue Dec 17 10:45:06 2013 +1100

mm: add overcommit_kbytes sysctl variable

#1 lore raw
Quoted 6 lines · On Fri, 03 Jan 2014 10:58:49 -0500 Mark Salter <[email protected]> wrote:

The c6x arch (no MMU) is failing to build in linux-next with:

kernel/built-in.o:(.fardata+0x3fc): undefined reference to overcommit_ratio_handler' kernel/built-in.o:(.fardata+0x420): undefined reference to overcommit_kbytes_handler' make[1]: *** [vmlinux] Error 1

Quoted 8 lines

Looks like this patch adds those functions to mm/mmap.c which is only used when CONFIG_MMU is defined.

commit 31bdaf7c8e8a784fd8f889371bdacb24670734c7
Author: Jerome Marchand <[email protected]>
Date: Tue Dec 17 10:45:06 2013 +1100

mm: add overcommit_kbytes sysctl variable

Please check whether that linux-next includes
http://ozlabs.org/~akpm/mmotm/broken-out/mm-add-overcommit_kbytes-sysctl-variable-fix-2.patch

#2 lore raw
Quoted 11 lines · Andrew Morton
Quoted 9 lines · On Fri, 03 Jan 2014 10:58:49 -0500 Mark Salter <[email protected]> wrote:

The c6x arch (no MMU) is failing to build in linux-next with:

kernel/built-in.o:(.fardata+0x3fc): undefined reference to overcommit_ratio_handler' kernel/built-in.o:(.fardata+0x420): undefined reference to overcommit_kbytes_handler' make[1]: *** [vmlinux] Error 1

Looks like this patch adds those functions to mm/mmap.c which is only used when CONFIG_MMU is defined.

Quoted 8 lines
Quoted 5 lines

commit 31bdaf7c8e8a784fd8f889371bdacb24670734c7
Author: Jerome Marchand <[email protected]>
Date: Tue Dec 17 10:45:06 2013 +1100

mm: add overcommit_kbytes sysctl variable

Please check whether that linux-next includes
http://ozlabs.org/~akpm/mmotm/broken-out/mm-add-overcommit_kbytes-sysctl-variable-fix-2.patch

It doesn't, but today's does, so the problem went away. Looks like that patch got delayed a bit because of the holidays.