|
发表于 2007-12-8 11:57:59
|
显示全部楼层
Post by koolcoy;1792954
这个是错误信息的最后几行, 前面也有一些类似的信息.
/mnt/lfs/build/glibc-build/libc_pic.os: In function `nscd_getgr_r':
/mnt/lfs/build/glibc-2.7/nscd/nscd_getgr_r.c:321: undefined reference to `__sync_fetch_and_add_4'
/mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
/mnt/lfs/build/glibc-2.7/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/mnt/lfs/build/glibc-build/libc_pic.os:/mnt/lfs/build/glibc-2.7/nscd/nscd_gethst_r.c:400: more undefined references to `__sync_fetch_and_add_4' follow
/mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_get_map_ref':
/mnt/lfs/build/glibc-2.7/nscd/nscd_helper.c:404: undefined reference to `__sync_val_compare_and_swap_4'
/mnt/lfs/build/glibc-build/libc_pic.os: In function `*__GI___libc_freeres':
/mnt/lfs/build/glibc-2.7/malloc/set-freeres.c:39: undefined reference to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
make[1]: *** [/mnt/lfs/build/glibc-build/libc.so] Error 1
make[1]: Leaving directory `/mnt/lfs/build/glibc-2.7'
make: *** [all] Error 2
“undefined reference to `__sync_bool_compare_and_swap_4′.”这个错误,你可试试设定march这个参数,不敢保证管用
Core 2 Duo,
GCC 4.2,CFLAGS 添加 -march=nocona -mtune=generic。
i686等类似设置,例如
mkdir -v ../glibc-build
cd ../glibc-build
echo "CFLAGS += -march=i686" > configparms |
|