Can't compile Code lite due to not enough memory.

CodeLite installation/troubleshooting forum
babaliaris
CodeLite Curious
Posts: 2
Joined: Thu Jul 19, 2018 5:13 pm
Genuine User: Yes
IDE Question: c++
Contact:

Can't compile Code lite due to not enough memory.

Post by babaliaris »

Hello.

I tried compiling Code lite (64 bit Linux) on my machine but the OS froze because all the memory was occupied by the compilation process.
This has nothing to do with Code lite, it happens to my machine sometimes because its an old laptop.

First of all i would like to ask if i can find somewhere Code Lite for Linux x64 already compiled to try it.
Secondly please review my specs below and tell me if it's worth to use Code Lite on my laptop.

Thank you.

CPU info:

Code: Select all

processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 20
model		: 2
model name	: AMD E1-1200 APU with Radeon(tm) HD Graphics
stepping	: 0
microcode	: 0x5000119
cpu MHz		: 1173.184
cache size	: 512 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 6
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt hw_pstate vmmcall arat npt lbrv svm_lock nrip_save pausefilter
bugs		: fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips	: 2796.40
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor	: 1
vendor_id	: AuthenticAMD
cpu family	: 20
model		: 2
model name	: AMD E1-1200 APU with Radeon(tm) HD Graphics
stepping	: 0
microcode	: 0x5000119
cpu MHz		: 778.288
cache size	: 512 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 6
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt hw_pstate vmmcall arat npt lbrv svm_lock nrip_save pausefilter
bugs		: fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips	: 2796.40
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
RAM info:

Code: Select all

MemTotal:        1633392 kB
MemFree:          460168 kB
MemAvailable:     948836 kB
Buffers:           37668 kB
Cached:           405828 kB
SwapCached:            0 kB
Active:           574356 kB
Inactive:         459320 kB
Active(anon):     387628 kB
Inactive(anon):    46944 kB
Active(file):     186728 kB
Inactive(file):   412376 kB
Unevictable:          32 kB
Mlocked:              32 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:               204 kB
Writeback:             0 kB
AnonPages:        590228 kB
Mapped:           250952 kB
Shmem:             47376 kB
Slab:              64020 kB
SReclaimable:      38700 kB
SUnreclaim:        25320 kB
KernelStack:        4176 kB
PageTables:        15240 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      816696 kB
Committed_AS:    2178424 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:       97024 kB
DirectMap2M:     1583104 kB
DirectMap1G:           0 kB

Disk Iinfo:

Code: Select all

Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x0008a551

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048    206847    204800   100M  7 HPFS/NTFS/exFAT
/dev/sda2          206848 546750463 546543616 260.6G  7 HPFS/NTFS/exFAT
/dev/sda3       546750464 548847615   2097152     1G 82 Linux swap / Solaris
/dev/sda4  *    548847616 625142447  76294832  36.4G 83 Linux

User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Can't compile Code lite due to not enough memory.

Post by eranif »

Which OS are you running?
Linux 64/bit is not enough information. Are you using Ubuntu? Debian? CentOS etc...
Have a look here to see what we offer:
http://codelite.org/LiteEditor/Repositories/
Make sure you have read the HOW TO POST thread
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Can't compile Code lite due to not enough memory.

Post by DavidGH »

Hi,
but the OS froze because all the memory was occupied by the compilation process.
I find that happens (for me, usually in VirtualBox guests) when I try to build with too many cores (in your case -j2) and either/both:
1) not enough swap space, or
2) not enough space in tmpfs.

The latter can be avoided by first doing: export TMPDIR=/somewhere/else
First of all i would like to ask if i can find somewhere Code Lite for Linux x64 already compiled to try it.
Which distro/version? There are various binaries here.

Regards,

David
babaliaris
CodeLite Curious
Posts: 2
Joined: Thu Jul 19, 2018 5:13 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Can't compile Code lite due to not enough memory.

Post by babaliaris »

Arch Linux. Thanks for the link, it has one for arch linux. Yes, I used j4 in make and my swap is only one gb.
Post Reply