Problem when building firefox on Mips



Hi,
 
I'm tring to build Firefox 1.5.0.3 with DFB patch on Mips, over GTK 2.10.1. The gtk-demo is running very well.
Compiling failed either static or shared. 
 
Static: failed at last step ~#$&.......
 
mipsel-linux-gnu-gcc -o firefox-bin  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -Wa,-xgot -pthread -pipe  -DDEBUG -D_DEBUG -DDEBUG_root -DTRACING -g -fno-inline -O  nsBrowserApp.o nsStaticComponents.o   -L/home/IPTV/stb810-SP5/build/rootfs/usr/lib -L/home/IPTV/stb810-SP5/build/rootfs/usr/local/lib          -L../../dist/bin -L../../dist/lib -L../../dist/lib/components  ../../dist/lib/libxulapp_s.a -L../../dist/bin -lmozjs -L../../dist/bin -lxpcom -lxpcom_core  -L../../dist/lib -lplds4 -lplc4 -lnspr4 -L/home/IPTV/stb810-SP5/build/rootfs/usr/lib -L/home/IPTV/stb810-SP5/build/rootfs/usr/local/lib -lpthread -ldl -L/home/IPTV/stb810-SP5/build/rootfs/usr/lib   -lgtk-directfb-2.0 -lgdk-directfb-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpng12 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0      -ldl -lm -lsupc++ ../../dist/lib/components/libxpcom_compat_c.a ../../dist/lib/components/libxpconnect.a ../../dist/lib/components/libuconv.a ../../dist/lib/components/libucvmath.a ../../dist/lib/components/libi18n.a ../../dist/lib/components/libnecko.a ../../dist/lib/components/libnecko2.a ../../dist/lib/components/libpref.a ../../dist/lib/components/libcaps.a ../../dist/lib/components/librdf.a ../../dist/lib/components/libhtmlpars.a ../../dist/lib/components/libgfxps.a ../../dist/lib/components/libgfx_gtk.a ../../dist/lib/components/libimglib2.a ../../dist/lib/components/libgkplugin.a ../../dist/lib/components/libwidget_gtk2.a ../../dist/lib/components/libgklayout.a ../../dist/lib/components/libdocshell.a ../../dist/lib/components/libembedcomponents.a ../../dist/lib/components/libwebbrwsr.a ../../dist/lib/components/libeditor.a ../../dist/lib/components/libtxmgr.a ../../dist/lib/components/libcomposer.a ../../dist/lib/components/libnsappshell.a ../../dist/lib/components/liboji.a ../../dist/lib/components/libaccessibility.a ../../dist/lib/components/libchrome.a ../../dist/lib/components/libmork.a ../../dist/lib/components/libmozfind.a ../../dist/lib/components/libappcomps.a ../../dist/lib/components/libfileview.a ../../dist/lib/components/libcommandlines.a ../../dist/lib/components/libtoolkitcomps.a ../../dist/lib/components/libpipboot.a ../../dist/lib/components/libpipnss.a ../../dist/lib/components/libpippki.a ../../dist/lib/components/libcookie.a ../../dist/lib/components/libxmlextras.a ../../dist/lib/components/libautoconfig.a ../../dist/lib/components/libsystem-pref.a ../../dist/lib/components/libtransformiix.a ../../dist/lib/components/libuniversalchardet.a ../../dist/lib/components/libwebsrvcs.a ../../dist/lib/components/libauth.a ../../dist/lib/components/libpermissions.a ../../dist/lib/components/libsearchservice.a ../../dist/lib/components/libbrowserdirprovider.a ../../dist/lib/components/libbrowsercomps.a ../../dist/lib/libunicharutil_s.a ../../dist/lib/libucvutil_s.a ../../dist/lib/libgfxshared_s.a ../../dist/lib/libgfxpsshar.a ../../dist/lib/libgkgfx.a ../../dist/lib/libjsj.a ../../dist/lib/libxulapp_s.a  -L../../dist/lib -lmozpng -L../../dist/lib -lmozjpeg -L../../dist/lib -lmozz  -L../../dist/bin -L../../dist/lib ../../dist/lib/libcrmf.a -lsmime3 -lssl3 -lnss3 -lsoftokn3     -L../../dist/lib -lxpcom_compat
 
collect2: ld terminated with signal 9 [Killed]
gmake[3]: *** [firefox-bin] Error 1
gmake[3]: Leaving directory `/home/IPTV/stb810-SP5/build/rootfs/usr/src/mozilla/browser/app'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/home/IPTV/stb810-SP5/build/rootfs/usr/src/mozilla/browser'
gmake[1]: *** [tier_99] Error 2
gmake[1]: Leaving directory `/home/IPTV/stb810-SP5/build/rootfs/usr/src/mozilla'
make: *** [default] Error 2
 
