gcc

Comment 3 for bug 398403

Revision history for this message
David Sugar (dyfet-deactivatedaccount) wrote : Re: [Bug 398403] [NEW] gcc-4.4 fails to build upstart 0.6 on armel due to an internal compiler error

Perhaps it was forced to swap or ran out of virtual memory. Sometimes
you will find some strange situation in some piece of code where gcc
seems to decide it needs a massive amount of memory and a very long time
to compile something optimized. For example, there was a time when
compiling the pci code in X.org for powerpc would require more than 1
gig of ram, but only to compile one very specific file, and only as long
as optimization was used. Maybe we are seeing something similar here?

Oliver Grawert wrote:
> Public bug reported:
>
> Binary package hint: gcc-4.4
>
> in
> https://edge.launchpad.net/ubuntu/+source/upstart/0.6.0-2/+build/1112005/+files/buildlog_ubuntu-karmic-armel.upstart_0.6.0-2_FAILEDTOBUILD.txt.gz
> we see that the buidd appears to time out (in reality its hiding the actual error).
> building that package on a local armel machine spits out the following:
>
>
> /bin/bash ../libtool --tag=CC --mode=link gcc -std=gnu99 -Wall -g -fstack-protector -fPIE -Os -static -Wl,-z,relro -Wl,-z,now -pie -Wl,-O1 -o test_file test_file.o libnih.la
> libtool: link: gcc -std=gnu99 -Wall -g -fstack-protector -fPIE -Os -Wl,-z -Wl,relro -Wl,-z -Wl,now -pie -Wl,-O1 -o test_file test_file.o ./.libs/libnih.a -lrt
> gcc -std=gnu99 -DHAVE_CONFIG_H -DLOCALEDIR="\"/usr/share/locale\"" -I.. -I.. -I../intl -Wall -g -fstack-protector -fPIE -Os -MT test_watch.o -MD -MP -MF .deps/test_watch.Tpo -c -o test_watch.o `test -f 'tests/test_watch.c' || echo './'`tests/test_watch.c
> tests/test_watch.c: In function ‘test_new’:
> tests/test_watch.c:590: internal compiler error: in df_ref_record, at df-scan.c:2845
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
> make[3]: *** [test_watch.o] Error 1
> make[3]: Leaving directory `/home/ogra/devel/upstart-0.6.0/nih'
> make[2]: *** [check-am] Error 2
> make[2]: Leaving directory `/home/ogra/devel/upstart-0.6.0/nih'
> make[1]: *** [check-recursive] Error 1
> make[1]: Leaving directory `/home/ogra/devel/upstart-0.6.0'
>
> ** Affects: gcc-4.4 (Ubuntu)
> Importance: High
> Status: New
>
>
> ** Tags: armel
>
> ** Changed in: gcc-4.4 (Ubuntu)
> Importance: Undecided => High
>
> ** Tags added: armel
>