Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[INFO] Cross-compiling x86->ppc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
maranik
n00b
n00b


Joined: 21 May 2003
Posts: 61
Location: Catania, Italy

PostPosted: Tue Jan 11, 2005 1:02 am    Post subject: [INFO] Cross-compiling x86->ppc Reply with quote

Qualcuno ha avuto a ache fare con l'argomento? Io sto cercando in rete, ma non trovo nulla di molto chiaro (sarà che sono una ciofeca in inglese :?: ) . Mi servirebbe per il progettino di cui parlavo in questo thread:
https://forums.gentoo.org/viewtopic.php?t=277593
Cioe' mi serve poter compilare kernel e cose di base sul mio pentium4 per creare un liveUSB stick ( https://forums.gentoo.org/viewtopic.php?t=57754&highlight=livecdng ) da utilizzare sul mio iBook in modo da non dover toccarne l'hd.

Grazie
_________________
Maranik

Ognuno e' artefice del proprio destino!
Back to top
View user's profile Send private message
maranik
n00b
n00b


Joined: 21 May 2003
Posts: 61
Location: Catania, Italy

PostPosted: Tue Jan 11, 2005 8:47 pm    Post subject: Reply with quote

Nessuno interessato all'argomento? :cry:
_________________
Maranik

Ognuno e' artefice del proprio destino!
Back to top
View user's profile Send private message
FMulder
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2004
Posts: 83
Location: Cagliari, Italy

PostPosted: Wed Jan 12, 2005 7:27 pm    Post subject: Reply with quote

Non ho letto bene il thread indicato, ma se il tuo problema è quello di compilare su una architettura dei pacchetti destinati ad essere usati su un'altra architettura penso che ti basti fare ad esempio:

Code:
CHOST="..." CFLAGS="...." CXXFLAGS="..." emerge PACCHETTO -vOBp


L'opzione -B di emerge dice di compilare il pacchetto in binario senza installarlo sulla macchina che lo sta compilando
L'opzione -O dice invece di compilare soltanto il pacchetto tralasciando tutte le dipendenze che sarebbero invece richieste se lo stessi installando sul pc che compila! Ovviamente dovrai essere tu a gestire le dipendenze necessarie sul mini sistema che vuoi creare... e ricordati anche che tutte le dipendenze richieste dal pacchetto per poter essere compilato DEVONO ovviamente essere presenti sulla macchina che compila, altrimenti otterrai qualche errore durante la compilazione del pacchetto!

Le varie flags adatte a compilare per PPC non le so perché non ci ho mai lavorato, quindi devi dare uno sguardo tu...

guardati
Code:

man make.conf
man gcc


spero di esserti stato utile... sto anche io sperimentando il cross-compile in questi giorni ;-)
_________________
Chi rinuncia ai sogni, è destinato a morire
--> Jim Morrison


Last edited by FMulder on Wed Jan 12, 2005 10:56 pm; edited 2 times in total
Back to top
View user's profile Send private message
Jecko_Hee
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 142
Location: Svizzera/Ticino

PostPosted: Wed Jan 12, 2005 8:41 pm    Post subject: Reply with quote

FMulder wrote:

Le varie flags adatte a compilare per PPC non le so perché non ci ho mai lavorato, quindi devi dare uno sguardo tu...


Se ti serve sul mio ibooooook (pronunciato come gooooooooooogle a mai-dire-gol :D ) ho le seguenti flags:
Code:

CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
 

In piu' ti consiglio la use

Code:

USE="altivec"
 


ciau
_________________
Negli anni 60 una delle tante ragazze di Fonzie, dopo aver fatto "petting", gli disse: "FONZIE, SE NON TI LECCHI LE DITA GODI SOLO A META'!"

EVITIAMO GLI OT - LINEE GUIDA DEL FORUM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum