LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 4820 - [2.6] make clean removes llvm-config before it's done using it
Summary: [2.6] make clean removes llvm-config before it's done using it
Status: RESOLVED FIXED
Alias: None
Product: Build scripts
Classification: Unclassified
Component: Makefiles (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks: 4886
  Show dependency tree
 
Reported: 2009-08-28 17:32 PDT by Nick Lewycky
Modified: 2009-09-12 17:53 PDT (History)
4 users (show)

See Also:
Fixed By Commit(s):


Attachments
full transcript (35.21 KB, text/plain)
2009-08-28 17:32 PDT, Nick Lewycky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Lewycky 2009-08-28 17:32:01 PDT
Created attachment 3387 [details]
full transcript

Steps:
  1. From clean, build LLVM 2.6.
  2. Run "make clean".

I get output like this:

make[1]: Entering directory `/usr/local/google/home/nlewycky/2.6/llvm-2.6/bindings'
make[2]: Entering directory `/usr/local/google/home/nlewycky/2.6/llvm-2.6/bindings/ocaml'
make[3]: /usr/local/google/home/nlewycky/2.6/llvm-2.6/Release/bin/llvm-config: Command not found
make[3]: Entering directory `/usr/local/google/home/nlewycky/2.6/llvm-2.6/bindings/ocaml/llvm'
make[3]: /usr/local/google/home/nlewycky/2.6/llvm-2.6/Release/bin/llvm-config: Command not found
make[3]: /usr/local/google/home/nlewycky/2.6/llvm-2.6/Release/bin/llvm-config: Command not found
[...]

partway through the build. To help clarify the order of operations, I've attached the full transcript of the make clean run.
Comment 1 Bram Adams 2009-09-09 22:30:24 PDT
Hi,

I tried reproducing this bug on http://llvm.org/prereleases/2.6/ (Ubuntu 8.04.3 LTS) with the following configuration command:

../llvm-2.6/configure --prefix=`pwd`/../install --with-llvmgccdir=`pwd`/../llvm-gcc-4.2-2.6.x86_64-linux/ --enable-optimized --enable-targets=host-only --with-ocaml-libdir=`pwd`/../bindings

However, I don't encounter this bug. Can you post your exact LLVM configuration?

Thanks,

Bram Adams
SAIL, Queen's University (Canada)
Comment 2 Bob Wilson 2009-09-11 12:36:51 PDT
This looks like it occurs in the bindings/ocaml makefiles.  You probably won't see it if you don't have ocaml installed.  I think I can fix this pretty easily.
Comment 3 Bob Wilson 2009-09-11 13:42:36 PDT
Fixed in svn r81547.
Comment 4 Tanya Lattner 2009-09-12 17:53:14 PDT
Thanks Bob! This has been merged into 2.6.