Shared:
 
mipsel-linux-gnu-gcc -Wa,-xgot  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -Wa,-xgot -pthread -pipe  -DDEBUG -D_DEBUG -DDEBUG_root -DTRACING -g -fno-inline -Wa,-xgot -O -fPIC -shared -Wl,-h -Wl,libgklayout.so -o libgklayout.so  nsLayoutModule.o nsContentHTTPStartup.o nsContentDLF.o    -L/home/IPTV/stb810-SP5/build/rootfs/usr/lib -L/home/IPTV/stb810-SP5/build/rootfs/usr/local/lib          -Wl,--whole-archive ../../dist/lib/libgkbase_s.a ../../dist/lib/libgkgeneric_s.a ../../dist/lib/libgkforms_s.a ../../dist/lib/libgkstyle_s.a ../../dist/lib/libgkprinting_s.a ../../dist/lib/libgktable_s.a ../../dist/lib/libgkxulbase_s.a ../../dist/lib/libgkconbase_s.a ../../dist/lib/libgkconcvs_s.a ../../dist/lib/libgkconevents_s.a ../../dist/lib/libgkconhtmlcon_s.a ../../dist/lib/libgkconhtmldoc_s.a ../../dist/lib/libgkconxmlcon_s.a ../../dist/lib/libgkconxmldoc_s.a ../../dist/lib/libgkconxbl_s.a ../../dist/lib/libgkconxulcon_s.a ../../dist/lib/libgkconxuldoc_s.a ../../dist/lib/libgkview_s.a ../../dist/lib/libjsdombase_s.a ../../dist/lib/libjsdomevents_s.a ../../dist/lib/libjsurl_s.a  ../../dist/lib/libgkxultree_s.a ../../dist/lib/libgkxulgrid_s.a ../../dist/lib/libgkconxultmpl_s.a  ../../dist/lib/libgkmathmlcon_s.a ../../dist/lib/libgkmathmlbase_s.a  ../../dist/lib/libgkcontentxtf_s.a ../../dist/lib/libgkxtfbase_s.a  -Wl,--no-whole-archive -L../../dist/bin -L../../dist/lib -lgkgfx ../../dist/lib/libunicharutil_s.a -L../../dist/bin -lxpcom -lxpcom_core  -L../../dist/bin -L../../dist/lib -lplds4 -lplc4 -lnspr4 -L/home/IPTV/stb810-SP5/build/rootfs/usr/lib -L/home/IPTV/stb810-SP5/build/rootfs/usr/local/lib -lpthread -ldl -L../../dist/bin -lmozjs  -L/home/IPTV/stb810-SP5/build/rootfs/usr/lib   -lgtk-directfb-2.0 -lgdk-directfb-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpng12 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0     -Wl,-Bsymbolic -ldl -lm -lsupc++

/opt/nxlinux/gcc/gcc-3.3.4-glibc-2.3.2/lib/gcc-lib/mipsel-linux-gnu/3.3.4/../../../../mipsel-linux-
gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
gmake[3]: *** [libgklayout.so] Error 1
gmake[3]: Leaving directory `/home/IPTV/stb810-SP5/build/rootfs/usr/src/mozilla/layout/build'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/home/IPTV/stb810-SP5/build/rootfs/usr/src/mozilla/layout'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/home/IPTV/stb810-SP5/build/rootfs/usr/src/mozilla'
make: *** [default] Error 2
 
My .mozconfig is like this:
**************************************************************
mk_add_options MOZ_CO_PROJECT=browser
CROSS_COMPILE=1
LIBIDL_CONFIG=/home/IPTV/stb810-SP5/build/rootfs/usr/bin/libIDL-config-2
HOST_LIBIDL_CONFIG=/usr/bin/libIDL-config-2
 
ac_add_options --host=i386-linux
ac_add_options --build=i386-linux
ac_add_options --target=mipsel-linux
 
ac_add_options --enable-static
ac_add_options --disable-shared
 
ac_add_options --without-x
ac_add_options --enable-directfb
ac_add_options --enable-application=browser
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-xft
ac_add_options --without-system-nspr
ac_add_options --enable-pango
ac_add_options --disable-xprint
ac_add_options --disable-ldap
ac_add_options --disable-composer
ac_add_options --disable-mailnews
ac_add_options --disable-gtktest
ac_add_options --disable-tests
ac_add_options --enable-debug
ac_add_options --disable-pedantic
ac_add_options --prefix=$PREFIX
ac_add_options --enable-extensions=default,spatialnavigation
ac_add_options --disable-xinerama
 
CC="mipsel-linux-gnu-gcc -Wa,-xgot"
CXX=$CC
**************************************************************
 
Please advise.
Thank you!
 

thomas
2007-06-12


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]