WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] stuck when buldiing upmpdcli or gmrender-resurrect  (Read 3112 times)

Offline ingotee

  • WikiUser
  • *
  • Posts: 20
[SOLVED] stuck when buldiing upmpdcli or gmrender-resurrect
« on: March 22, 2015, 08:24:40 AM »
Hi,

I am still trying to build a dlna renderer on piCore 6.0. I should have all the dependencies on board, at least I built and installed libupnp and libupnpp. But when I try to build upmpdcli, I get

Code: [Select]
depbase=`echo src/avtransport.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I./src  -DDEBUG -g -Wall -DDATADIR=\"/usr/local/share/upmpdcli\" -DCONFIGDIR=\"/usr/local/etc\" -DPACKAGE_VERSION=\"0.9.0\"  -std=c++0x  -g -O2 -MT src/avtransport.o -MD -MP -MF $depbase.Tpo -c -o src/avtransport.o src/avtransport.cxx &&\
mv -f $depbase.Tpo $depbase.Po
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Makefile:490: recipe for target 'src/avtransport.o' failed
make: *** [src/avtransport.o] Error 4

Any idea if this really is a bug or if I am still missing something?

gmrender-ressurect doesn't even get this far. I cloned the source from github.

Code: [Select]
tc@itGhetto:~/gmrender/gmrender-resurrect$ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: creating directory config
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/local/bin/autoconf --force
configure.ac:59: error: possibly undefined macro: AC_SUBST
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/local/bin/autoconf failed with exit status: 1

 :(
Ingo
« Last Edit: March 23, 2015, 09:56:44 AM by Rich »

Offline ingotee

  • WikiUser
  • *
  • Posts: 20
Re: stuck when buldiing upmpdcli or gmrender-resurrect
« Reply #1 on: March 22, 2015, 09:15:27 AM »
some additional info on the compiler error

Code: [Select]
[11059.079200] cc1plus invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
[11059.079227] CPU: 0 PID: 4855 Comm: cc1plus Not tainted 3.12.36-piCore+ #1
[11059.079282] [<c00145c0>] (unwind_backtrace+0x0/0xec) from [<c0011924>] (show_stack+0x10/0x14)
[11059.079314] [<c0011924>] (show_stack+0x10/0x14) from [<c00a1db4>] (dump_header.isra.13+0x70/0x1b8)
[11059.079336] [<c00a1db4>] (dump_header.isra.13+0x70/0x1b8) from [<c00a243c>] (oom_kill_process+0x2d4/0x454)
[11059.079355] [<c00a243c>] (oom_kill_process+0x2d4/0x454) from [<c00a29f4>] (out_of_memory+0x220/0x324)
[11059.079378] [<c00a29f4>] (out_of_memory+0x220/0x324) from [<c00a6de4>] (__alloc_pages_nodemask+0x8e8/0x924)
[11059.079398] [<c00a6de4>] (__alloc_pages_nodemask+0x8e8/0x924) from [<c00a05c8>] (filemap_fault+0x224/0x4ac)
[11059.079420] [<c00a05c8>] (filemap_fault+0x224/0x4ac) from [<c00bd9f0>] (__do_fault+0x68/0x598)
[11059.079439] [<c00bd9f0>] (__do_fault+0x68/0x598) from [<c00c10f8>] (handle_mm_fault+0x4e4/0x9e8)
[11059.079468] [<c00c10f8>] (handle_mm_fault+0x4e4/0x9e8) from [<c044e8c0>] (do_page_fault+0x2f0/0x418)
[11059.079490] [<c044e8c0>] (do_page_fault+0x2f0/0x418) from [<c0008364>] (do_DataAbort+0x34/0x98)
[11059.079508] [<c0008364>] (do_DataAbort+0x34/0x98) from [<c044d1bc>] (__dabt_usr+0x3c/0x40)
[11059.079518] Exception stack(0xcabc3fb0 to 0xcabc3ff8)
[11059.079531] 3fa0:                                     00000000 0223d540 00000000 00000000
[11059.079548] 3fc0: 00000022 00ba2e60 00000000 00000000 00000000 00ba3c10 00000001 bee4f0b4
[11059.079562] 3fe0: 00000000 bee4ed60 00000000 00798600 60000010 ffffffff
[11059.079569] Mem-info:
[11059.079576] Normal per-cpu:
[11059.079585] CPU    0: hi:   42, btch:   7 usd:  36
[11059.079606] active_anon:12061 inactive_anon:12100 isolated_anon:0
[11059.079606]  active_file:51 inactive_file:52 isolated_file:0
[11059.079606]  unevictable:0 dirty:0 writeback:0 unstable:0
[11059.079606]  free:548 slab_reclaimable:1246 slab_unreclaimable:11526
[11059.079606]  mapped:309 shmem:3202 pagetables:145 bounce:0
[11059.079606]  free_cma:0
[11059.079656] Normal free:2192kB min:1732kB low:2164kB high:2596kB active_anon:48244kB inactive_anon:48400kB active_file:204kB inactive_file:208kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:196608kB managed:187896kB mlocked:0kB dirty:0kB writeback:0kB mapped:1236kB shmem:12808kB slab_reclaimable:4984kB slab_unreclaimable:46104kB kernel_stack:1320kB pagetables:580kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:2492 all_unreclaimable? yes
[11059.079669] lowmem_reserve[]: 0 0
[11059.079682] Normal: 100*4kB (UER) 6*8kB (R) 7*16kB (R) 1*32kB (R) 1*64kB (R) 0*128kB 0*256kB 1*512kB (R) 1*1024kB (R) 0*2048kB 0*4096kB = 2192kB
[11059.079727] 3335 total pagecache pages
[11059.079738] 30 pages in swap cache
[11059.079746] Swap cache stats: add 10944, delete 10914, find 14/32
[11059.079752] Free swap  = 0kB
[11059.079758] Total swap = 41892kB
[11059.087528] 49152 pages of RAM
[11059.087546] 813 free pages
[11059.087553] 2178 reserved pages
[11059.087559] 3745 slab pages
[11059.087564] 2717 pages shared
[11059.087570] 30 pages swap cached
[11059.087579] [ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name
[11059.087610] [   75]     0    75      507      183       4       37         -1000 udevd
[11059.087671] [ 3981]     0  3981      506      128       4       36         -1000 udevd
[11059.087685] [ 4015]     0  4015      506       96       4       57         -1000 udevd
[11059.087699] [ 4084]  1001  4084      781      217       5        0             0 sh
[11059.087713] [ 4087]     0  4087      753      148       5        1             0 startserialtty
[11059.087726] [ 4101]     0  4101      754      164       5        0             0 getty
[11059.087740] [ 4144]     0  4144     1187      166       5        0         -1000 sshd
[11059.087753] [ 4166]     0  4166      753      107       5        0             0 udhcpc
[11059.087767] [ 4199]     0  4199     4308      253       8        0             0 shairport
[11059.087780] [ 4208]     0  4208     1234      273       5        0             0 sshd
[11059.087795] [ 4211]  1001  4211      753      141       5        0             0 sh
[11059.087809] [ 4212]  1001  4212     1030      178       4        0             0 sftp-server
[11059.087823] [ 4800]  1001  4800      560      231       4        0             0 make
[11059.087836] [ 4801]  1001  4801      764      154       5        0             0 sh
[11059.087988] [ 4802]  1001  4802      695      352       4        0             0 make
[11059.088007] [ 4832]  1001  4832      764      155       5        0             0 sh
[11059.088021] [ 4836]  1001  4836      765      214       5        0             0 sh
[11059.088036] [ 4854]  1001  4854      717      136       5        0             0 g++
[11059.088050] [ 4855]  1001  4855    24750    20082      53        0             0 cc1plus
[11059.088062] Out of memory: Kill process 4855 (cc1plus) score 350 or sacrifice child
[11059.088073] Killed process 4855 (cc1plus) total-vm:99000kB, anon-rss:79768kB, file-rss:560kB

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6980
    • My Community Forum
Re: stuck when buldiing upmpdcli or gmrender-resurrect
« Reply #2 on: March 22, 2015, 09:43:27 AM »
Do you have swap?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline ingotee

  • WikiUser
  • *
  • Posts: 20
Re: stuck when buldiing upmpdcli or gmrender-resurrect
« Reply #3 on: March 22, 2015, 10:00:50 AM »
yip, default configuration. Do you have suggestions for a change?

Code: [Select]
tc@itGhetto:~$ free
             total         used         free       shared      buffers
Mem:        187896       183744         4152            0        16800
-/+ buffers:             166944        20952
Swap:        41996            0        41996

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6980
    • My Community Forum
Re: stuck when buldiing upmpdcli or gmrender-resurrect
« Reply #4 on: March 22, 2015, 10:31:23 AM »
I see you have only 256MB RAM. I would make a 1GB swap partition on the SD card.
« Last Edit: March 22, 2015, 10:41:13 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline ingotee

  • WikiUser
  • *
  • Posts: 20
Re: stuck when buldiing upmpdcli or gmrender-resurrect
« Reply #5 on: March 22, 2015, 10:38:44 AM »
ok, I will try that. Thanks!

Offline ingotee

  • WikiUser
  • *
  • Posts: 20
Re: stuck when buldiing upmpdcli or gmrender-resurrect
« Reply #6 on: March 22, 2015, 12:37:35 PM »
I am so embarrassed - and happy  :D

Yes, with an extra 1GB of swap upmpdcli built and installed fine. And it even works, too  ;)

Thank you, Béla, for all the patience and help.

I got USB automount working, too. The last step is wifi in a 2 step automatic configuration: known protected networks first. If none is present, set up your own access point. Then my "Raspiblaste" working inside my JVC RV-NB99 is complete.

Then I have to write it all down for a magazine article.

And then I will contact you for instructions on how make real good extensions from the three packages I finally got to build.

Offline ingotee

  • WikiUser
  • *
  • Posts: 20
[SOLVED] stuck when buldiing upmpdcli or gmrender-resurrect
« Reply #7 on: March 23, 2015, 07:32:25 AM »
BTW: Is there a way to change the global subject of the thread, once the problem has been solved? I really appreciate that when I google...

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6980
    • My Community Forum
Re: [SOLVED] stuck when buldiing upmpdcli or gmrender-resurrect
« Reply #8 on: March 23, 2015, 07:47:23 AM »
BTW: Is there a way to change the global subject of the thread, once the problem has been solved? I really appreciate that when I google...

No, but noting it in the last post is useful.

For additional info on editing read http://forum.tinycorelinux.net/index.php/topic,17901.0.html

« Last Edit: March 23, 2015, 07:49:31 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5926
Re: [SOLVED] stuck when buldiing upmpdcli or gmrender-resurrect
« Reply #9 on: March 23, 2015, 09:57:38 AM »
BTW: Is there a way to change the global subject of the thread, once the problem has been solved? I really appreciate that when I google...

Done.

Offline rogger31

  • WikiUser
  • *
  • Posts: 1
Re: [SOLVED] stuck when buldiing upmpdcli or gmrender-resurrect
« Reply #10 on: September 08, 2015, 04:46:14 PM »
Hi,

I am still trying to build a dlna renderer on piCore 6.0. I should have all the dependencies on board, at least I built and installed libupnp and libupnpp. But when I try to build upmpdcli, I get
...
 :(
Ingo

Hi,

following your April c't project I'm trying to compile libupnpp and libupnp to support upmpdcli but the configure task fails.

Code: newbielink:javascript:void(0); [nonactive]
configure:12722: checking arpa/inet.h usability
configure:12722: gcc -c -g -O2 -Os -Wall  conftest.c >&5
In file included from /usr/include/sys/socket.h:38:0,
                 from /usr/include/netinet/in.h:23,
                 from /usr/include/arpa/inet.h:22,
                 from conftest.c:75:
/usr/include/bits/socket.h:349:24: fatal error: asm/socket.h: No such file or directory
compilation terminated.

Did you run into the same error and how was the solution.

I would be interested in the parameters you used to configure the make processes of the three packages.

Thank you in advance

Ingo