Subject: [Fwd: cross-compilation troubles]
To: None <tech-pkg@NetBSD.org>
From: Taras Glek <taras.judge@shaw.ca>
List: tech-pkg
Date: 07/08/2005 18:43:02
This is a multi-part message in MIME format.
--------------020008080107010408000905
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,
I posted this to the hpcmips mailing list, but perhaps it's more 
appropriate here. I saw that there is some work on crosscompiling stuff 
in pkgsrc, but so far it's for the playstation and arm. Is there a 
manual way to crosscompile QT for netbsd on hpcmips? Or perhaps the gcc 
error in the attached email is known and there is workaround?

Taras

--------------020008080107010408000905
Content-Type: message/rfc822;
 name="cross-compilation troubles"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="cross-compilation troubles"

	by glek.net (Postfix) with ESMTP id 1F12E485735
	for <taras@localhost>; Wed, 29 Jun 2005 13:51:04 -0700 (PDT)
	by localhost with POP3 (fetchmail-6.2.5)
	for taras@localhost (single-drop); Wed, 29 Jun 2005 13:51:04 -0700 (PDT)
 (pd6mr4no-qfe2.prod.shaw.ca [10.0.144.191]) by l-daemon
 (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003))
 with ESMTP id <0IIV00JEB5WMSM@l-daemon> for taras.judge@shaw.ca; Wed,
 29 Jun 2005 14:50:46 -0600 (MDT)
 by pd6mr4no.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar
 15 2004)) with ESMTP id <0IIV001SJ5WKRAR0@pd6mr4no.prod.shaw.ca> for
 taras.judge@shaw.ca (ORCPT taras.judge@shaw.ca); Wed,
 29 Jun 2005 14:50:46 -0600 (MDT)
 by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004))
 with ESMTP id <0IIV005045WKS900@l-daemon> for taras.judge@shaw.ca; Wed,
 29 Jun 2005 14:50:45 -0600 (MDT)
 29 Jun 2005 20:27:41 +0000 (UTC)
 (shawidc-mo1.cg.shawcable.net [24.71.223.10])	by mail.netbsd.org (Postfix)
 with ESMTP id 4A2ED3A3BB	for <port-hpcmips@NetBSD.org>; Wed,
 29 Jun 2005 20:27:38 +0000 (UTC)
 by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004))
 with ESMTP id <0IIV00F8R4THOLEW@l-daemon> for port-hpcmips@NetBSD.org; Wed,
 29 Jun 2005 14:27:17 -0600 (MDT)
 by pd2mr7so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar
 15 2004)) with ESMTP id <0IIV009K24TGCCH0@pd2mr7so.prod.shaw.ca> for
 port-hpcmips@NetBSD.org; Wed, 29 Jun 2005 14:27:17 -0600 (MDT)
 by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003))
 with ESMTP id <0IIV00H7R4TGT0@l-daemon> for port-hpcmips@NetBSD.org; Wed,
 29 Jun 2005 14:27:16 -0600 (MDT)
	by glek.net (Postfix) with ESMTP id C6C65485735	for <port-hpcmips@NetBSD.org>;
 Wed, 29 Jun 2005 13:27:15 -0700 (PDT)
Date: Wed, 29 Jun 2005 13:27:11 -0700
From: Taras Glek <taras.judge@shaw.ca>
Subject: cross-compilation troubles
In-reply-to: <42BCA94A.2060708@shaw.ca>
Sender: port-hpcmips-owner@NetBSD.org
Cc: port-hpcmips@NetBSD.org
Message-id: <42C3041F.5090203@shaw.ca>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit
Delivered-to: port-hpcmips@NetBSD.org
User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404)
References: <42BCA94A.2060708@shaw.ca>
Original-recipient: rfc822;taras.judge@shaw.ca


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


--------------020008080107010408000905--