[Buildroot] Unable to compile current master

Arnout Vandecappelle arnout at mind.be
Tue Jul 4 11:45:07 UTC 2017



On 04-07-17 12:37, Mark Jackson wrote:
> On 03/07/17 16:57, Arnout Vandecappelle wrote:
>>
>>
>> On 03-07-17 17:14, Mark Jackson wrote:
>>> I'm trying to bring an old 2012 buildroot project up-to-date, so to test my current setup I've branched the git master and tried:-
>>>
>>> $ git checkout origin/master -b master
>>> $ git reset --hard origin/master
>>> $ make clean
>>> $ make beaglebone_defconfig
>>> $ make
>>>
>>> But this fails when compiling gcc with the following:-
>>>
>>> ...
>>> /usr/bin/g++ -fno-PIE -c   -O2 -I/home/mpfj/buildroot/output/host/usr/include -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I/home/mpfj/buildroot/output/host/usr/include -I/home/mpfj/buildroot/output/host/usr/include -I/home/mpfj/buildroot/output/host/usr/include  -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace   -o insn-extract.o -MT insn-extract.o -MMD -MP -MF ./.deps/insn-extract.TPo insn-extract.c
>>> Makefile:2201: recipe for target 's-attrtab' failed
>>
>>   Apparently genattrtab failed but I can't find any output.
>>
>>   Can you continue the build with BR2_JLEVEL=1 ? That should make any error
>> message easier to locate.
>>
> 
> Okay ... with JLEVEL=1 (rather than 0 (auto)), it compiles !!
> 
> So it must be some strange parallel compilation bug ...

 Actually it's more likely that your system ran out of memory. GCC uses some
weird internal memory allocator that will fail invisibly in some situations
(i.e. without invoking OOM killer or anything obvious like that).

 Those generators were apparently running all in parallel in your build, so that
could indeed explain memory exhaustion.

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF


More information about the buildroot mailing list