qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: sparc64 -- cannot get 'Hello World' to run
       [not found] ` <CALtZhhOwsquhcHK0aOEn89tu7DynEMeiDZ=aaropn8Hkiyy+qA@mail.gmail.com>
@ 2023-08-02 21:02   ` Philippe Mathieu-Daudé
  2023-08-03  7:35     ` Michael Tokarev
  0 siblings, 1 reply; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-08-02 21:02 UTC (permalink / raw)
  To: cauldwell.thomas; +Cc: qemu-discuss, QEMU Developers

Hi Frederick,

On 2/8/23 22:36, Frederick Virchanza Gotham wrote:
> On Wed, Aug 2, 2023 at 11:04 AM Frederick Virchanza Gotham wrote:
>>
>> I can't get sparc64 to work at all though. Even I make a simple 'Hello
>> World' program in C using only "puts", if I try to use qemu-user to
>> run it, it crashes.
> 
> 
> You can try the following at the command line in Ubuntu 23.04:
> 
> $ echo -e "#include <stdio.h> \n int main(void) { puts(\"Hello
> World\"); }" > test.cpp
> $ sparc64-linux-gnu-g++ -o test test.cpp -static
> $ qemu-sparc64-static ./test
> Segmentation fault (core dumped)
> $ qemu-sparc-static ./test
> qemu-sparc-static: ./test: Invalid ELF image for this architecture
> $ qemu-sparc32plus-static ./test
> qemu-sparc32plus-static: ./test: Invalid ELF image for this architecture
> 
> Making static executables can be temperamental on a few different
> platforms, and so I tried to make a dynamically linked executable by
> providing ld-linux.so.2 as well as the libc files. Still it crashes.
> 
> Has anyone been able to get use 'qemu' on the binaries produces by the
> cross-compiler 'sparc64-g++' ?

Can you create an issue on https://gitlab.com/qemu-project/qemu/-/issues
and attach the static binary you built, that way we can reproduce your
problem.

Thanks!

Phil.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sparc64 -- cannot get 'Hello World' to run
  2023-08-02 21:02   ` sparc64 -- cannot get 'Hello World' to run Philippe Mathieu-Daudé
@ 2023-08-03  7:35     ` Michael Tokarev
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Tokarev @ 2023-08-03  7:35 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, cauldwell.thomas
  Cc: qemu-discuss, QEMU Developers

03.08.2023 00:02, Philippe Mathieu-Daudé wrote:
> Hi Frederick,
> 
> On 2/8/23 22:36, Frederick Virchanza Gotham wrote:
>> On Wed, Aug 2, 2023 at 11:04 AM Frederick Virchanza Gotham wrote:
>>>
>>> I can't get sparc64 to work at all though. Even I make a simple 'Hello
>>> World' program in C using only "puts", if I try to use qemu-user to
>>> run it, it crashes.
>>
>>
>> You can try the following at the command line in Ubuntu 23.04:

Ubuntu 23.04, - I guess it is qemu 8.0, no?  8.0 has a few issues with
linux-user, some of them were there in 7.2 too.  And some of that has
additional patches (coming from upstream most of the time).

Please note also that there are quite a few fixes has been made to both
qemu 8.0 and 7.2 stable series, including linux-user area.

/mjt


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-03  7:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CALtZhhPmFfMpGoCPtdEMjYES2c3WrwPYq==sj+HbwBLZ8ZYTgw@mail.gmail.com>
     [not found] ` <CALtZhhOwsquhcHK0aOEn89tu7DynEMeiDZ=aaropn8Hkiyy+qA@mail.gmail.com>
2023-08-02 21:02   ` sparc64 -- cannot get 'Hello World' to run Philippe Mathieu-Daudé
2023-08-03  7:35     ` Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).