From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/630 Path: main.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Cross compiling for VIA C3? Date: Mon, 22 Nov 2004 15:08:28 +0000 Message-ID: <20041122150713.3620.qmail@1ea4ad0a283034.315fe32.mid.smarden.org> References: <24005664.1100907847552.JavaMail.yoppo@jippii.fi> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101136074 30589 80.91.229.6 (22 Nov 2004 15:07:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2004 15:07:54 +0000 (UTC) Original-X-From: supervision-return-869-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Nov 22 16:07:40 2004 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14] ident=qmailr) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1CWFn1-00043w-00 for ; Mon, 22 Nov 2004 16:07:39 +0100 Original-Received: (qmail 31504 invoked by uid 76); 22 Nov 2004 15:07:58 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 31499 invoked from network); 22 Nov 2004 15:07:58 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <24005664.1100907847552.JavaMail.yoppo@jippii.fi> Xref: main.gmane.org gmane.comp.sysutils.supervision.general:630 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:630 On Sat, Nov 20, 2004 at 01:44:07AM +0200, yoppo@jippii.fi wrote: > >> Is it possible to cross-compile runit for VIA C3 system? If yes then how? > >> If I compile it normally on my athlon machine it doesn't work at all in > >> my NAT-machine (VIA). > >afair via c3 lack of cmov, what produce 'some' problems when > >crosscompiling, what optimizations are you using? > The latest try was with -O2 -march=i586 -mcpu=i586 don't know if Iam > missing something, but it seems like it could not be cross compiled just > changing the optimizations. > > Now after studying the compile process it seems like it makes some kind > of testing on compile time but I dont have any clues how to "hack" the > compile process so it would work in the VIA C3. And because I have only Yes, the runit package's build process (just as the daemontools' one) includes some tests to configure system dependencies. This includes three runtime tests where a test program is compiled, linked, and then run. These runtime tests obviously won't work when cross-compiling. More precisely it's the targets hasshsgr.h:, iopause.h:, and uint64.h:, in the Makefile which test setgroups(), poll(), and the size of uint64, to select *.h1 or *.h2 respectively. You can compile and link the test programs, and then run them on the target device to check the exit code and choose the correct header. > 64Mb Usb drive as a "hard drive" on that VIA I can't even test compiling > the runit directly there to see if it works when not cross compiling and > what the compile process does when compiling on that platform. A nfs mount could help. HTH, Gerrit.