Hi,
binutils-gold is crashing while compiling chromium[1]. This was originally found on Debian[2], but affects ubuntu[3] as well. Also, regular, non-gold ld will segfault with null pointer reference on the same linking commands. testcase:
# wget http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10%3Bfilename=allcodecs.o.x... # unxz allcodecs.o.xz # sha1sum allcodecs.o f7c93a9132e4d02a651ade8db9f7b3f76918d236 allcodecs.o # ld.gold allcodecs.o ld.gold: internal error in value_from_output_section, at ../../gold/reloc.cc:1516
according to report, not reproducible inside qemu.
[1] http://sourceware.org/bugzilla/show_bug.cgi?id=12771 [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616715 [3] https://launchpadlibrarian.net/72379090/buildlog_ubuntu-oneiric-armel.chromi...
On Fri, Jun 10, 2011 at 10:46 PM, Riku Voipio riku.voipio@linaro.org wrote:
Hi,
binutils-gold is crashing while compiling chromium[1]. This was originally found on Debian[2], but affects ubuntu[3] as well. Also, regular, non-gold ld will segfault with null pointer reference on the same linking commands. testcase:
# wget http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10%3Bfilename=allcodecs.o.x... # unxz allcodecs.o.xz # sha1sum allcodecs.o f7c93a9132e4d02a651ade8db9f7b3f76918d236 allcodecs.o # ld.gold allcodecs.o ld.gold: internal error in value_from_output_section, at ../../gold/reloc.cc:1516
according to report, not reproducible inside qemu.
[1] http://sourceware.org/bugzilla/show_bug.cgi?id=12771 [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616715 [3] https://launchpadlibrarian.net/72379090/buildlog_ubuntu-oneiric-armel.chromi...
Hi Riku. I'm afraid I can't reproduce this on my PandaBoard using a build from the end of last week:
michaelh@ursa2:~/tmp/ac/binutils-armv7l-maverick-cbuild128-ursa4-cortexa9r1/bin$ ./ld.gold -v GNU gold (GNU Binutils 2.21.52.20110610) 1.11
michaelh@ursa2:~/tmp/ac/binutils-armv7l-maverick-cbuild128-ursa4-cortexa9r1/bin$ ./ld.gold allcodecs.o .../libavcodec/allcodecs.c:132: error: undefined reference to 'avcodec_register' .../libavcodec/allcodecs.c:199: error: undefined reference to 'avcodec_register' .../libavcodec/allcodecs.c:217: error: undefined reference to 'avcodec_register' .../libavcodec/allcodecs.c:236: error: undefined reference to 'avcodec_register' .../libavcodec/allcodecs.c:398: error: undefined reference to 'av_register_codec_parser' .../libavcodec/allcodecs.c:418: error: undefined reference to 'h264_decoder' .../libavcodec/allcodecs.c:418: error: undefined reference to 'theora_decoder' .../libavcodec/allcodecs.c:418: error: undefined reference to 'vp3_decoder' .../libavcodec/allcodecs.c:418: error: undefined reference to 'aac_decoder' .../libavcodec/allcodecs.c:418: error: undefined reference to 'mp3_decoder' .../libavcodec/allcodecs.c:418: error: undefined reference to 'vorbis_decoder' .../libavcodec/allcodecs.c:418: error: undefined reference to 'pcm_f32le_decoder' .../libavcodec/allcodecs.c:418: error: undefined reference to 'pcm_s16le_decoder' .../libavcodec/allcodecs.c:418: error: undefined reference to 'pcm_u8_decoder' .../libavcodec/allcodecs.c:418: error: undefined reference to 'mpegaudio_parser'
michaelh@ursa2:~/tmp/ac/binutils-armv7l-maverick-cbuild128-ursa4-cortexa9r1/bin$ ./ld.bfd -v GNU ld (GNU Binutils) 2.21.52.20110610
michaelh@ursa2:~/tmp/ac/binutils-armv7l-maverick-cbuild128-ursa4-cortexa9r1/bin$ ./ld.bfd allcodecs.o ./ld.bfd: warning: cannot find entry symbol _start; defaulting to 00008094 allcodecs.o: In function `avcodec_register_all': .../libavcodec/allcodecs.c:132: undefined reference to `avcodec_register' .../libavcodec/allcodecs.c:199: undefined reference to `avcodec_register' .../libavcodec/allcodecs.c:217: undefined reference to `avcodec_register' .../libavcodec/allcodecs.c:236: undefined reference to `avcodec_register' .../libavcodec/allcodecs.c:262: undefined reference to `avcodec_register' .../libavcodec/allcodecs.c:285: more undefined references to `avcodec_register' follow allcodecs.o: In function `avcodec_register_all': .../libavcodec/allcodecs.c:398: undefined reference to `av_register_codec_parser' .../libavcodec/allcodecs.c:418: undefined reference to `h264_decoder' .../libavcodec/allcodecs.c:418: undefined reference to `theora_decoder' .../libavcodec/allcodecs.c:418: undefined reference to `vp3_decoder' .../libavcodec/allcodecs.c:418: undefined reference to `aac_decoder' .../libavcodec/allcodecs.c:418: undefined reference to `mp3_decoder' .../libavcodec/allcodecs.c:418: undefined reference to `vorbis_decoder' .../libavcodec/allcodecs.c:418: undefined reference to `pcm_f32le_decoder' .../libavcodec/allcodecs.c:418: undefined reference to `pcm_s16le_decoder' .../libavcodec/allcodecs.c:418: undefined reference to `pcm_u8_decoder' .../libavcodec/allcodecs.c:418: undefined reference to `mpegaudio_parser'
This is with binutils-20110610+git4725c92[1] which is one of my weekly git builds. binutils was configured the same as Ubuntu using gcc-linaro-4.6-2011.05. See the host.txt[2] in the same directory for more information about the environment.
-- Michael [1] http://builds.linaro.org/toolchain/binutils-2.22~20110610-1+git4725c92/ [2] http://builds.linaro.org/toolchain/binutils-2.22~20110610-1+git4725c92/logs/...
linaro-toolchain@lists.linaro.org