[llvmlinux] Website: Manual_Build_Instructions

Daniel Sanders Daniel.Sanders at imgtec.com
Mon Mar 2 09:59:22 UTC 2015


Hi,

I'm not 100% certain but I don't think the manual build instructions are intended to be a reflection of what the Makefiles do. They're just instructions that will get you a bootable kernel.

Either way, the only difference between --enable-assertions and --disable-assertions is how debug-able the compiler is. It has no effect on the resulting kernel.

> -----Original Message-----
> From: llvmlinux-bounces at lists.linuxfoundation.org [mailto:llvmlinux-
> bounces at lists.linuxfoundation.org] On Behalf Of Sedat Dilek
> Sent: 27 February 2015 09:29
> To: llvmlinux
> Subject: Re: [llvmlinux] Website: Manual_Build_Instructions
> 
> Ping!?
> 
> - Sedat -
> 
> On Wed, Feb 4, 2015 at 12:54 AM, Sedat Dilek <sedat.dilek at gmail.com>
> wrote:
> > Hi,
> >
> > I am planning to build a llvm-toolchain v3.6.0-rc2 on my own.
> >
> > Gasping at [1] shows a wrong configure-parameter...
> > ...
> > ./configure --prefix=$(echo ~/llvm4linux)/out/llvm --enable-optimized
> > --disable-assertions --targets=x86,x86_64,arm
> > ...
> >
> > Looking at the source of llvmlinux-git says...
> >
> > $ grep able-assertions -nr ./
> > ./toolchain/clang/clang-from-source.mk:99:LLVM_OPTIMIZED        =
> > --enable-optimized --enable-assertions
> > ./targets/x86_64/checkpoints/v3.14/config.mk:7:LLVM_OPTIMIZED
> >  = --enable-optimized --enable-assertions
> > ./targets/x86_64/checkpoints/kernel-3.10-
> rc7/config.mk:7:LLVM_OPTIMIZED
> >         = --enable-optimized --enable-assertions
> > ./targets/x86_64/checkpoints/kernel-3.13-
> rc4/config.mk:7:LLVM_OPTIMIZED
> >         = --enable-optimized --enable-assertions
> > ./targets/x86_64/checkpoints/v3.3/config.mk:7:LLVM_OPTIMIZED
> >  = --enable-optimized --enable-assertions
> > ./targets/nexus7/checkpoint/ckp1.mk:7:LLVM_OPTIMIZED            =
> > --enable-optimized --enable-assertions
> > ./targets/nexus7/checkpoint/ckp3.mk:8:LLVM_OPTIMIZED            =
> > --enable-optimized --enable-assertions
> > ./targets/nexus7/checkpoint/ckp2.mk:7:LLVM_OPTIMIZED            =
> > --enable-optimized --enable-assertions
> > ./targets/rpi/checkpoint/ckp1.mk:7:LLVM_OPTIMIZED               =
> > --enable-optimized --enable-assertions
> > ./targets/rpi/checkpoint/ckp3.mk:11:LLVM_OPTIMIZED              =
> > --enable-optimized --enable-assertions
> > ./targets/rpi/checkpoint/ckp4.mk:11:LLVM_OPTIMIZED              =
> > --enable-optimized --enable-assertions
> > ./targets/rpi/checkpoint/ckp2.mk:8:LLVM_OPTIMIZED               =
> > --enable-optimized --enable-assertions
> > ./targets/x86_64_tiny/checkpoints/llvm3.3-
> linux040a0a3/config.mk:7:LLVM_OPTIMIZED
> >               = --enable-optimized --enable-assertions
> >
> > So, this should be changed from "--disable-assertions" to
> > "--enable-assertions" on the website.
> >
> > Regards,
> > - Sedat -
> >
> > [1] http://llvm.linuxfoundation.org/index.php/Manual_Build_Instructions
> > -> "Checkout LLVM and clang"
> _______________________________________________
> LLVMLinux mailing list
> LLVMLinux at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux


More information about the LLVMLinux mailing list