Hi, Openbios !
I try to build a bios sparc32 for qemu.
I use the script "./config/scripts/switch-arch sparc32"
Initializing build tree ok Creating taget config.mak ok Creating taget rules.mak ok Creating config files ok
When I do the "make build-verbose" I get the following error :
"PATH/openbios/arch/sparc32/context.c: In function 'switch_to': "PATH/openbios/arch/sparc32/context.c:116:5: error: PIC register clobbered by 'l7' in 'asm' Asm_volatile_("\n\tcall_switch_context" ^~~ Rules.mak:219 « target/arch/sparc32/context.o » failed Make[1]: *** [target/arch/sparc32/context.o error 1 Makefile:32 target "subdir-sparc32" failed Make: *** [subdir-sparc32] error 2
I was try to build ppc and sparc64, that's ok, I can boot on my ppc's bios (not on sparc64, I think I need to do another thing).
Do you know what I'm doing wrong for sparc 32 ?
Thanks,
Libre (C=0)
Interne (C=1)
Restreint (C=2)
Confidentiel (C=3)
X
[X]
Arnaud BALARD Chargé d'Exploitation et d'Affaires EDF - DPNT - DAIP - UNITEP AEI - Groupe SIMU UFPI Bugey CD 20 - BP 70130 01155 LAGNIEU
arnaud.balard@edf.fr Tél. : 04 37 63 62 72
Un geste simple pour l'environnement, n'imprimez ce message que si vous en avez l'utilité.
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.
Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus. ____________________________________________________
This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.
If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
Hi Arnaud,
On Tue, Feb 26, 2019 at 01:38:49PM +0000, BALARD Arnaud wrote:
When I do the "make build-verbose" I get the following error :
"PATH/openbios/arch/sparc32/context.c: In function 'switch_to': "PATH/openbios/arch/sparc32/context.c:116:5: error: PIC register clobbered by 'l7' in 'asm' Asm_volatile_("\n\tcall_switch_context" ^~~
Either your GCC is too old, or it is too new, or the openbios code is wrong and should not list l7 here, or this is compiled with PIC enabled, while it should not.
Lots of options, sorry :-/ But it's easy to try newer or older GCC versions, that might help you to build openbios at least.
Good luck,
Segher
On 26/02/2019 19:01, Segher Boessenkool wrote:
Hi Arnaud,
On Tue, Feb 26, 2019 at 01:38:49PM +0000, BALARD Arnaud wrote:
When I do the "make build-verbose" I get the following error :
"PATH/openbios/arch/sparc32/context.c: In function 'switch_to': "PATH/openbios/arch/sparc32/context.c:116:5: error: PIC register clobbered by 'l7' in 'asm' Asm_volatile_("\n\tcall_switch_context" ^~~
Either your GCC is too old, or it is too new, or the openbios code is wrong and should not list l7 here, or this is compiled with PIC enabled, while it should not.
Lots of options, sorry :-/ But it's easy to try newer or older GCC versions, that might help you to build openbios at least.
If it helps, the self-compiled cross gcc I use for building openbios-sparc32 looks like this:
$ sparc-elf-gcc -v Using built-in specs. COLLECT_GCC=sparc-elf-gcc COLLECT_LTO_WRAPPER=/home/build/sparc-cross/libexec/gcc/sparc-elf/7.3.0/lto-wrapper Target: sparc-elf Configured with: ../gcc-7.3.0/configure --prefix=/home/build/sparc-cross --target=sparc-elf --disable-libssp --enable-languages=c Thread model: single gcc version 7.3.0 (GCC)
ATB,
Mark.
Hi,
Thanks for reply, i think my computer use sparc64 cross-compiler, that's why i get this error.
I don't find any sparc32 cross-compiler for my debian "stretch", do you use debian, Ubuntu or other OS for build sparc's bios ?
Thanks,
-----Message d'origine----- De : mark.cave-ayland@ilande.co.uk [mailto:mark.cave-ayland@ilande.co.uk] Envoyé : mardi 26 février 2019 21:05 À : Segher Boessenkool segher@kernel.crashing.org; BALARD Arnaud arnaud.balard@edf.fr Cc : openbios@openbios.org Objet : Re: [OpenBIOS] Re: Build sparc32 openbios
On 26/02/2019 19:01, Segher Boessenkool wrote:
Hi Arnaud,
On Tue, Feb 26, 2019 at 01:38:49PM +0000, BALARD Arnaud wrote:
When I do the "make build-verbose" I get the following error :
"PATH/openbios/arch/sparc32/context.c: In function 'switch_to': "PATH/openbios/arch/sparc32/context.c:116:5: error: PIC register clobbered by 'l7' in 'asm' Asm_volatile_("\n\tcall_switch_context" ^~~
Either your GCC is too old, or it is too new, or the openbios code is wrong and should not list l7 here, or this is compiled with PIC enabled, while it should not.
Lots of options, sorry :-/ But it's easy to try newer or older GCC versions, that might help you to build openbios at least.
If it helps, the self-compiled cross gcc I use for building openbios-sparc32 looks like this:
$ sparc-elf-gcc -v Using built-in specs. COLLECT_GCC=sparc-elf-gcc COLLECT_LTO_WRAPPER=/home/build/sparc-cross/libexec/gcc/sparc-elf/7.3.0/lto-wrapper Target: sparc-elf Configured with: ../gcc-7.3.0/configure --prefix=/home/build/sparc-cross --target=sparc-elf --disable-libssp --enable-languages=c Thread model: single gcc version 7.3.0 (GCC)
ATB,
Mark.
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.
Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus. ____________________________________________________
This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.
If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
On 01/03/2019 14:23, BALARD Arnaud wrote:
Hi,
Thanks for reply, i think my computer use sparc64 cross-compiler, that's why i get this error.
I don't find any sparc32 cross-compiler for my debian "stretch", do you use debian, Ubuntu or other OS for build sparc's bios ?
Hi Arnaud,
My base system is Debian Jessie, however I build all my cross-compilers used to produce OpenBIOS binaries from source myself.
ATB,
Mark.