Subject: cross-compilation troubles
To: <>
From: Taras Glek <taras.judge@shaw.ca>
List: port-hpcmips
Date: 06/29/2005 13:27:11
Taras Glek wrote:

> Hi,
> With the help of this list I have a decent install of netbsd on my 
> mobilepro, but no web browser. I tried compiling software on it, but 
> it's a little slow. Matchbox + all of the dependencies took about 8 
> hours to build. Obviously my next step will be setting NetBSD and a 
> cross compiler on my laptop.
>
> However I did figure out how to compile embedded konqueror on Linux. 
> Here is a screenshot of it running via remote X on my mobilepro: 
> http://glek.net/~taras/konqe.jpg
>
> That page uses a lot of javascript, css and tables and renders 
> perfectly. Konq/e also manages popups and multiple windows very well. 
> Judging from top, RAM usage is livable too. Could a ports pro build a 
> konq/e for hpcmips? At my speed, it will take me a while, but it's a 
> promising browser, so it's worth the effort.
>
> Taras

Hi,
I've been trying to build qt for hpcmips running netbsd 2.0.2. For that 
I setup distccd on an x86 2.0.2 install. I used build.sh to build an 
hpcmips toolchain.

I created appropriate symlinks for gcc, g++, c++ and tried to compile 
qt. The first file qt compiles is rather big uses around 500MB of heap 
and 6minutes to compile on the x86. However gcc seems to produce bad 
asm(errors shown below) for it. So does anyone here have a working mips 
cross-compiler? Mine works via distcc for simple testcases, not for QT. 
Any ideas on how to work around this problem? I'm trying to compile the 
file on mobilepro, but with 1gb of NFS swap, it has been compiling for 
over 12 hours and I doubt it's even halfway done.

Thanks,
Taras


This is the Qt/X11 Open Source Edition.

You are licensed to use this software under the terms of either
the Q Public License (QPL) or the GNU General Public License (GPL).

Type 'Q' to view the Q Public License.
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license?
Creating qmake. Please wait...
c++ -c -o unixmake2.o -Os -I/usr/pkg/include -I/usr/include 
-I/usr/pkg/include/freetype2 -I/usr/X11R6/include -I. -Igenerators 
-Igenerators/unix -Igenerators/win32 -Igenerators/mac 
-I/usr/pkgsrc/x11/qt3-libs/work.mipsel/qt-x11-free-3.3.4/include/qmake 
-I/usr/pkgsrc/x11/qt3-libs/work.mipsel/qt-x11-free-3.3.4/include 
-I/usr/pkgsrc/x11/qt3-libs/work.mipsel/qt-x11-free-3.3.4/include 
-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL 
-DQT_NO_COMPRESS 
-I/usr/pkgsrc/x11/qt3-libs/work.mipsel/qt-x11-free-3.3.4/mkspecs/netbsd-g++ 
-DHAVE_QCONFIG_CPP generators/unix/unixmake2.cpp
/var/tmp//ccBVzA40.s: Assembler messages:
/var/tmp//ccBVzA40.s:134234: Warning: AT used after ".set noat" or macro 
used after ".set nomacro"
/var/tmp//ccBVzA40.s:134234: Warning: AT used after ".set noat" or macro 
used after ".set nomacro"
..lots of these...followed by lots of
/var/tmp//ccBVzA40.s:15655: Error: Branch out of range
/var/tmp//ccBVzA40.s:15662: Error: Branch out of range
/var/tmp//ccBVzA40.s:15666: Error: Branch out of range
/var/tmp//ccBVzA40.s:15778: Error: Branch out of range