• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Compilation error - Out of Memory  (Read 1982 times)
rseste
Newbie
*

Karma: 0
Posts: 12


View Profile
« on: September 09, 2009, 02:00:15 PM »

Hi all,

I'm trying to compile the dahdi drivers from asterisk and the sangoma U100 drivers.
The compilation process crashes
Code:
# make
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory `/root/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
make[1]: Leaving directory `/root/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
make -C /lib/modules/2.6.30.5/build
SUBDIRS=/root/dahdi-linux-2.2.0.2/drivers/dahdi
DAHDI_INCLUDE=/root/dahdi-linux-2.2.0.2/include DAHDI_MODULES_EXTRA="
" HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory `/mnt/pendrive/MySwitch/linuxKernel/linux-2.6.30.5'
/root/dahdi-linux-2.2.0.2/drivers/dahdi/Kbuild:85: CPU Architecture
'arm' does not support VPMADT032 or HPEC. Skipping.
 CC [M]  /root/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o
Killed
make[2]: *** [/root/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o] Error 137
make[1]: *** [_module_/root/dahdi-linux-2.2.0.2/drivers/dahdi] Error 2
make[1]: Leaving directory `/mnt/pendrive/MySwitch/linuxKernel/linux-2.6.30.5'
make: *** [modules] Error 2

from the dmesg output I got that is a out of memory error and the kernel killed the compilation process.

Code:
sh invoked oom-killer: gfp_mask=0x1200d2, order=0, oomkilladj=0
[<c00309c0>] (unwind_backtrace+0x0/0xe0) from [<c007b534>](oom_kill_process+0x84/0x20c)
[<c007b534>] (oom_kill_process+0x84/0x20c) from [<c007bad0>](__out_of_memory+0x188/0x1ac)
[<c007bad0>] (__out_of_memory+0x188/0x1ac) from [<c007bb70>](out_of_memory+0x7c/0xcc)
[<c007bb70>] (out_of_memory+0x7c/0xcc) from [<c007e580>](__alloc_pages_internal+0x2f0/0x3a0)
[<c007e580>] (__alloc_pages_internal+0x2f0/0x3a0) from [<c008d728>](handle_mm_fault+0x178/0x700)
[<c008d728>] (handle_mm_fault+0x178/0x700) from [<c03d0094>](do_page_fault+0x154/0x2a8)
[<c03d0094>] (do_page_fault+0x154/0x2a8) from [<c002b24c>](do_DataAbort+0x3c/0x9c)
[<c002b24c>] (do_DataAbort+0x3c/0x9c) from [<c03ce65c>](ret_from_exception+0x0/0x10)
Exception stack(0xdf1e1fb0 to 0xdf1e1ff8)
1fa0:                                     1dcdb118 0001fee9 40151000 000014ac
1fc0: 1dcdaf18 4015205c 4015205c 1dcdaf18 4015202c 40152064 00000200 000001ff
1fe0: 000200e8 befc1150 40094578 40092544 60000010 ffffffff
Mem-info:
Normal per-cpu:
CPU    0: hi:  186, btch:  31 usd: 169
Active_anon:99647 active_file:11 inactive_anon:24650
 inactive_file:0 unevictable:0 dirty:0 writeback:0 unstable:0
 free:717 slab:1036 mapped:0 pagetables:337 bounce:0
Normal free:2868kB min:2884kB low:3604kB high:4324kB
active_anon:398588kB inactive_anon:98600kB active_file:44kB
inactive_file:0kB unevictable:0kB present:520192kB pages_scanned:97579
all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 21*4kB 6*8kB 3*16kB 4*32kB 2*64kB 3*128kB 2*256kB 3*512kB
0*1024kB 0*2048kB 0*4096kB = 2868kB
55 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
131072 pages of RAM
1095 free pages
2648 reserved pages
852 slab pages
11 pages shared
0 pages swap cached
Out of memory: kill process 15017 (sh) score 7653 or a child
Killed process 15017 (sh)

I tried to add a USB flash driver (2GB) as a swap partition but in a couple of minutes the compilation process ate the 2GB too and it crashed again with the same error.

In the asterisk list they told me that this can be gcc bug
I installed gcc using apt-get ( version 4:4.3.3-1ubuntu1)
Anybody had/has the same issue?
Can anybody help me???

thanks!!!
Seste
Logged

rseste
Newbie
*

Karma: 0
Posts: 12


View Profile
« Reply #1 on: September 21, 2009, 05:28:37 AM »

Updates!!!

I found a workaround for this problem, i changed my distro to Debian Lenny (I was using Ubuntu) and it worked, it compiled without this error (out of memory)!!

Would this be gcc bug??? To whom I would report this issue?Huh
Logged

Pages: [1]
Print
Jump to: