Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compilare qemu
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
Karhot87
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2007
Posts: 137
Location: Poggio Murella (GR) ma studio a Roma

PostPosted: Tue Feb 12, 2008 6:05 pm    Post subject: Compilare qemu Reply with quote

Ciao, visto che per compilare qemu è necessario gcc-3.* ed io invece ho la 4 come torno indietro di versione o installo entrambi? Grazie mille
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Tue Feb 12, 2008 6:22 pm    Post subject: Reply with quote

Code:
emerge =sys-devel/gcc-3.4.6-r2
gcc-config -l
avrai qualcosa del genere
Code:
[1] i686-pc-linux-gnu-4.1.2 *
[2] i686-pc-linux-gnu-3.4.6
a quel punto
Code:
gcc-config 2 ; source /etc/profile ; env-update
emerge qemu
e poi rimetti a posto le cose con
Code:
gcc-config 1 ; source /etc/profile ; env-update

_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
Karhot87
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2007
Posts: 137
Location: Poggio Murella (GR) ma studio a Roma

PostPosted: Thu Feb 14, 2008 8:08 am    Post subject: Reply with quote

Grazie djinnZ una volta installato e seleziona gcc3 ecco qua questo errore nel compilare qemu:
Code:

../softmmu_template.h:260: error: this is the insn:
(insn:HI 333 332 334 13 ../softmmu_template.h:290 (parallel [
            (set (reg:DI 0 ax [210])
                (lshiftrt:DI (reg/v:DI 59 [ val ])
                    (subreg:QI (reg:SI 0 ax [209]) 0)))
            (clobber (scratch:SI))
            (clobber (reg:CC 17 flags))
        ]) 309 {lshrdi3_1} (insn_list 332 (nil))
    (expr_list:REG_DEAD (reg:SI 0 ax [209])
        (expr_list:REG_UNUSED (reg:CC 17 flags)
            (expr_list:REG_UNUSED (scratch:SI)
                (nil)))))
