problems compiling uclibc for Geode (i386)
Hi,
I am currently trying to update our buildroot system to the latest version that I pulled from your git repository yesterday. Things work reasonably well and I have everything compiling fine for the ARM platform. The Geode platform however is causing trouble when it comes to compiling uclibc 0.9.32.
First I had to fix a compile problem by pulling in this patch from the uclibc repository:
http://git.uclibc.org/uClibc/patch/?id=8245f3b4638fdff2011c2657af1bb211def704bc
But now I am stuck with this linker error:
LD libuClibc-0.9.32.so
libc/libc_so.a(err.os):(.text.vwarn_work+0x127): undefined reference to `__lll_unlock_wake_private'
collect2: ld returned 1 exit status
make[1]: *** [lib/libc.so] Error 1
make[1]: Leaving directory `/home/sven/git/buildroot/output/toolchain/uClibc-0.9.32'
Any ideas?
Thanks in advance,
Sven
Quoted 15 lines · Sven Neumann
Hi,
I am currently trying to update our buildroot system to the latest version that I pulled from your git repository yesterday. Things work reasonably well and I have everything compiling fine for the ARM platform. The Geode platform however is causing trouble when it comes to compiling uclibc 0.9.32.
First I had to fix a compile problem by pulling in this patch from the uclibc repository:
http://git.uclibc.org/uClibc/patch/?id=8245f3b4638fdff2011c2657af1bb211def704bcBut now I am stuck with this linker error:
Quoted 7 lines
LD libuClibc-0.9.32.so
libc/libc_so.a(err.os):(.text.vwarn_work+0x127): undefined reference to `__lll_unlock_wake_private'
collect2: ld returned 1 exit status
make[1]: *** [lib/libc.so] Error 1
make[1]: Leaving directory `/home/sven/git/buildroot/output/toolchain/uClibc-0.9.32'
Looks like NPTL support is broken for the generic 386 target. I've changed the uclibc configuration to i586 now (in the hope that this will work for a Geode processor) and that has fixed above problem for me.
Sven
Quoted 24 lines · Sven Neumann
Quoted 15 lines · Sven Neumann
Hi,
I am currently trying to update our buildroot system to the latest version that I pulled from your git repository yesterday. Things work reasonably well and I have everything compiling fine for the ARM platform. The Geode platform however is causing trouble when it comes to compiling uclibc 0.9.32.
First I had to fix a compile problem by pulling in this patch from the uclibc repository:
http://git.uclibc.org/uClibc/patch/?id=8245f3b4638fdff2011c2657af1bb211def704bcBut now I am stuck with this linker error:
Quoted 7 lines
LD libuClibc-0.9.32.so
libc/libc_so.a(err.os):(.text.vwarn_work+0x127): undefined reference to `__lll_unlock_wake_private'
collect2: ld returned 1 exit status
make[1]: *** [lib/libc.so] Error 1
make[1]: Leaving directory `/home/sven/git/buildroot/output/toolchain/uClibc-0.9.32'
Quoted 4 lines
Looks like NPTL support is broken for the generic 386 target. I've changed the uclibc configuration to i586 now (in the hope that this will work for a Geode processor) and that has fixed above problem for me.
Probably a good starting point although you don't mention __which__ Geode processor your using.
An older sort of reference but depending on your processor, might still apply:
http://www.larwe.com/technical/geode_linux.html
Mike
Quoted 11 lines
Sven
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Le Wed, 29 Jun 2011 14:29:34 +0200,
Sven Neumann <[email protected]> a ?crit :
Quoted 8 lines
Quoted 7 lines
LD libuClibc-0.9.32.so
libc/libc_so.a(err.os):(.text.vwarn_work+0x127): undefined reference to `__lll_unlock_wake_private'
collect2: ld returned 1 exit status
make[1]: *** [lib/libc.so] Error 1
make[1]: Leaving directory `/home/sven/git/buildroot/output/toolchain/uClibc-0.9.32'
Quoted 4 lines
Looks like NPTL support is broken for the generic 386 target. I've changed the uclibc configuration to i586 now (in the hope that this will work for a Geode processor) and that has fixed above problem for me.
This function is implemented in libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S, so presumably, i386 does not work, but i486 should.
My understanding is that the futex mechanism uses the cmpxchgl instruction, which is only available on 486+ processors.
Maybe someone should send a patch to the uClibc configuration system to make sure that NPTL cannot be selected on i386.
Regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello,
Please don't reply to me directly, but rather to the Buildroot list.
Le Wed, 29 Jun 2011 15:48:29 +0100,
Dominic Newton <[email protected]> a ?crit :
Quoted 5 lines
uclibc menuconfig correctly shows that the i386 sub-architecture does not support NPTL. For some reason this is not picked up in the main buildroot config options. I've not had time to see why. I normally run uclicb-menuconfig and see what is supported their as a double check at the moment.
Ah, then it's Buildroot that needs to be fixed.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> Hello,
Thomas> Please don't reply to me directly, but rather to the Buildroot list.
Thomas> Le Wed, 29 Jun 2011 15:48:29 +0100,
Thomas> Dominic Newton <[email protected]> a ?crit :
Quoted 5 lines
Quoted 5 lines
uclibc menuconfig correctly shows that the i386 sub-architecture does not support NPTL. For some reason this is not picked up in the main buildroot config options. I've not had time to see why. I normally run uclicb-menuconfig and see what is supported their as a double check at the moment.
Thomas> Ah, then it's Buildroot that needs to be fixed.
I've fixed it now. Perhaps we should consider defaulting to something slightly less ancient than i386.
Signature · 1 line
Bye, Peter Korsgaard
Le Tue, 05 Jul 2011 09:00:15 +0200,
Peter Korsgaard <[email protected]> a ?crit :
Quoted 2 lines
I've fixed it now. Perhaps we should consider defaulting to something slightly less ancient than i386.
Agreed. At least i486 or i586 seems like a good default.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Sven, Thomas, All,
Quoted 16 lines · On Wednesday 29 June 2011 16:43:30 Thomas Petazzoni wrote:
Le Wed, 29 Jun 2011 14:29:34 +0200,
Sven Neumann <[email protected]> a ?crit :Quoted 8 lines
Quoted 7 lines
LD libuClibc-0.9.32.so
libc/libc_so.a(err.os):(.text.vwarn_work+0x127): undefined reference to `__lll_unlock_wake_private'
collect2: ld returned 1 exit status
make[1]: *** [lib/libc.so] Error 1
make[1]: Leaving directory `/home/sven/git/buildroot/output/toolchain/uClibc-0.9.32'Quoted 4 lines
Looks like NPTL support is broken for the generic 386 target. I've changed the uclibc configuration to i586 now (in the hope that this will work for a Geode processor) and that has fixed above problem for me.
Quoted 6 lines
This function is implemented in
libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S, so presumably, i386 does not work, but i486 should.My understanding is that the futex mechanism uses the cmpxchgl instruction, which is only available on 486+ processors.
I confirm Thomas' explanations.
NPTL on x86 requires i486+ because of the cmpxchg opcode. NPTL will never be implemented for i386.
IIRC, Geode is at least an i586, so you should be OK by selecting i586 instead of generic i386.
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
Quoted 16 lines · Thomas Petazzoni
Le Wed, 29 Jun 2011 14:29:34 +0200,
Sven Neumann <[email protected]> a ?crit :Quoted 8 lines
Quoted 7 lines
LD libuClibc-0.9.32.so
libc/libc_so.a(err.os):(.text.vwarn_work+0x127): undefined reference to `__lll_unlock_wake_private'
collect2: ld returned 1 exit status
make[1]: *** [lib/libc.so] Error 1
make[1]: Leaving directory `/home/sven/git/buildroot/output/toolchain/uClibc-0.9.32'Quoted 4 lines
Looks like NPTL support is broken for the generic 386 target. I've changed the uclibc configuration to i586 now (in the hope that this will work for a Geode processor) and that has fixed above problem for me.
Quoted 6 lines
This function is implemented in
libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S, so presumably, i386 does not work, but i486 should.My understanding is that the futex mechanism uses the cmpxchgl instruction, which is only available on 486+ processors.
yes
Quoted 3 lines
Maybe someone should send a patch to the uClibc configuration system to make sure that NPTL cannot be selected on i386.
yes that will be the correct fix.
Quoted 13 lines
Regards,
Thomas
Signature · 8 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
-Khem
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Sven" == Sven Neumann <[email protected]> writes:
Hi,
Sven> Looks like NPTL support is broken for the generic 386 target. I've Sven> changed the uclibc configuration to i586 now (in the hope that this will Sven> work for a Geode processor) and that has fixed above problem for me.
I've committed a fix so you cannot enable NPTL if you choose i386.
Signature · 1 line
Bye, Peter Korsgaard