From: "Raúl Porcel" <armin76@gentoo.org>
To: qemu-devel@nongnu.org
Cc: SH-Linux <linux-sh@vger.kernel.org>
Subject: binfmt_misc fails to work on sh4
Date: Sun, 28 Feb 2010 19:58:01 +0000 [thread overview]
Message-ID: <4B8ACAC9.5040706@gentoo.org> (raw)
Hello everyone,
I've tried qemu suing binfmt_misc for sh4, but doesn't work fine. It
spits some really weird errors.
Here are the steps to reproduce:
> ~ # wget http://mirror.switch.ch/ftp/mirror/gentoo/releases/sh/autobuilds/20090404/stage3-sh4-20090404.tar.bz2
> ~ # mkdir chroot
> ~ # tar xjfp stage3-sh4-20090404.tar.bz2 -C chroot/
> ~ # wget http://www.mpfr.org/mpfr-current/mpfr-2.4.2.tar.gz; mv mpfr-2.4.2.tar.gz chroot/root/
> ~ # echo ':sh4:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/qemu-sh4:' >/proc/sys/fs/binfmt_misc/register
> ~ # wget http://download.savannah.gnu.org/releases/qemu/qemu-0.12.2.tar.gz
> ~ # tar zxvf qemu-0.12.2.tar.gz
> ~ # cd qemu-0.12.2
> ~ # ./configure --target-list=sh4-linux-user --static && make
> ~ # cd..
> ~ # cp qemu-0.12.2/sh4-linux-user/qemu-sh4 /
> ~ # cp qemu-0.12.2/sh4-linux-user/qemu-sh4 chroot/
> ~ # chroot chroot/
>
> / # su -
> ~ # tar zxvf mpfr-2.4.2.tar.gz
> ~ # cd mpfr-2.4.2
> mpfr-2.4.2# ./configure
> (RANDOM ERRORS)
>
> ./configure
> as_echo: eval: line 1: syntax error: unexpected end of file
> /usr/bin/install -c
> as_echo: eval: line 1: syntax error: unexpected end of file
> yes
> as_echo: eval: line 1: syntax error: unexpected end of file
> /bin/mkdir -p
> as_echo: eval: line 1: syntax error: unexpected end of file
> gawk
> as_echo: eval: line 1: syntax error: unexpected end of file
> ./configure: line 3236: ${ac_cv_prog_make_make
> m_set+set}: bad substitution
> no
> as_echo: eval: line 1: syntax error: unexpected end of file
> yes
> as_echo: eval: line 1: syntax error: unexpected end of file
> config.sub: too many arguments
> Try `config.sub --help' for more information.
> configure: error: /bin/sh ./config.sub sh4-unknown-linux-gnu
> s failed
> ---------------------------------
> ./configure
> configure
> c: error: cannot find install-sh, install.sh, or shtool in ".." "../.." "../../.."
>
> --------------------------------------
>
> ./configure
> as_echo: eval: line 1: syntax error: unexpected end of file
> /usr/bin/install -c
> as_echo: eval: line 1: syntax error: unexpected end of file
> configure: error: ls -t appears to fail. Make sure there is not a broken
> alias in your environment
> configure: error: newly created file is older than distributed files!
> Check your system clock
>
>
>
Happens the same with the Debian userspace that you can download from here:
https://oss.renesas.com/modules/download/index.php?cid6
Any hints?
Thanks
WARNING: multiple messages have this Message-ID (diff)
From: "Raúl Porcel" <armin76@gentoo.org>
To: qemu-devel@nongnu.org
Cc: SH-Linux <linux-sh@vger.kernel.org>
Subject: [Qemu-devel] binfmt_misc fails to work on sh4
Date: Sun, 28 Feb 2010 20:58:01 +0100 [thread overview]
Message-ID: <4B8ACAC9.5040706@gentoo.org> (raw)
Hello everyone,
I've tried qemu suing binfmt_misc for sh4, but doesn't work fine. It
spits some really weird errors.
Here are the steps to reproduce:
> ~ # wget http://mirror.switch.ch/ftp/mirror/gentoo/releases/sh/autobuilds/20090404/stage3-sh4-20090404.tar.bz2
> ~ # mkdir chroot
> ~ # tar xjfp stage3-sh4-20090404.tar.bz2 -C chroot/
> ~ # wget http://www.mpfr.org/mpfr-current/mpfr-2.4.2.tar.gz; mv mpfr-2.4.2.tar.gz chroot/root/
> ~ # echo ':sh4:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/qemu-sh4:' >/proc/sys/fs/binfmt_misc/register
> ~ # wget http://download.savannah.gnu.org/releases/qemu/qemu-0.12.2.tar.gz
> ~ # tar zxvf qemu-0.12.2.tar.gz
> ~ # cd qemu-0.12.2
> ~ # ./configure --target-list=sh4-linux-user --static && make
> ~ # cd..
> ~ # cp qemu-0.12.2/sh4-linux-user/qemu-sh4 /
> ~ # cp qemu-0.12.2/sh4-linux-user/qemu-sh4 chroot/
> ~ # chroot chroot/
>
> / # su -
> ~ # tar zxvf mpfr-2.4.2.tar.gz
> ~ # cd mpfr-2.4.2
> mpfr-2.4.2# ./configure
> (RANDOM ERRORS)
>
> ./configure
> as_echo: eval: line 1: syntax error: unexpected end of file
> /usr/bin/install -c
> as_echo: eval: line 1: syntax error: unexpected end of file
> yes
> as_echo: eval: line 1: syntax error: unexpected end of file
> /bin/mkdir -p
> as_echo: eval: line 1: syntax error: unexpected end of file
> gawk
> as_echo: eval: line 1: syntax error: unexpected end of file
> ./configure: line 3236: ${ac_cv_prog_make_make
> m_set+set}: bad substitution
> no
> as_echo: eval: line 1: syntax error: unexpected end of file
> yes
> as_echo: eval: line 1: syntax error: unexpected end of file
> config.sub: too many arguments
> Try `config.sub --help' for more information.
> configure: error: /bin/sh ./config.sub sh4-unknown-linux-gnu
> s failed
> ---------------------------------
> ./configure
> configure
> c: error: cannot find install-sh, install.sh, or shtool in ".." "../.." "../../.."
>
> --------------------------------------
>
> ./configure
> as_echo: eval: line 1: syntax error: unexpected end of file
> /usr/bin/install -c
> as_echo: eval: line 1: syntax error: unexpected end of file
> configure: error: ls -t appears to fail. Make sure there is not a broken
> alias in your environment
> configure: error: newly created file is older than distributed files!
> Check your system clock
>
>
>
Happens the same with the Debian userspace that you can download from here:
https://oss.renesas.com/modules/download/index.php?cid=36
Any hints?
Thanks
next reply other threads:[~2010-02-28 19:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-28 19:58 Raúl Porcel [this message]
2010-02-28 19:58 ` [Qemu-devel] binfmt_misc fails to work on sh4 Raúl Porcel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B8ACAC9.5040706@gentoo.org \
--to=armin76@gentoo.org \
--cc=linux-sh@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.