../softmmu_template.h:260: confused by earlier errors, bailing out
make[1]: *** [helper.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386/ops_sse.h: In function `op_psrlq_mmx':
/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386/ops_sse.h:213: error: unable to find a register to spill in class `GENERAL_REGS'
/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386/ops_sse.h:213: error: this is the insn:
(insn:HI 36 35 37 3 /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386/ops_sse.h:207 (parallel [
            (set (reg:DI 63 [ <variable>.q ])
                (lshiftrt:DI (reg:DI 63 [ <variable>.q ])
                    (subreg:QI (reg/v:SI 60 [ shift ]) 0)))
            (clobber (scratch:SI))
            (clobber (reg:CC 17 flags))
        ]) 309 {lshrdi3_1} (insn_list 33 (insn_list 35 (nil)))
    (expr_list:REG_DEAD (reg/v:SI 60 [ shift ])
        (expr_list:REG_UNUSED (reg:CC 17 flags)
            (expr_list:REG_UNUSED (scratch:SI)
                (nil)))))
/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386/ops_sse.h:213: confused by earlier errors, bailing out
make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2
 *
 * ERROR: app-emulation/qemu-softmmu-0.9.0-r1 failed.
 * Call stack:
 *                      ebuild.sh, line 1701:  Called dyn_compile
 *                      ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                      ebuild.sh, line   44:  Called src_compile
 *   qemu-softmmu-0.9.0-r1.ebuild, line   99:  Called die
 * The specific snippet of code:
 *      emake || die "make failed"
 *  The die message:
 *   make failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/temp/build.log'.
 *

 * Messages for package app-emulation/qemu-softmmu-0.9.0-r1:

 *
 * ERROR: app-emulation/qemu-softmmu-0.9.0-r1 failed.
 * Call stack:
 *                      ebuild.sh, line 1701:  Called dyn_compile
 *                      ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                      ebuild.sh, line   44:  Called src_compile
 *   qemu-softmmu-0.9.0-r1.ebuild, line   99:  Called die
 * The specific snippet of code:
 *      emake || die "make failed"
 *  The die message:
 *   make failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/temp/build.log'.
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Thu Feb 14, 2008 11:21 am    Post subject: Reply with quote

cercando sul wiki:
http://gentoo-wiki.com/HOWTO:_Qemu#Build_with_gcc3
cercando sul forum:
https://forums.gentoo.org/viewtopic-t-633725-highlight-qemu.html
https://forums.gentoo.org/viewtopic-t-637277-highlight-qemu.html

non posso dirti molto altro perchè io ho un sistema hardened ed il gcc 3.x è quello nativo.
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
Karhot87
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2007
Posts: 137
Location: Poggio Murella (GR) ma studio a Roma

PostPosted: Tue Feb 19, 2008 5:43 pm    Post subject: Reply with quote

Allora ho provato a seguire questa guida:

http://gentoo-wiki.com/HOWTO:_Qemu#Build_with_gcc3

premetto che la mia conoscenza dell'inglese è limitata :lol: cmq ho fatto questo:
Lanciando

Code:
equery list --installed --exact-name 'sys-devel/gcc'


mi ritorna che sono installati entrambi i compilatori ossia :

Code:

[I--] [ -] sys-devel/gcc-3.4.6-r2 (3.4)
[I--] [ -] sys-devel/gcc-4.1.2 (4.1)


la lista dei compilatori disponibili è questa:

Code:
# gcc-config -l
 [1] i686-pc-linux-gnu-3.4.6
 [2] i686-pc-linux-gnu-3.4.6-hardened
 [3] i686-pc-linux-gnu-3.4.6-hardenednopie
 [4] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [5] i686-pc-linux-gnu-3.4.6-hardenednossp
 [6] i686-pc-linux-gnu-4.1.2 *


seleeziono il primo con
Code:
# gcc-config  1

 # gcc-config -l
 [1] i686-pc-linux-gnu-3.4.6 *
 [2] i686-pc-linux-gnu-3.4.6-hardened
 [3] i686-pc-linux-gnu-3.4.6-hardenednopie
 [4] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [5] i686-pc-linux-gnu-3.4.6-hardenednossp
 [6] i686-pc-linux-gnu-4.1.2

source /etc/profile
env-update
[/url]


ma il risultato è questo:

Code:
make[1]: *** [helper.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2
 *
 * ERROR: app-emulation/qemu-softmmu-0.9.0-r1 failed.
 * Call stack:
 *                      ebuild.sh, line 1701:  Called dyn_compile
 *                      ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                      ebuild.sh, line   44:  Called src_compile
 *   qemu-softmmu-0.9.0-r1.ebuild, line   99:  Called die
 * The specific snippet of code:
 *      emake || die "make failed"
 *  The die message:
 *   make failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/temp/build.log'.
 *

 * Messages for package app-emulation/qemu-softmmu-0.9.0-r1:

 *
 * ERROR: app-emulation/qemu-softmmu-0.9.0-r1 failed.
 * Call stack:
 *                      ebuild.sh, line 1701:  Called dyn_compile
 *                      ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                      ebuild.sh, line   44:  Called src_compile
 *   qemu-softmmu-0.9.0-r1.ebuild, line   99:  Called die
 * The specific snippet of code:
 *      emake || die "make failed"
 *  The die message:
 *   make failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/temp/build.log'.
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Tue Feb 19, 2008 8:28 pm    Post subject: Reply with quote

guarda qui https://bugs.gentoo.org/show_bug.cgi?id=194681

Code:
emerge -av =sys-devel/gcc-3.3.6-r1
prima però inseriscilo in
Code:
/etc/portage/package.keywords


ciauz
_________________
se fossi un disegnatore ti disegnerei, se fossi uno scrittore ti scriverei, se fossi un inventore ti inventerei...ma sono solo un trombettista!!!
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Wed Feb 20, 2008 9:46 am    Post subject: Reply with quote

Vado leggermente OT:

@Karhot87: ma DEVI per forza utilizzare qemu, o sei alla ricerca di un software di virtualizzazione senza tanti fronzoli? Se è la seconda ipotesi, hai mai provato ad utilizzare app-emulation/virtualbox(-bin)?
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Wed Feb 20, 2008 9:50 am    Post subject: Reply with quote

Scen wrote:
Vado leggermente OT:

@Karhot87: ma DEVI per forza utilizzare qemu, o sei alla ricerca di un software di virtualizzazione senza tanti fronzoli? Se è la seconda ipotesi, hai mai provato ad utilizzare app-emulation/virtualbox(-bin)?


@Scen
[OT]
ma virtualbox è compilato solo per x86 ovvero se uno usa una livecd ottimizzata per i686 non girerà mai con virtualbox, o esiste un metodo per dirgli che modello di architettura usare????

[/OT]
ciauz
_________________
se fossi un disegnatore ti disegnerei, se fossi uno scrittore ti scriverei, se fossi un inventore ti inventerei...ma sono solo un trombettista!!!
Back to top
View user's profile Send private message
Karhot87
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2007
Posts: 137
Location: Poggio Murella (GR) ma studio a Roma

PostPosted: Wed Feb 20, 2008 5:28 pm    Post subject: Reply with quote

crisandbea wrote:
guarda qui https://bugs.gentoo.org/show_bug.cgi?id=194681

Code:
emerge -av =sys-devel/gcc-3.3.6-r1
prima però inseriscilo in
Code:
/etc/portage/package.keywords




da sempre errore.

Quello che volevo fare io era emulare windows Xp per vedere come andava, e se l'esito era positvo togliere il dual boot nel mio pc e tenere winzz emulato quando mi serviva :lol:
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Wed Feb 20, 2008 5:40 pm    Post subject: Reply with quote

Karhot87 wrote:
crisandbea wrote:
guarda qui https://bugs.gentoo.org/show_bug.cgi?id=194681

Code:
emerge -av =sys-devel/gcc-3.3.6-r1
prima però inseriscilo in
Code:
/etc/portage/package.keywords




da sempre errore.

Quello che volevo fare io era emulare windows Xp per vedere come andava, e se l'esito era positvo togliere il dual boot nel mio pc e tenere winzz emulato quando mi serviva :lol:


una volta emerso quella versione di gcc-3.3.6-r1 , ed ovviamente aver tolto la 3.4, devi dire al sistema di usare quel compilatore, poi emergi qemu.
e vedi che l'errore non deve dartelo, l'ho appena emerso io facendo cosi, è non da problemi.

comunque per fare quello che vuoi tu fai prima ad usare virtualbox.

ciao
_________________
se fossi un disegnatore ti disegnerei, se fossi uno scrittore ti scriverei, se fossi un inventore ti inventerei...ma sono solo un trombettista!!!
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Wed Feb 20, 2008 6:31 pm    Post subject: Reply with quote

Non devi togliere la 3.4 ma usare la 3.4 per compilare la 3.3. Alle volte funziona. Nei link c'era una patch specifica tra l'altro.
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
Karhot87
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2007
Posts: 137
Location: Poggio Murella (GR) ma studio a Roma

PostPosted: Thu Feb 21, 2008 11:32 am    Post subject: Reply with quote

Sto provando virtualbox e devo dire che è stato molto semplice installarlo :lol: L'accelerazione 3d non c'è vero? Cmq ho provato a compilare gcc3.3 con il gcc 3.4 ma da errore(sempre lo stesso)
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Thu Feb 21, 2008 11:50 am    Post subject: Reply with quote

Karhot87 wrote:
Sto provando virtualbox e devo dire che è stato molto semplice installarlo :lol: L'accelerazione 3d non c'è vero? Cmq ho provato a compilare gcc3.3 con il gcc 3.4 ma da errore(sempre lo stesso)

per me hai cappellato qualcosa ... :wink: , comunque se virtualbox fa ciò che chiedevi va molto meglio di qemu.
ciauz
_________________
se fossi un disegnatore ti disegnerei, se fossi uno scrittore ti scriverei, se fossi un inventore ti inventerei...ma sono solo un trombettista!!!
Back to top
View user's profile Send private message
Karhot87
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2007
Posts: 137
Location: Poggio Murella (GR) ma studio a Roma

PostPosted: Thu Feb 21, 2008 12:05 pm    Post subject: Reply with quote

Ovviamente ho sbagliato qualcosa quello non lo metto in dubbio adesso faccio prove con virtualbox
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Thu Feb 21, 2008 12:20 pm    Post subject: Reply with quote

prova ad aggiungere (solo per compilare qemu, mi raccomando) -fnopie (o come diavolo si fa per disabilitare pie ed ssp) alle cflags.
In realtà la cosa che mi torna strana è che hai le impostazioni gcc per la hardened mentre pare che la tua è la gentoo normale.
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Thu Feb 21, 2008 12:41 pm    Post subject: Reply with quote

djinnZ wrote:
prova ad aggiungere (solo per compilare qemu, mi raccomando) -fnopie (o come diavolo si fa per disabilitare pie ed ssp) alle cflags.
In realtà la cosa che mi torna strana è che hai le impostazioni gcc per la hardened mentre pare che la tua è la gentoo normale.


le impostazioni gentoo per hardened le ha perchè ha installato precedentemente la versione di gcc-3.4.6-r2, che non sò per quale motivo inseriva anche quella configurazione, diversamente se togli il 3.4.6-r2, e metti la 3.3 non hai quel problema e qemu compila.

ciauz
_________________
se fossi un disegnatore ti disegnerei, se fossi uno scrittore ti scriverei, se fossi un inventore ti inventerei...ma sono solo un trombettista!!!
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Thu Feb 21, 2008 1:53 pm    Post subject: Reply with quote

la 3.3 (anzi non dovrebbe funzionare proprio) è problematica su sistemi 4.1 nativi però. E visto che la ho tolta da poco tempo sono sicuro che prevedeva le stesse opzioni della 3.4 per hardened e sulla gentoo "normale" non dovrebbero esserci.
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
crisandbea
Veteran
Veteran


Joined: 03 Jul 2005
Posts: 1778
Location: BOSCO (SA) ... ma domiciliato a Bologna....

PostPosted: Thu Feb 21, 2008 2:00 pm    Post subject: Reply with quote

djinnZ wrote:
la 3.3 (anzi non dovrebbe funzionare proprio) è problematica su sistemi 4.1 nativi però. E visto che la ho tolta da poco tempo sono sicuro che prevedeva le stesse opzioni della 3.4 per hardened e sulla gentoo "normale" non dovrebbero esserci.

purtroppo invece è cosi, ho testato ed anche io se installo la 3.4 mi da i profili per hardned, viceversa se uso la 3.3 ho solo quel profilo come dovrebbe.

ciauz
_________________
se fossi un disegnatore ti disegnerei, se fossi uno scrittore ti scriverei, se fossi un inventore ti inventerei...ma sono solo un trombettista!!!
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