Skip to contentSkip to conversation

This is an out of tree build but your source tree

Qemu-devel Peter Cheung 5 participants 8 messages May 20, 2013 – May 21, 2013

lore
Share & tools
lore
#0 lore raw

Hi all I have this problem in my Mac
/Users/peter/workspace/qemu_latest>makeMakefile:16: *** This is an out of tree build but your source tree (/Users/peter/workspace/qemu_latest) seems to have been used for an in-tree build. You can fix this by running "make distclean && rm -rf *-linux-user *-softmmu" in your source tree. Stop. even i run "make distclean && rm -rf *-linux-user *-softmmu", it doesn't help.
thanksfrom Peter

#1 lore raw
Quoted 8 lines · Peter Cheung

/Users/peter/workspace/qemu_latest>make
Makefile:16: *** This is an out of tree build but your source tree (/Users/peter/workspace/qemu_latest) seems to have been used for an in-tree build. You can fix this by running "make distclean && rm -rf *-linux-user *-softmmu" in your source tree. Stop.

even i run "make distclean && rm -rf *-linux-user *-softmmu", it doesn't help.

Are you trying to do an out-of-tree build? If yes, run the distclean command in the _source tree_ and not in your out-of-tree directory.

If you are not trying to do an out-of-tree build then maybe the Makefile is buggy here on Mac OS X:
ifneq ($(realpath $(SRC_PATH)),$(realpath .))

Please add $(realpath $(SRC_PATH)) and $(realpath .) to the error message. That way you can confirm whether the path matching makes sense.

Stefan

#2 lore raw
Quoted 3 lines · Stefan Hajnoczi

If you are not trying to do an out-of-tree build then maybe the Makefile is buggy here on Mac OS X:
ifneq ($(realpath $(SRC_PATH)),$(realpath .))

manooth$ realpath
-bash: realpath: command not found

...might be why this rune does not work on MacOS X :-)

-- PMM

#3 lore raw
Quoted 7 lines · Peter Maydell
Quoted 3 lines · Stefan Hajnoczi

If you are not trying to do an out-of-tree build then maybe the Makefile is buggy here on Mac OS X:
ifneq ($(realpath $(SRC_PATH)),$(realpath .))

manooth$ realpath
-bash: realpath: command not found

Man, I should stop sending email before I wake up. Ignore this obvious rubbish.

-- PMM

#4 lore raw
In reply to Stefan Hajnoczi

Thanks gentlemen :-)

Quoted 29 lines

Date: Mon, 20 May 2013 08:17:33 +0200
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [Qemu-devel] This is an out of tree build but your source tree

Quoted 8 lines · Peter Cheung

/Users/peter/workspace/qemu_latest>make
Makefile:16: *** This is an out of tree build but your source tree (/Users/peter/workspace/qemu_latest) seems to have been used for an in-tree build. You can fix this by running "make distclean && rm -rf *-linux-user *-softmmu" in your source tree. Stop.

even i run "make distclean && rm -rf *-linux-user *-softmmu", it doesn't help.

Are you trying to do an out-of-tree build? If yes, run the distclean command in the _source tree_ and not in your out-of-tree directory.

If you are not trying to do an out-of-tree build then maybe the Makefile is buggy here on Mac OS X:
ifneq ($(realpath $(SRC_PATH)),$(realpath .))

Please add $(realpath $(SRC_PATH)) and $(realpath .) to the error message. That way you can confirm whether the path matching makes sense.

Stefan

#5 lore raw
In reply to Peter Cheung

Hi,

Am 20.05.2013 04:33, schrieb Peter Cheung:

Quoted 11 lines

Hi all
I have this problem in my Mac

/Users/peter/workspace/qemu_latest>make
Makefile:16: *** This is an out of tree build but your source tree (/Users/peter/workspace/qemu_latest) seems to have been used for an in-tree build. You can fix this by running "make distclean && rm -rf *-linux-user *-softmmu" in your source tree. Stop.

even i run "make distclean && rm -rf *-linux-user *-softmmu", it doesn't help.

If nothing else works, commit all your changes to your source tree and run in the source directory rm -rf * (this should delete all non-hidden files, leaving .git intact) followed by git reset --hard to restore all files from the index.

Regards,
Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#6 lore raw

Hi Andreas, Peter,

Quoted 12 lines · Andreas Färber

Hi,

Am 20.05.2013 04:33, schrieb Peter Cheung:

Quoted 9 lines

Hi all
I have this problem in my Mac

/Users/peter/workspace/qemu_latest>make
Makefile:16: *** This is an out of tree build but your source tree (/Users/peter/workspace/qemu_latest) seems to have been used for an in-tree build. You can fix this by running "make distclean && rm -rf *-linux-user *-softmmu" in your source tree. Stop.

Quoted 8 lines
Quoted 2 lines

even i run "make distclean && rm -rf *-linux-user *-softmmu", it doesn't help.

If nothing else works, commit all your changes to your source tree and run in the source directory rm -rf * (this should delete all non-hidden files, leaving .git intact) followed by git reset --hard to restore all files from the index.

FWIW, I think git clean -dxf has the same net effect, purging all untracked and even gitignored files. Its verbose and its output may shed light on what bogus files are in your tree as well.

Regards,
Peter

Quoted 7 lines

Regards,
Andreas

--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

#7 lore raw
In reply to Andreas Färber

Nice idea, thanks Andreas

Quoted 33 lines

Date: Mon, 20 May 2013 17:59:12 +0200
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [Qemu-devel] This is an out of tree build but your source tree

Hi,

Am 20.05.2013 04:33, schrieb Peter Cheung:

Quoted 11 lines

Hi all
I have this problem in my Mac

/Users/peter/workspace/qemu_latest>make
Makefile:16: *** This is an out of tree build but your source tree (/Users/peter/workspace/qemu_latest) seems to have been used for an in-tree build. You can fix this by running "make distclean && rm -rf *-linux-user *-softmmu" in your source tree. Stop.

even i run "make distclean && rm -rf *-linux-user *-softmmu", it doesn't help.

If nothing else works, commit all your changes to your source tree and run in the source directory rm -rf * (this should delete all non-hidden files, leaving .git intact) followed by git reset --hard to restore all files from the index.

Regards,
Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg