LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1076|回复: 1

請問 !! 對glib作cross compile 時出現的error Q_Q

[复制链接]
发表于 2005-10-28 18:32:40 | 显示全部楼层 |阅读模式
montavista 版本2.4
glib版本...2.4.8 2.6.6 2.8.3 試過這三個版本error message都一樣

下的指令是下面這些......後面的X11R6是cross compile過的x-window,主要是要用它cross compile過的lib

env CC=xscale_be-gcc CXX=xscale_be-g++ LD=xscale_be-ld AS=xscale_be-as RANLIB=xscale_be-ranlib STRIP=xscale_be-strip ./configure --build=armv4b-unknow-linux --prefix=$PREFIX/$TARGET --host=i686-pc-linux --target=armv4b-unknow-linux --cache-file=arm.cache --x-includes=/temp/X11R6/xc/exports/include --x-libraries=/temp/X11R6/xc/exports/lib

arm.cache裡面的內容是自己打的

glib_cv_stack_grows=no
glib_cv_uscore=no
ac_cv_func_posix_getpwuid_r=0
glib_cv_use_pid_surrogate=0


下./configure 沒問題,但是下make時就會有下面的error

error messages:

xscale_be-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -g -O2 -Wall -MT gatomic.lo -MD -MP -MF .deps/gatomic.Tpo -c gatomic.c -fPIC -DPIC -o .libs/gatomic.o
gatomic.c: In function `g_atomic_int_compare_and_exchange':
gatomic.c:59: error: impossible constraint in `asm'
gatomic.c:57: warning: `result' might be used uninitialized in this function
make[3]: *** [gatomic.lo] Error 1
make[3]: Leaving directory `/home/oolong/gtk/glib-2.4.8/glib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/oolong/gtk/glib-2.4.8/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oolong/gtk/glib-2.4.8'
make: *** [all] Error 2

請問有經驗的前輩們可以幫忙解惑嗎Q_Q
 楼主| 发表于 2005-11-15 15:37:22 | 显示全部楼层
可憐的小嫩B 同志們都不理你
但是沒關係,讓有經驗的大嫩B?砀嬖V你

原因是/usr/local/arm-linux/sys-include這個目錄下,沒有和i686有對應的目錄
所以只要改成--host=i386-montavista-linux 就可以過了

[root@red9 sys-include]# ls
acpi          asm-cris      asm-m68knommu    asm-ppc     asm-sparc        COPIED       openssl
arm-linux      asm-generic   asm-microblaze   asm-ppc64  asm-sparc64     CVS          pcmcia
asm           asm-h8300    asm-mips        asm-s390   asm-sparcnommu  errs.config  scsi
asm-alpha   "   asm-i386  "    asm-mips64      asm-s390x  asm-v850        linux        video
asm-arm       asm-ia64     asm-niosnommu   asm-sh     asm-x86_64      math-emu
asm-armnommu  asm-m68k     asm-parisc      asm-sh64   config          net
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表