LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-24-2015, 01:38 AM   #1
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Rep: Reputation: 23
Build time LLVM 3.6.1. Anyone know why ?


I finished building LLVM-3.6.1.
My LFS version 7.7 sysmtemd
My BLFS version SVN 2015-08-05 systemd edition

But there one thing that still make me question why?

Following the BLFS book:
Code:
tar -xf ../cfe-3.6.1.src.tar.xz -C tools
tar -xf ../compiler-rt-3.6.1.src.tar.xz -C projects

mv -v tools/cfe-3.6.1.src tools/clang
mv -v projects/compiler-rt-3.6.1.src projects/compiler-rt

sed -e "s:/docs/llvm:/share/doc/llvm-3.6.1:" \
    -i Makefile.config.in

CC=gcc CXX=g++                   \
./configure --prefix=/usr        \
            --sysconfdir=/etc    \
            --enable-libffi      \
            --enable-optimized   \
            --enable-shared      \
            --disable-assertions \
            --enable-targets=host
make
After 12 hours, compilation still running. Consumes so much spaces and resources.

I brake compilation. Download additional files; libcxx-3.6.1, libcxxabi-3.6.1, and test-suite-3.6.1. Then
Code:
tar -xf ../cfe-3.6.1.src.tar.xz -C tools
tar -xf ../compiler-rt-3.6.1.src.tar.xz -C projects
tar -xf ../libcxx-3.6.1.src.tar.xz -C projects
tar -xf ../libcxxabi-3.6.1.src.tar.xz -C projects
tar -xf ../test-suite-3.6.1.src.tar.xz -C projects

mv -v tools/cfe-3.6.1.src tools/clang
mv -v projects/compiler-rt-3.6.1.src projects/compiler-rt
mv -v projects/libcxx-3.6.1.src projects/libcxx
mv -v projects/libcxxabi-3.6.1.src projects/libcxxabi
mv -v projects/test-suite-3.6.1.src projects/test-suite

sed -e "s:/docs/llvm:/share/doc/llvm-3.6.1:" \
    -i Makefile.config.in

CC=gcc CXX=g++                   \
./configure --prefix=/usr        \
            --sysconfdir=/etc    \
            --enable-libffi      \
            --enable-optimized   \
            --enable-shared      \
            --disable-assertions \
            --enable-targets=host

make
Compilation takes 3 hours 45 minutes.

Could someone explain this.
Thanks before.
 
Old 11-25-2015, 05:11 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
LLVM/Clang is a compiler and is a fairly big package to say the least.
 
Old 11-26-2015, 03:48 AM   #3
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Original Poster
Rep: Reputation: 23
What I mean is why there is so much time different between those two?
 
Old 11-26-2015, 11:42 AM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
What are you running make with as far as multi-process? Aka... -j1, -j2, etc?
 
Old 11-27-2015, 03:47 AM   #5
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Original Poster
Rep: Reputation: 23
both using make -j4
I am working on quad core processor.
 
Old 12-02-2015, 05:59 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Yeah the more you add from the basics provided by the book, the longer the build time will be.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Students Can Help Improve LLVM & Clang, Make The Kernel Build LXer Syndicated Linux News 0 03-05-2014 12:50 AM
LXer: Debian Is Still Being Made To Build With LLVM/Clang LXer Syndicated Linux News 0 02-10-2013 01:50 PM
llvm-config problem in slackware64-current LLVM 3.2 package teeemcee Slackware 0 01-24-2013 02:44 PM
LXer: LLVM/Clang Can Build LibreOffice LXer Syndicated Linux News 0 10-22-2011 02:21 PM
OK, time to build my first kernel but... aquaboot Debian 13 12-29-2006 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration