From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/783 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Cross compiling for VIA C3? Date: Wed, 27 Apr 2005 23:42:41 -0400 (EDT) Message-ID: References: <24005664.1100907847552.JavaMail.yoppo@jippii.fi> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1114659463 8660 80.91.229.2 (28 Apr 2005 03:37:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2005 03:37:43 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1019-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Apr 28 05:37:39 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1DQzpy-00018m-Vz for gcsg-supervision@gmane.org; Thu, 28 Apr 2005 05:37:15 +0200 Original-Received: (qmail 10241 invoked by uid 76); 28 Apr 2005 03:43:06 -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 10235 invoked from network); 28 Apr 2005 03:43:05 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com Original-To: yoppo@jippii.fi In-Reply-To: <24005664.1100907847552.JavaMail.yoppo@jippii.fi> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:783 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:783 On Sat, 20 Nov 2004 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? You're not really cross compiling in the classical sense when compiling on an athlon for a via c3 target. They're both 100% i386 compatible, as I understand it. Certainly the types of compile/link/run tests that the build system does to determine available OS features will provide the correct answers, so that part of the cross-compilation puzzle isn't an issue. > 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. I don't think you need to. Just set the compile options correctly to get the right instruction set to be used. What runtime problems do you have when you try to execute the binaries compiled under athlon on the c3? --- Charlie