
lavi.kfir at gmail
Jan 4, 2011, 7:57 AM
Post #9 of 14
(1189 views)
Permalink
|
On Mon, Jan 3, 2011 at 11:11 PM, Christoph Spielmann <spielc [at] gmail>wrote: > Hi, > > Am 03.01.2011 16:33, schrieb Kfir Lavi: > > > > On Mon, Jan 3, 2011 at 2:17 PM, Christoph Spielmann <spielc [at] gmail>wrote: > >> Hi, >> >> Am 03.01.2011 10:21, schrieb Kfir Lavi: >> >> >> >> On Sun, Jan 2, 2011 at 9:31 PM, Mike Frysinger <vapier [at] gentoo> wrote: >> >>> On Sunday, January 02, 2011 13:59:43 Peter Stuge wrote: >>> > Kfir Lavi wrote: >>> > > crossdev i686-gentoo.edge-linux-gnu >>> > >>> > .. >>> > >>> > > CBUILD=i686-pc-linux-gnu >>> > >>> > I'm pretty sure you should use i686-pc-linux-gnu as the crossdev >>> > tuple then. I don't think making up arbitrary tuples works. >>> (gentoo.edge) >>> >>> the vendor field is supposed to be arbitrary and the only char that >>> should >>> cause a split is a "-". not that we test every char though, so there >>> might be >>> bugs sitting around that most people dont notice. >>> -mike >>> >> I tried it again running >> crossdev i686-gentoo-linux-gnu >> >> >> Once again, wrong vendor field: It really should be i686-pc-linux-gnu as >> Mike suggested >> >> >> and got the same results. >> >> What can be wrong with my setup? >> >> Thanks, >> Kfir >> >> >> What I did is funny: > CBUILD=i686-pc-linux-gnu > HOSTCC=i686-pc-linux-gnu-gcc > > So it seems I'm using my native compiler?! > And I'm not using my i686-gentoo-linux-gnu-gcc > > Well in terms of crossdev i686-gentoo-linux-gnu-gcc is not a valid target > (just look at the output of crossdev --help). If you want to build x86-code > on a machine using a x86-compiler why would you want to use a > cross-compilation-environment anyway? The idea of using cross-compilation is > to build stuff for another target than the target of the host-compiler... > E.g. build arm-code on a x86-machine or compile stuff for ppc on a > x86-64-machine. > You are right, but what I'm aming for is a very easy deviation from Intel to Arm or other platform. I had my problems that where solved when cross compiling, so those problems are solved for another cross platform compilation. For example, ACE would not compile crossed, so fixing this problem with an ebuild, I'm now prepared for changing platform. I also learning how to use crossdev. As you see, it is a bit problematic for me. Kfir > > Can I see which compiler is really working if I change CBUILD to > i686-gentoo-linux-gnu? > > Thanks, > Kfir > > >
|