I changed my mozconfig to:

mk_add_options MOZ_CO_PROJECT=browser
CROSS_COMPILE=1 
LIBIDL_CONFIG=/home/IPTV/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/bin/libIDL-config-2
 
HOST_LIBIDL_CONFIG=/usr/bin/libIDL-config-2 

ac_add_options --host=mipsel-linux
ac_add_options --build=i386-linux
ac_add_options --target=i386-linux
ac_add_options --enable-application=browser
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-pedantic
ac_add_options --prefix=$PREFIX
ac_add_options --enable-debug
ac_add_options --without-x
ac_add_options --disable-gtktest
ac_add_options --disable-tests
ac_add_options --enable-pango
ac_add_options --disable-xft
ac_add_options --enable-extensions=default,spatialnavigation
ac_add_options --disable-xinerama
ac_add_options --enable-directfb
ac_add_options --without-system-nspr
ac_add_options --disable-pedantic
ac_add_options --disable-mailnews
ac_add_options --disable-composer
ac_add_options --disable-ldap
ac_add_options --disable-xprint

ac_add_options --disable-accessibility 
ac_add_options --disable-postscript 
ac_add_options --disable-mathml 
ac_add_options --disable-jsd 
ac_add_options --disable-jsloader 
ac_add_options --disable-installer 
ac_add_options --disable-xpfe-components 
ac_add_options --disable-necko-disk-cache 
ac_add_options --disable-plugins 
ac_add_options --disable-dtd-debug 
ac_add_options --disable-logging 
ac_add_options --disable-xpcom-obsolete 
ac_add_options --enable-optimize=-Os 
ac_add_options --disable-strip

then type "make -f client.mk build", messed up with error:

mipsel-linux-gnu-gcc -o os_Linux_x86.o     
-I/home/IPTV/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/include 
-I/home/IPTV/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/lib/glib-2.0/include 
-I/home/IPTV/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/include/glib-2.0 
-I/home/IPTV/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/include/libIDL-2.0 -ansi 
-Wall -pthread -Os -g -fno-inline -fPIC  -UNDEBUG -DDEBUG_root  
-DMOZILLA_CLIENT=1 -DDEBUG=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DXP_UNIX=1 
-D_POSIX_SOURCE=1 -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_LARGEFILE64_SOURCE=1 
-DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Di386=1 -DHAVE_LCHOWN=1 
-DHAVE_STRERROR=1 -D_REENTRANT=1  -DFORCE_PR_LOG -D_PR_PTHREADS 
-UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ 
-I/home/IPTV/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/src/mozilla/dist/include/nspr
 -I../../../../pr/include -I../../../../pr/include/private  -c os_Linux_x86.s
