Skip to contentSkip to conversation

eglibc, do_prep_locale_tree() [: binary operator expected

DISCUSSION Dmitry Vinokurov 1 participant 1 message Aug 29, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

While building eglibc faced following error -- it fails on do_package with following message:
libgcc_s.so.1 must be installed for pthread_cancel to work

Digged a little and found in log.do_prep_locale_tree.10438:

/home/raydan/work/oe/build/tmp/work/armv5te-oe-linux/eglibc-2.10-r6.1/temp/run.do_prep_locale_tree.10438: line 795: [: /home/raydan/work/oe/build/tmp/cross/armv5te/arm-oe-linux/lib/libgcc_s.so: binary operator expected

Line 795 context in run.do_prep_locale_tree.10438 is:
795: if [ -f
/home/raydan/work/oe/build/tmp/cross/armv5te/arm-oe-linux/lib/libgcc_s.* ]; then
796: cp -pPR
/home/raydan/work/oe/build/tmp/cross/armv5te/arm-oe-linux/lib/libgcc_s.* $treedir/lib
797: fi

Due to this libgcc_s didn't copied into lib dir and eglibc couldn't find it at package stage.

Maybe it should be:
156: if [ -f ${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.so ]; then
instead of
156: if [ -f ${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.* ]; then
in recipes/eglibc/eglibc-package.bbclass?

P.S.: org.openembedded.dev branch

Signature · 1 line
Best Regards, Dmitry Vinokurov <[email protected]>