Hello World!
  I've been following an interesting thread here:
http://www.linuxquestions.org/questions/linux-from-scratch-13/segfault-in-ld-2-14-so-running-alsa-utils-893812/
about alsa-utils' aplay and speaker-test segfaulting with glibc-2.14.
It looks like a bug in glibc so I wondered if it was fixed in current
glibc git head. So I've just tried to build with current glibc and
configure fails during the first pass in chapter 5 like this:

checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking whether to use .ctors/.dtors header and trailer... configure: error: 
missing __attribute__ ((constructor)) support??
lfs:/mnt/lfs/sources$

It looks like current glibc doesn't like the gcc we compile during the
first pass in chapter 5. I can configure and build glibc with the gcc
on my current system so I suspect that this is because the gcc we
compile during the first pass in chapter 5 is a cross compiler and does
not have this __attribute__ ((constructor)). Does anyone know any more
about this or how to work around it?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to