os_Linux_x86.s: Assembler messages:
os_Linux_x86.s:1: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:1: Error: unrecognized opcode `tab-width:4'
os_Linux_x86.s:1: Error: unrecognized opcode `indent-tabs-mode:nil'
os_Linux_x86.s:1: Error: unrecognized opcode `c-basic-offset:2 -*-'
os_Linux_x86.s:2: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:3: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:4: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:4: Error: unrecognized opcode `you may not use this file'
os_Linux_x86.s:5: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:6: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:7: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:8: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:9: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:10: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:11: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:12: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:13: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:14: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:15: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:16: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:17: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:18: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:19: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:20: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:21: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:22: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:23: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:24: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:25: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:26: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:27: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:28: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:29: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:30: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:31: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:32: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:33: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:35: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:36: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:37: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:38: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:39: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:44: Error: unrecognized opcode `movl 4(%esp),%ecx'
os_Linux_x86.s:45: Error: unrecognized opcode `movl $1,%eax'
os_Linux_x86.s:46: Error: unrecognized opcode `lock'
os_Linux_x86.s:47: Error: unrecognized opcode `xaddl %eax,(%ecx)'
os_Linux_x86.s:48: Error: unrecognized opcode `incl %eax'
os_Linux_x86.s:49: Error: unrecognized opcode `ret'
os_Linux_x86.s:51: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:52: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:53: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:54: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:55: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:60: Error: unrecognized opcode `movl 4(%esp),%ecx'
os_Linux_x86.s:61: Error: unrecognized opcode `movl $-1,%eax'
os_Linux_x86.s:62: Error: unrecognized opcode `lock'
os_Linux_x86.s:63: Error: unrecognized opcode `xaddl %eax,(%ecx)'
os_Linux_x86.s:64: Error: unrecognized opcode `decl %eax'
os_Linux_x86.s:65: Error: unrecognized opcode `ret'
os_Linux_x86.s:67: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:68: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:69: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:70: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:71: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:72: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:73: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:74: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:75: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:76: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:77: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:78: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:79: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:80: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:81: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:82: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:83: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:84: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:85: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:90: Error: unrecognized opcode `movl 4(%esp),%ecx'
os_Linux_x86.s:91: Error: unrecognized opcode `movl 8(%esp),%eax'
os_Linux_x86.s:92: Error: unrecognized opcode `lock'
os_Linux_x86.s:93: Error: unrecognized opcode `xchgl %eax,(%ecx)'
os_Linux_x86.s:94: Error: unrecognized opcode `ret'
os_Linux_x86.s:96: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:97: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:98: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:99: Error: junk at end of line, first unrecognized character is 
`/'
os_Linux_x86.s:104: Error: unrecognized opcode `movl 4(%esp),%ecx'
os_Linux_x86.s:105: Error: unrecognized opcode `movl 8(%esp),%eax'
os_Linux_x86.s:106: Error: unrecognized opcode `movl %eax,%edx'
os_Linux_x86.s:107: Error: unrecognized opcode `lock'
os_Linux_x86.s:108: Error: unrecognized opcode `xaddl %eax,(%ecx)'
os_Linux_x86.s:109: Error: unrecognized opcode `addl %edx,%eax'
os_Linux_x86.s:110: Error: unrecognized opcode `ret'
os_Linux_x86.s:112: Error: junk at end of line, first unrecognized character is 
`/'
gmake[7]: *** [os_Linux_x86.o] Error 1
gmake[7]: Leaving directory 
`/home/IPTV/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/src/mozilla/nsprpub/pr/src/md/unix'


 So, to build x86 assembly is not supported by mips cross compiler? 

Any help is appreciated.





thomas liu
2007-05-18



发件人: thomas liu
发送时间: 2007-05-17 19:53:29
收件人: directfb-dev
抄送: 
主题: [directfb-dev] Porting mozilla over GTK-DFB on Mips

Hi,

    Have you been able to port mozilla over GTK-DFB on Mips? 
    I setup gtk1.10.1 and try to compile firefox1.5.03 with DFB patch, faced a 
hell of errors.
    Here is my mozconfig:
###########################################
mk_add_options MOZ_CO_PROJECT=browser
CROSS_COMPILE=1 
LIBIDL_CONFIG=/home/IPTV/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/bin/libIDL-config-2
 
HOST_LIBIDL_CONFIG=/usr/bin/libIDL-config-2 
ac_add_options --enable-application=browser 
ac_add_options --enable-default-toolkit=gtk2 
ac_add_options --disable-pedantic 
ac_add_options --prefix=$PREFIX 
ac_add_options --enable-debug 
ac_add_options --without-x 
ac_add_options --disable-gtktest 
ac_add_options --disable-tests 
ac_add_options --disable-plugins 
ac_add_options --enable-pango 
ac_add_options --disable-xft 
ac_add_options --enable-extensions=default,spatialnavigation 
ac_add_options --disable-xinerama 
ac_add_options --enable-directfb 
ac_add_options --disable-composer
ac_add_options --disable-ldap
ac_add_options --disable-xprint
ac_add_options 
--includedir=/home/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/include
ac_add_options --without-system-nspr
ac_add_options --without-system-jpeg
ac_add_options 
--with-system-zlib=/home/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/lib 
ac_add_options 
--with-system-png=/home/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/lib 
ac_add_options --enable-debug=-g 
ac_add_options --enable-logging 
ac_add_options --build=i386-linux
ac_add_options --host=mipsel-linux
ac_add_options --target=mipsel-linux
ac_add_options --disable-accessibility 
ac_add_options --disable-postscript 
ac_add_options --disable-mathml 
ac_add_options --disable-jsd 
ac_add_options --disable-jsloader 
ac_add_options --disable-installer 
ac_add_options --disable-xpfe-components 
ac_add_options --disable-necko-disk-cache 
ac_add_options --enable-necko-small-buffers 
ac_add_options --disable-dtd-debug 
ac_add_options --enable-necko-protocols=http,file,res 
ac_add_options --disable-xpcom-obsolete 
ac_add_options --enable-optimize=-Os 
ac_add_options --disable-strip 
ac_add_options --enable-plaintext-editor-only
ac_add_options --libdir=$PREFIX/lib
ac_add_options --includedir=$PREFIX/include
ac_add_options --with-ft-prefix=$PREFIX
ac_add_options --disable-freetypetest
ac_add_options --without-java
ac_add_options --disable-xpfe-components
ac_add_options --disable-xpinstall
ac_add_options --disable-javaxpcom
ac_add_options --disable-updater
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --with-libIDL-prefix=$PREFIX
ac_add_options --disable-libIDLtest
ac_add_options --with-glib-prefix=$PREFIX
ac_add_options --disable-glibtest
ac_add_options --enable-system-cairo 
###########################################
 and my configuration is like this: ./configure  --host=mipsel-linux 
--build=i386-linux

I got errors like "FILE IN WRONG FORMAT " or "can't excute binary file" as they 
are from Cross-Compilation.
I tried to compile them with gcc to make it build further but bringed more new 
problem, so I'm wondering if I got configure errors.
Please help me!




thomas liu
2007-05-18
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to