Around Sun 09 Nov 2014 22:33:53 -0800 or thereabout, Guenter Roeck wrote: > On 11/09/2014 10:20 PM, Hans-Christian Egtvedt wrote: >>Around Sun 09 Nov 2014 20:49:31 -0800 or thereabout, Guenter Roeck wrote: >>>Hi, >>> >>>v3.17-stable-queue fails to buildavr32:atngw100mkii_evklcd101_defconfig >>>with the following link error. >>> >>>vsprintf.c:(.text+0x16dc): relocation truncated to fit: R_AVR32_16N_PCREL against symbol `_ctype' defined in .text section in lib/lib.a(ctype.o) >>>make: *** [vmlinux] Error 1 >> >>Something has grown too large for a 16-bit relative jump. Are you building >>with -Os? >> > Just whatever the default build does; no special configuration. Optimize for size is default, so you should be good. >>>Culprit is commit "random: add and use memzero_explicit() for clearing data". >>>I don't see the error upstream. I have no idea why it fails to build in stable-queue, >>>nor why the build is fine with the upstream kernel. >>> >>>avr32:defconfig and avr32:merisc_defconfig builds pass without error. >> >>I would suspect atngw100mkii_evklcd101_defconfig enables more stuff than the >>other defconfigs, which might explain why. I typically build with only the >>set of features I need. >> >>Sadly, no updated toolchain will be available to my knowledge. >> > Still, it is odd that both the upstream kernel and -next compile. > Any idea why that might be the case ? I could not spot why, but lib/lib.a seems to grow too large for 16-bit relative jump for the final linker stage of vmlinux If you disable CONFIG_DEBUG_BUGVERBOSE then the kernel compiles. Torvalds master branch -rw-rw-r-- 1 egtvedt egtvedt 201602 Nov 10 07:38 lib/lib.a linux-stable with 3.17 queue without CONFIG_DEBUG_BUGVERBOSE -rw-rw-r-- 1 egtvedt egtvedt 200634 Nov 10 08:40 lib/lib.a linux-stable with 3.17 queue with CONFIG_DEBUG_BUGVERBOSE -rw-rw-r-- 1 egtvedt egtvedt 202114 Nov 10 08:46 lib/lib.a There are some other minor changes to lib/* stuff in Torvalds master branch, perhaps that is what fixes this back to working order? -- Hans-Christian Egtvedt -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html