All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Unable to compile current master
@ 2017-07-03 15:14 Mark Jackson
  2017-07-03 15:57 ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Jackson @ 2017-07-03 15:14 UTC (permalink / raw)
  To: buildroot

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
make[3]: *** [s-attrtab] Killed
make[3]: *** Waiting for unfinished jobs....
rm gcc.pod
Makefile:4113: recipe for target 'all-gcc' failed
make[2]: *** [all-gcc] Error 2
package/pkg-generic.mk:227: recipe for target '/home/mpfj/buildroot/output/build/host-gcc-initial-6.3.0/.stamp_built' failed
make[1]: *** [/home/mpfj/buildroot/output/build/host-gcc-initial-6.3.0/.stamp_built] Error 2
Makefile:79: recipe for target '_all' failed
make: *** [_all] Error 2

Can anyone help out ?

If it's any help, the "gcc" portion of the build log is here (https://pastebin.com/PRaPh5n1)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Unable to compile current master
  2017-07-03 15:14 [Buildroot] Unable to compile current master Mark Jackson
@ 2017-07-03 15:57 ` Arnout Vandecappelle
  2017-07-04 10:37   ` Mark Jackson
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2017-07-03 15:57 UTC (permalink / raw)
  To: buildroot



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.

 You are sure that you're not out of disk space or anything like that?

 Regards,
 Arnout

> make[3]: *** [s-attrtab] Killed
> make[3]: *** Waiting for unfinished jobs....
> rm gcc.pod
> Makefile:4113: recipe for target 'all-gcc' failed
> make[2]: *** [all-gcc] Error 2
> package/pkg-generic.mk:227: recipe for target '/home/mpfj/buildroot/output/build/host-gcc-initial-6.3.0/.stamp_built' failed
> make[1]: *** [/home/mpfj/buildroot/output/build/host-gcc-initial-6.3.0/.stamp_built] Error 2
> Makefile:79: recipe for target '_all' failed
> make: *** [_all] Error 2
> 
> Can anyone help out ?
> 
> If it's any help, the "gcc" portion of the build log is here (https://pastebin.com/PRaPh5n1)
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

-- 
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Unable to compile current master
  2017-07-03 15:57 ` Arnout Vandecappelle
@ 2017-07-04 10:37   ` Mark Jackson
  2017-07-04 11:45     ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Jackson @ 2017-07-04 10:37 UTC (permalink / raw)
  To: buildroot

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 ...

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Unable to compile current master
  2017-07-04 10:37   ` Mark Jackson
@ 2017-07-04 11:45     ` Arnout Vandecappelle
  2017-07-04 13:08       ` Mark Jackson
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2017-07-04 11:45 UTC (permalink / raw)
  To: buildroot



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Unable to compile current master
  2017-07-04 11:45     ` Arnout Vandecappelle
@ 2017-07-04 13:08       ` Mark Jackson
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Jackson @ 2017-07-04 13:08 UTC (permalink / raw)
  To: buildroot

On 04/07/17 12:45, Arnout Vandecappelle wrote:
> 
> 
> 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
> 

Confirmed ... I've upped my VM from 2GB to 8GB and it all now compiles with JLEVEL=0 (auto).

FYI memory usage peaked at about 2.5GB.

Cheers
Mark J.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-04 13:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-03 15:14 [Buildroot] Unable to compile current master Mark Jackson
2017-07-03 15:57 ` Arnout Vandecappelle
2017-07-04 10:37   ` Mark Jackson
2017-07-04 11:45     ` Arnout Vandecappelle
2017-07-04 13:08       ` Mark Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.