Undefined references to `__stack_chk_fail_local'

This error happens when compiling current master for target "x86", subtarget "generic":

/home/user/openwrt/staging_dir/target-i386_pentium4_musl/root-x86/usr/lib/libext2fs_pic.a(get_pathname.o): In function `ext2fs_get_pathname_int':
get_pathname.c:(.text.ext2fs_get_pathname_int+0x27b): undefined reference to `__stack_chk_fail_local'
/home/user/openwrt/staging_dir/target-i386_pentium4_musl/root-x86/usr/lib/libext2fs_pic.a(getsize.o): In function `ext2fs_get_device_size2':
getsize.c:(.text.ext2fs_get_device_size2+0x356): undefined reference to `__stack_chk_fail_local'
/home/user/openwrt/staging_dir/target-i386_pentium4_musl/root-x86/usr/lib/libext2fs_pic.a(icount.o): In function `ext2fs_create_icount_tdb':
icount.c:(.text.ext2fs_create_icount_tdb+0x213): undefined reference to `__stack_chk_fail_local'
/home/user/openwrt/staging_dir/target-i386_pentium4_musl/root-x86/usr/lib/libext2fs_pic.a(inline_data.o): In function `ext2fs_inline_data_dir_iterate':
inline_data.c:(.text.ext2fs_inline_data_dir_iterate+0x326): undefined reference to `__stack_chk_fail_local'
/home/user/openwrt/staging_dir/target-i386_pentium4_musl/root-x86/usr/lib/libext2fs_pic.a(ismounted.o): In function `is_swap_device':
ismounted.c:(.text.is_swap_device+0x1d8): undefined reference to `__stack_chk_fail_local'
/home/user/openwrt/staging_dir/target-i386_pentium4_musl/root-x86/usr/lib/libext2fs_pic.a(ismounted.o):ismounted.c:(.text.check_mntent_file+0x522): more undefined references to `__stack_chk_fail_local' follow
collect2: error: ld returned 1 exit status

With output:
package/Makefile:65: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 1
make[2]: Leaving directory '/home/user/openwrt'
package/Makefile:104: recipe for target '/home/user/openwrt/staging_dir/target-i386_pentium4_musl/stamp/.package_install' failed
make[1]: *** [/home/user/openwrt/staging_dir/target-i386_pentium4_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/user/openwrt'

You can make it compile in the "make menuconfig" menu: "Global build settings" => "User space Stack-Smashing Protection" => "None"