ERROR when bitbake e2fsprogs
The error log is blow:
| make[2]: Entering directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12/misc' |COMPILE_ET prof_err.et |CC mke2fs.c |CC util.c |CC ../e2fsck/profile.c |CC prof_err.c |PROFILE_TO_C mke2fs.conf |CC default_profile.c |LD mke2fs |CC badblocks.c |LD badblocks |CC tune2fs.c |LD tune2fs |CC dumpe2fs.c |LD dumpe2fs |CC blkid.c |LD blkid | ../lib/libext2fs.so: undefined reference to `sem_init' | ../lib/libext2fs.so: undefined reference to `sem_destroy' | ../lib/libext2fs.so: undefined reference to `sem_post' | ../lib/libext2fs.so: undefined reference to `sem_wait' | collect2: ld returned 1 exit status | make[2]: *** [blkid] Error 1 | make[2]: Leaving directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12/misc' | make[1]: *** [all-progs-recursive] Error 1 | make[1]: Leaving directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12' | make: *** [all] Error 2 | FATAL: oe_runmake failed | ERROR: Function 'do_compile' failed (see /sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/temp/log.do_compile.10589 for further information)
NOTE: package e2fsprogs-1.41.12-r20: task do_compile: Failed
ERROR: Task 8 (/sdb1/yocto/poky-bernard-5.0/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.41.12.bb, do_compile) failed with exit code '1' Waiting for 1 active tasks to finish:
0: ncurses-5.7-r1 do_package (pid 31748)
And in its Makefile of DIR misc it has
#
# Library definitions
#
LIB = $(top_builddir)/lib
LIBSS = $(LIB)/libss.so # -ldlLIBCOM_ERR = $(LIB)/libcom_err.so # -lpthread
LIBE2P = $(LIB)/libe2p.so
LIBEXT2FS = $(LIB)/libext2fs.so
LIBUUID = -luuid
LIBBLKID = $(LIB)/libblkid.so # $(LIBUUID)
I think the red lind should append -lpthread, but it not. any suggestion?
bitbake e2fsprogs encounter undefined reference
At 2011-05-24 00:10:19,"张文杰" <[email protected]> wrote:
The error log is blow:
| make[2]: Entering directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12/misc' |COMPILE_ET prof_err.et |CC mke2fs.c |CC util.c |CC ../e2fsck/profile.c |CC prof_err.c |PROFILE_TO_C mke2fs.conf |CC default_profile.c |LD mke2fs |CC badblocks.c |LD badblocks |CC tune2fs.c |LD tune2fs |CC dumpe2fs.c |LD dumpe2fs |CC blkid.c |LD blkid | ../lib/libext2fs.so: undefined reference to `sem_init' | ../lib/libext2fs.so: undefined reference to `sem_destroy' | ../lib/libext2fs.so: undefined reference to `sem_post' | ../lib/libext2fs.so: undefined reference to `sem_wait' | collect2: ld returned 1 exit status | make[2]: *** [blkid] Error 1 | make[2]: Leaving directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12/misc' | make[1]: *** [all-progs-recursive] Error 1 | make[1]: Leaving directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12' | make: *** [all] Error 2 | FATAL: oe_runmake failed | ERROR: Function 'do_compile' failed (see /sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/temp/log.do_compile.10589 for further information)
NOTE: package e2fsprogs-1.41.12-r20: task do_compile: Failed
ERROR: Task 8 (/sdb1/yocto/poky-bernard-5.0/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.41.12.bb, do_compile) failed with exit code '1' Waiting for 1 active tasks to finish:
0: ncurses-5.7-r1 do_package (pid 31748)
And in its Makefile of DIR misc it has
#
# Library definitions
#
LIB = $(top_builddir)/lib
LIBSS = $(LIB)/libss.so # -ldlLIBCOM_ERR = $(LIB)/libcom_err.so # -lpthread
LIBE2P = $(LIB)/libe2p.so
LIBEXT2FS = $(LIB)/libext2fs.so
LIBUUID = -luuid
LIBBLKID = $(LIB)/libblkid.so # $(LIBUUID)
I think the red lind should append -lpthread, but it not. any suggestion?
Re: bitbake e2fsprogs encounter undefined reference
I can't reproduce the issue on poky's branch master's recent commit (e10c2742bf0cf750a5c14b4e5f4763b86be2ab07) -- e2fsprogs builds fine and I don't see the "undefined reference" issue. Looks you're using bernard branch. Maybe there are some differences between bernard and master??
Thanks,
-- Dexuan
________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of 张文杰
Sent: 2011年5月24日 0:20
To: [email protected]
Subject: [yocto] bitbake e2fsprogs encounter undefined reference
At 2011-05-24 00:10:19,"张文杰" <[email protected]> wrote:
The error log is blow:
| make[2]: Entering directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12/misc' | COMPILE_ET prof_err.et | CC mke2fs.c | CC util.c | CC ../e2fsck/profile.c | CC prof_err.c | PROFILE_TO_C mke2fs.conf | CC default_profile.c | LD mke2fs | CC badblocks.c | LD badblocks | CC tune2fs.c | LD tune2fs | CC dumpe2fs.c | LD dumpe2fs | CC blkid.c | LD blkid | ../lib/libext2fs.so: undefined reference to `sem_init' | ../lib/libext2fs.so: undefined reference to `sem_destroy' | ../lib/libext2fs.so: undefined reference to `sem_post' | ../lib/libext2fs.so: undefined reference to `sem_wait' | collect2: ld returned 1 exit status | make[2]: *** [blkid] Error 1 | make[2]: Leaving directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12/misc' | make[1]: *** [all-progs-recursive] Error 1 | make[1]: Leaving directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12' | make: *** [all] Error 2 | FATAL: oe_runmake failed | ERROR: Function 'do_compile' failed (see /sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/temp/log.do_compile.10589 for further information)
NOTE: package e2fsprogs-1.41.12-r20: task do_compile: Failed
ERROR: Task 8 (/sdb1/yocto/poky-bernard-5.0/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.41.12.bb, do_compile) failed with exit code '1' Waiting for 1 active tasks to finish:
0: ncurses-5.7-r1 do_package (pid 31748)
And in its Makefile of DIR misc it has
#
# Library definitions
#
LIB = $(top_builddir)/lib
LIBSS = $(LIB)/libss.so # -ldlLIBCOM_ERR = $(LIB)/libcom_err.so # -lpthread
LIBE2P = $(LIB)/libe2p.so
LIBEXT2FS = $(LIB)/libext2fs.so
LIBUUID = -luuid
LIBBLKID = $(LIB)/libblkid.so # $(LIBUUID)
I think the red lind should append -lpthread, but it not. any suggestion?