From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGx17-0003h8-4q for qemu-devel@nongnu.org; Fri, 21 Feb 2014 15:48:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGx15-00079t-9I for qemu-devel@nongnu.org; Fri, 21 Feb 2014 15:48:17 -0500 Received: from mail-oa0-x244.google.com ([2607:f8b0:4003:c02::244]:49852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGx15-00079i-3z for qemu-devel@nongnu.org; Fri, 21 Feb 2014 15:48:15 -0500 Received: by mail-oa0-f68.google.com with SMTP id i7so552766oag.3 for ; Fri, 21 Feb 2014 12:48:14 -0800 (PST) MIME-Version: 1.0 Date: Sat, 22 Feb 2014 02:18:13 +0530 Message-ID: From: Jobin Raju George Content-Type: multipart/alternative; boundary=001a11c2e1909cd20404f2f0bd12 Subject: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --001a11c2e1909cd20404f2f0bd12 Content-Type: text/plain; charset=ISO-8859-1 I am trying to compile qemu from source to get my hands dirty with its development. I cloned the package from the repository. 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 -- Thanks and regards, Jobin Raju George Final Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10.it@coep.ac.in --001a11c2e1909cd20404f2f0bd12 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I am trying to compile qemu from source to get my hands dirty wi= th its development. I cloned the package from the repository. 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:



--

Thanks and regards,

Jobin Raju George

Final Year, Informatio= n Technology

College of Engineering= Pune

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

--001a11c2e1909cd20404f2f0bd12-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGxr8-00070Y-5n for qemu-devel@nongnu.org; Fri, 21 Feb 2014 16:42:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGxr5-0007r2-Ql for qemu-devel@nongnu.org; Fri, 21 Feb 2014 16:42:02 -0500 Received: from mail-oa0-x244.google.com ([2607:f8b0:4003:c02::244]:47347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGxr5-0007qy-JX for qemu-devel@nongnu.org; Fri, 21 Feb 2014 16:41:59 -0500 Received: by mail-oa0-f68.google.com with SMTP id i7so570436oag.7 for ; Fri, 21 Feb 2014 13:41:59 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 22 Feb 2014 03:11:58 +0530 Message-ID: From: Jobin Raju George Content-Type: multipart/alternative; boundary=089e015367ecd31ea204f2f17df4 Subject: Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --089e015367ecd31ea204f2f17df4 Content-Type: text/plain; charset=ISO-8859-1 To fix this issue: - I cloned dtc from its repositoryand 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 wrote: > I am trying to compile qemu from source to get my hands dirty with its > development. I cloned the package from the repository. > 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 > > > > -- > > 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 --089e015367ecd31ea204f2f17df4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

To fix this issue:

  • I cloned dtc from its repository 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<= /code>. Even if you have installed dtc using sudo apt-get install dev= ice-tree-compiler, you will get the above error(mentioned in the que= stion), 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 wi= th its development. I cloned the package from the repository. I extracted the tarball an= d 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:



--

<= /p>

Thanks and regards,

Jobin Raju George

Final Year, Informatio= n 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.a= c.in

--089e015367ecd31ea204f2f17df4-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHuaP-0005Em-Lx for qemu-devel@nongnu.org; Mon, 24 Feb 2014 07:24:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHuaJ-0004Wp-N8 for qemu-devel@nongnu.org; Mon, 24 Feb 2014 07:24:41 -0500 Received: from mail-la0-f41.google.com ([209.85.215.41]:41486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHuaJ-0004Vs-GK for qemu-devel@nongnu.org; Mon, 24 Feb 2014 07:24:35 -0500 Received: by mail-la0-f41.google.com with SMTP id gl10so2574607lab.14 for ; Mon, 24 Feb 2014 04:24:34 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Mon, 24 Feb 2014 12:24:14 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jobin Raju George Cc: QEMU Developers On 21 February 2014 21:41, Jobin Raju George 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WI9QQ-0003Sk-87 for qemu-devel@nongnu.org; Mon, 24 Feb 2014 23:15:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WI9QO-0007Y2-OA for qemu-devel@nongnu.org; Mon, 24 Feb 2014 23:15:22 -0500 Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:53435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WI9QO-0007Xp-FC for qemu-devel@nongnu.org; Mon, 24 Feb 2014 23:15:20 -0500 Received: by mail-ob0-f177.google.com with SMTP id wp18so8131699obc.22 for ; Mon, 24 Feb 2014 20:15:19 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 25 Feb 2014 09:45:19 +0530 Message-ID: From: Jobin Raju George Content-Type: multipart/alternative; boundary=f46d04451a3909259504f33356d4 Subject: Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers --f46d04451a3909259504f33356d4 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Feb 24, 2014 at 5:54 PM, Peter Maydell wrote: > On 21 February 2014 21:41, Jobin Raju George 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 --f46d04451a3909259504f33356d4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Mon, Feb 24, 2014 at 5:54 PM, Peter Maydell &l= t;peter.mayde= ll@linaro.org> wrote:
On 21 Feb= ruary 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 i= t was not a git repository and returned this error:

fatal: Not a git= repository (or any parent up to mount point /home)
Stopping at filesyst= em 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.=
=A0
> The problem was qemu tries to search for dtc binaries in qemu/dtc. Eve= n 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 n= eed 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_en= v.h)

I had installed libfdt-dev using a= pt-get but even that did not work, it
returned the same erro= r.
=A0

thanks
-- PMM



--

Thanks and regards,

Jobin Raju George

Final Year, Informatio= n Technology

College of Engineering= Pune

Alternate e-mail:=A0georgejr10.it@coep.ac.in

--f46d04451a3909259504f33356d4-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIE4Q-00081Q-QY for qemu-devel@nongnu.org; Tue, 25 Feb 2014 04:13:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIE4L-0003KW-TS for qemu-devel@nongnu.org; Tue, 25 Feb 2014 04:12:58 -0500 Received: from mail-lb0-f173.google.com ([209.85.217.173]:50032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIE4L-0003KJ-MG for qemu-devel@nongnu.org; Tue, 25 Feb 2014 04:12:53 -0500 Received: by mail-lb0-f173.google.com with SMTP id p9so188071lbv.18 for ; Tue, 25 Feb 2014 01:12:52 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Tue, 25 Feb 2014 09:12:32 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jobin Raju George Cc: QEMU Developers On 25 February 2014 04:15, Jobin Raju George wrote: > On Mon, Feb 24, 2014 at 5:54 PM, Peter Maydell > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIEB0-0005Y7-P4 for qemu-devel@nongnu.org; Tue, 25 Feb 2014 04:19:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIEAz-00067G-HI for qemu-devel@nongnu.org; Tue, 25 Feb 2014 04:19:46 -0500 Received: from mail-oa0-x22d.google.com ([2607:f8b0:4003:c02::22d]:62897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIEAz-000679-Aj for qemu-devel@nongnu.org; Tue, 25 Feb 2014 04:19:45 -0500 Received: by mail-oa0-f45.google.com with SMTP id i11so112858oag.4 for ; Tue, 25 Feb 2014 01:19:44 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 25 Feb 2014 14:49:44 +0530 Message-ID: From: Jobin Raju George Content-Type: multipart/alternative; boundary=001a1134aa02bdfb7504f33796d7 Subject: Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers --001a1134aa02bdfb7504f33796d7 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Feb 25, 2014 at 2:42 PM, Peter Maydell wrote: > On 25 February 2014 04:15, Jobin Raju George wrote: > > On Mon, Feb 24, 2014 at 5:54 PM, Peter Maydell > > > 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 --001a1134aa02bdfb7504f33796d7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Tue, Feb 25, 2014 at 2:42 PM, Peter Maydell &l= t;peter.mayde= ll@linaro.org> wrote:
On 25 February 2014 04:15, J= obin Raju George <jobin.rv@gmail.c= om> 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 th= at 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 s= et).

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.
=A0
Anyway, what you've done will work, it's just not something we expe= ct
people to have to do.

thanks
-- PMM



--

Thanks and regards,

Jobin Raju George

Final Year, Information Technology

College of Engineering Pune

Alternate e-mail:=A0georgejr10.it@coep.ac.i= n

--001a1134aa02bdfb7504f33796d7-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIEIR-0001iA-Te for qemu-devel@nongnu.org; Tue, 25 Feb 2014 04:27:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIEIM-0000Ex-RY for qemu-devel@nongnu.org; Tue, 25 Feb 2014 04:27:27 -0500 Received: from mail-la0-f49.google.com ([209.85.215.49]:56203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIEIM-0000Et-Gs for qemu-devel@nongnu.org; Tue, 25 Feb 2014 04:27:22 -0500 Received: by mail-la0-f49.google.com with SMTP id mc6so3400183lab.22 for ; Tue, 25 Feb 2014 01:27:21 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Tue, 25 Feb 2014 09:27:01 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Error compiling qemu from source on Ubuntu 12.10 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jobin Raju George Cc: QEMU Developers On 25 February 2014 09:19, Jobin Raju George wrote: > On Tue, Feb 25, 2014 at 2:42 PM, Peter Maydell > 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