Bugzilla – Bug 220
[install] Some header files not installed when src root != obj root
Last modified: 2004-02-10 09:55:02
You need to log in before you can comment on or make changes to this bug.
I tried the new "make install" function from the root of the source tree. While the library files installed correctly, the only header to install was llvm/Config/config.h. I suspect this is a result of my use of separate source and object directories. My configuration: Linux: 2.4.20-28.9smp (RedHat 9.0 with updates) gcc: 3.3.1 autoconf: 2.57 gmake: 3.79.1 configure command: ../llvm/configure \ --prefix=/proj/install \ --with-llvmgccdir=/proj/work/llvm/cfrontend/install output from "make install" will be attached.
Created an attachment (id=71) [details] Output of "make install" Just shows that the only header file installed was Config/config.h (early in the attached file).
install was not implemented in 1.1. Fixing this might just involve duplicating the "pax" line in llvm/Makefile to do the same thing for BUILD_SRC_ROOT/include as it does for include.
I have duplicated the incorrect behavior, btw.
Can you give it another shot with the current llvm/Makefile? I just checked in a fix. If you do not agree that it fixes the bug, please re-open it. Patch is here: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040209/011409.html Thanks for letting us know about this.
Confirmed. The header files are now installed properly. One thing I noted is that the path I need to use to #include the llvm library headers is: #include <llvm/llvm/header.h> This seems a little awkward with the duplicate llvm but its not a big deal. Marking this as verified.
> One thing I noted is that the path I need to use to #include the llvm library > headers is: > #include <llvm/llvm/header.h> You're right that that is wrong, but it can only be fixed when Bug 183 is... -Chris