All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10
@ 2014-02-21 20:48 Jobin Raju George
  2014-02-21 21:41 ` Jobin Raju George
  0 siblings, 1 reply; 7+ messages in thread
From: Jobin Raju George @ 2014-02-21 20:48 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]

I am trying to compile qemu from source to get my hands dirty with its
development. I cloned the package from the
repository<http://git.qemu-project.org/?p=qemu.git;a=snapshot;h=refs/heads/master;sf=tgz>.
I extracted the tarball and started with the configuration using

./configure

when I got the following error:

ERROR: DTC (libfdt) not present. Your options:
         (1) Preferred: Install the DTC (libfdt) devel package
         (2) Fetch the DTC submodule, using:
             git submodule update --init dtc

I tried installing libfdt using sudo apt-get install libfdt-dev but this
did not resolve the error.

There is a similar question I have seen but this too could not solve the
error I am facing:

   - "ERROR: zlib check failed" while compiling
Qemu<http://askubuntu.com/questions/335875/error-zlib-check-failed-while-compiling-qemu>



-- 

Thanks and regards,

Jobin Raju George

Final Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10.it@coep.ac.in

[-- Attachment #2: Type: text/html, Size: 2678 bytes --]

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

* Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10
  2014-02-21 20:48 [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10 Jobin Raju George
@ 2014-02-21 21:41 ` Jobin Raju George
  2014-02-24 12:24   ` Peter Maydell
  0 siblings, 1 reply; 7+ messages in thread
From: Jobin Raju George @ 2014-02-21 21:41 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1851 bytes --]

To fix this issue:

   -

   I cloned dtc from its
repository<http://git.qemu-project.org/?p=dtc.git;a=snapshot;h=1760e7ca03894689118646e229ca9487158cd0e8;sf=tgz>and
extracted the tarball to
   qemu/dtc/.
   -

   Compiled dtc from source first using make
   -

   Restarted configuring qemu.

The problem was qemu tries to search for dtc binaries in qemu/dtc. Even if
you have installed dtc using sudo apt-get install device-tree-compiler, you
will get the above error(mentioned in the question), so you probably need
to have the binaries in qemu/dtc.


On Sat, Feb 22, 2014 at 2:18 AM, Jobin Raju George <jobin.rv@gmail.com>wrote:

> I am trying to compile qemu from source to get my hands dirty with its
> development. I cloned the package from the repository<http://git.qemu-project.org/?p=qemu.git;a=snapshot;h=refs/heads/master;sf=tgz>.
> I extracted the tarball and started with the configuration using
>
> ./configure
>
> when I got the following error:
>
> ERROR: DTC (libfdt) not present. Your options:
>          (1) Preferred: Install the DTC (libfdt) devel package
>          (2) Fetch the DTC submodule, using:
>              git submodule update --init dtc
>
> I tried installing libfdt using sudo apt-get install libfdt-dev but this
> did not resolve the error.
>
> There is a similar question I have seen but this too could not solve the
> error I am facing:
>
>    - "ERROR: zlib check failed" while compiling Qemu<http://askubuntu.com/questions/335875/error-zlib-check-failed-while-compiling-qemu>
>
>
>
> --
>
> Thanks and regards,
>
> Jobin Raju George
>
> Final Year, Information Technology
>
> College of Engineering Pune
>
> Alternate e-mail: georgejr10.it@coep.ac.in
>
>


-- 

Thanks and regards,

Jobin Raju George

Final Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10.it@coep.ac.in

[-- Attachment #2: Type: text/html, Size: 5650 bytes --]

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

* Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10
  2014-02-21 21:41 ` Jobin Raju George
@ 2014-02-24 12:24   ` Peter Maydell
  2014-02-25  4:15     ` Jobin Raju George
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Maydell @ 2014-02-24 12:24 UTC (permalink / raw)
  To: Jobin Raju George; +Cc: QEMU Developers

On 21 February 2014 21:41, Jobin Raju George <jobin.rv@gmail.com> wrote:
> To fix this issue:
>
> I cloned dtc from its repository and extracted the tarball to qemu/dtc/.

Why not just do the git submodule command that the error message
from configure suggests? You don't need to manually stick the tarball
into the qemu tree like this.

> The problem was qemu tries to search for dtc binaries in qemu/dtc. Even if
> you have installed dtc using sudo apt-get install device-tree-compiler, you
> will get the above error(mentioned in the question), so you probably need to
> have the binaries in qemu/dtc

(1) You need the development libraries and headers, which for
Ubuntu are in "libfdt-dev", not "device-tree-compiler".
(2) If the system libfdt isn't sufficiently new/correctly built
we won't use it (in particular it has to provide /usr/include/libfdt_env.h)

thanks
-- PMM

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

* Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10
  2014-02-24 12:24   ` Peter Maydell
@ 2014-02-25  4:15     ` Jobin Raju George
  2014-02-25  9:12       ` Peter Maydell
  0 siblings, 1 reply; 7+ messages in thread
From: Jobin Raju George @ 2014-02-25  4:15 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 1617 bytes --]

On Mon, Feb 24, 2014 at 5:54 PM, Peter Maydell <peter.maydell@linaro.org>wrote:

> On 21 February 2014 21:41, Jobin Raju George <jobin.rv@gmail.com> wrote:
> > To fix this issue:
> >
> > I cloned dtc from its repository and extracted the tarball to qemu/dtc/.
>
> Why not just do the git submodule command that the error message
> from configure suggests? You don't need to manually stick the tarball
> into the qemu tree like this.
>
> When I did just that, it said it was not a git repository and returned
this error:

fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

So, the easiest way out, I believe was to clone it from its repositories.
Please let me
know the drawbacks of doing this.


> > The problem was qemu tries to search for dtc binaries in qemu/dtc. Even
> if
> > you have installed dtc using sudo apt-get install device-tree-compiler,
> you
> > will get the above error(mentioned in the question), so you probably
> need to
> > have the binaries in qemu/dtc
>
> (1) You need the development libraries and headers, which for
> Ubuntu are in "libfdt-dev", not "device-tree-compiler".
> (2) If the system libfdt isn't sufficiently new/correctly built
> we won't use it (in particular it has to provide /usr/include/libfdt_env.h)
>

I had installed libfdt-dev using apt-get but even that did not work, it
returned the same error.


>
> thanks
> -- PMM
>



-- 

Thanks and regards,

Jobin Raju George

Final Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10.it@coep.ac.in

[-- Attachment #2: Type: text/html, Size: 3948 bytes --]

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

* Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10
  2014-02-25  4:15     ` Jobin Raju George
@ 2014-02-25  9:12       ` Peter Maydell
  2014-02-25  9:19         ` Jobin Raju George
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Maydell @ 2014-02-25  9:12 UTC (permalink / raw)
  To: Jobin Raju George; +Cc: QEMU Developers

On 25 February 2014 04:15, Jobin Raju George <jobin.rv@gmail.com> wrote:
> On Mon, Feb 24, 2014 at 5:54 PM, Peter Maydell <peter.maydell@linaro.org>
> wrote:
>> Why not just do the git submodule command that the error message
>> from configure suggests? You don't need to manually stick the tarball
>> into the qemu tree like this.
>>
> When I did just that, it said it was not a git repository and returned this
> error:
>
> fatal: Not a git repository (or any parent up to mount point /home)
> Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

This looks like you didn't get qemu by cloning it from git (maybe you got
a tarball?). That's fine but it's not what you said you did...

Anyway, what you've done will work, it's just not something we expect
people to have to do.

thanks
-- PMM

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

* Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10
  2014-02-25  9:12       ` Peter Maydell
@ 2014-02-25  9:19         ` Jobin Raju George
  2014-02-25  9:27           ` Peter Maydell
  0 siblings, 1 reply; 7+ messages in thread
From: Jobin Raju George @ 2014-02-25  9:19 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

On Tue, Feb 25, 2014 at 2:42 PM, Peter Maydell <peter.maydell@linaro.org>wrote:

> On 25 February 2014 04:15, Jobin Raju George <jobin.rv@gmail.com> wrote:
> > On Mon, Feb 24, 2014 at 5:54 PM, Peter Maydell <peter.maydell@linaro.org
> >
> > wrote:
> >> Why not just do the git submodule command that the error message
> >> from configure suggests? You don't need to manually stick the tarball
> >> into the qemu tree like this.
> >>
> > When I did just that, it said it was not a git repository and returned
> this
> > error:
> >
> > fatal: Not a git repository (or any parent up to mount point /home)
> > Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not
> set).
>
> This looks like you didn't get qemu by cloning it from git (maybe you got
> a tarball?). That's fine but it's not what you said you did...
>
>
Exactly! But is there a difference if I snapshot it and clone it from the
repo?
I took a snapshot.


> Anyway, what you've done will work, it's just not something we expect
> people to have to do.
>
> thanks
> -- PMM
>



-- 

Thanks and regards,

Jobin Raju George

Final Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10.it@coep.ac.in

[-- Attachment #2: Type: text/html, Size: 3517 bytes --]

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

* Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10
  2014-02-25  9:19         ` Jobin Raju George
@ 2014-02-25  9:27           ` Peter Maydell
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Maydell @ 2014-02-25  9:27 UTC (permalink / raw)
  To: Jobin Raju George; +Cc: QEMU Developers

On 25 February 2014 09:19, Jobin Raju George <jobin.rv@gmail.com> wrote:
> On Tue, Feb 25, 2014 at 2:42 PM, Peter Maydell <peter.maydell@linaro.org>
> wrote:
>> This looks like you didn't get qemu by cloning it from git (maybe you got
>> a tarball?). That's fine but it's not what you said you did...
>>
>
> Exactly! But is there a difference if I snapshot it and clone it from the
> repo?
> I took a snapshot.

If you take a snapshot then the git submodule commands won't work.
Generally we expect people will mostly either (a) take a release tarball,
which has the submodule sources included or (b) clone from git,
in which case the advice in the error message will work.

Anyway, you've got to a working compile now, but that's why you
ran into the problems you did, I think.

thanks
-- PMM

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

end of thread, other threads:[~2014-02-25  9:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-21 20:48 [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10 Jobin Raju George
2014-02-21 21:41 ` Jobin Raju George
2014-02-24 12:24   ` Peter Maydell
2014-02-25  4:15     ` Jobin Raju George
2014-02-25  9:12       ` Peter Maydell
2014-02-25  9:19         ` Jobin Raju George
2014-02-25  9:27           ` Peter Maydell

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.