[LLVMdev] CMake "sudo make install" & headers

Samuel Williams space.ship.traveller at gmail.com
Thu Sep 30 18:07:53 PDT 2010


If that was a problem, wouldn't it affect the installation of every other type of file? Also, wouldn't that be a really strange bug?

Anyway, I checked and the path was expanded, probably by the shell:

-- Install configuration: "Release"
-- Installing: /Users/samuel/llvm-2.8/lib/libLLVMSupport.a
-- Installing: /Users/samuel/llvm-2.8/lib/libLLVMSystem.a
-- Installing: /Users/samuel/llvm-2.8/lib/libLLVMCore.a
-- Installing: /Users/samuel/llvm-2.8/lib/libLLVMCodeGen.a

Still no solution.

Kind regards,
Samuel

On 1/10/2010, at 2:02 PM, Florian Sauer wrote:

> Is it the use of ~ ?
> 
> 
> 
> On Sep 30, 2010, at 17:46, Samuel Williams <space.ship.traveller at gmail.com> wrote:
> 
>> Hi,
>> 
>> I did this:
>> 
>> $ cmake -DCMAKE_INSTALL_PREFIX=~/llvm-2.8 -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 ..
>> $ make
>> $ make install
>> 
>> Still didn't install the headers.
>> 
>> $ cd ~/llvm-2.8/include/
>> $ ls -la
>> total 0
>> drwxr-xr-x  2 samuel  staff   68  1 Oct 12:47 .
>> drwxr-xr-x  6 samuel  staff  204  1 Oct 12:47 ..
>> 
>> Libraries and binaries installed fine:
>> 
>> $ cd ../lib/
>> $ ls -la
>> total 44600
>> drwxr-xr-x  2 samuel  staff     1190  1 Oct 13:40 .
>> drwxr-xr-x  6 samuel  staff      204  1 Oct 12:47 ..
>> -rwxr-xr-x  1 samuel  staff    17736  1 Oct 13:40 BugpointPasses.so
>> -rwxr-xr-x  1 samuel  staff    17304  1 Oct 13:36 LLVMHello.so
>> -rw-r--r--  1 samuel  staff    11592  1 Oct 13:40 libEnhancedDisassembly.a
>> -rw-r--r--  1 samuel  staff  2229616  1 Oct 13:40 libLLVMAnalysis.a
>> -rw-r--r--  1 samuel  staff    80080  1 Oct 13:40 libLLVMArchive.a
>> -rw-r--r--  1 samuel  staff   375672  1 Oct 13:40 libLLVMAsmParser.a
>> -rw-r--r--  1 samuel  staff   417544  1 Oct 13:40 libLLVMAsmPrinter.a
>> -rw-r--r--  1 samuel  staff   195016  1 Oct 13:40 libLLVMBitReader.a
>> -rw-r--r--  1 samuel  staff   170536  1 Oct 13:40 libLLVMBitWriter.a
>> -rw-r--r--  1 samuel  staff  3275696  1 Oct 13:40 libLLVMCodeGen.a
>> -rw-r--r--  1 samuel  staff  2523744  1 Oct 13:40 libLLVMCore.a
>> -rw-r--r--  1 samuel  staff   134504  1 Oct 13:40 libLLVMExecutionEngine.a
>> -rw-r--r--  1 samuel  staff   926488  1 Oct 13:40 libLLVMInstCombine.a
>> * snip *
>> 
>> Could there be some additional option required for development files? Currently, I have CMAKE_BUILD_TYPE=Release - maybe this doesn't install headers?
>> 
>> Kind regards,
>> Samuel
>> 
>> On 1/10/2010, at 11:52 AM, Óscar Fuentes wrote:
>> 
>>> The following message is a courtesy copy of an article
>>> that has been posted to gmane.comp.compilers.llvm.devel as well.
>>> 
>>> Samuel Williams <space.ship.traveller at gmail.com> writes:
>>> 
>>> [snip]
>>> 
>>>> The problem is that exactly the same arguments to CMake on Mac OS X
>>>> and Linux give different results.
>>>> 
>>>> On Mac OS X, headers are not installed. On Linux, they are
>>>> installed. I've tested this on Debian Linux and OS X 10.6.4 both with
>>>> CMake >= 2.8.0
>>>> 
>>>> I am not sure how to debug this problem. Does anyone have any
>>>> experience with CMake command line on Mac OS X?
>>> 
>>> It should work the same, regardless of what interface you use for
>>> configuring. Else, it would be a strong indication of a bug on cmake.
>>> 
>>> The commands for installing the headers are at the end of the top-level
>>> CMakeLists.txt.
>>> 
>>> Try building and installing without `sudo', i.e. under your home
>>> directory. Whatever result you get will be useful to know.
>> 
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101001/2f7c75f5/attachment.html>


More information about the llvm-dev mailing list