Raspberry Pi
Moderator: ScummVM Team
Ah phew. So far so good then.
Thank you for your support. I know it's not something you have to provide in anyway so I really appreciate it.
I will definitely check out that course. I grew up on DOS and Windows and know my way around those with ease but have always been blind to Linux so setting up the Pi was a real eye opener!
Thank you for your support. I know it's not something you have to provide in anyway so I really appreciate it.
I will definitely check out that course. I grew up on DOS and Windows and know my way around those with ease but have always been blind to Linux so setting up the Pi was a real eye opener!
Well that didn't work either, still got the out of memory error.
Are you certain the export flag command should fix this and you mentioned this:
Do I need to clone the git again or can I just type:
make clean
export CXXFLAGS="-WI,--no-keep-memory"
make
and that should work? Just to clarify is it -WI as in letter l for lima for number 1 I should be using? if it is l for lima does it matter is its lower case l or upper case L?
Here is my kernal log:
Are you certain the export flag command should fix this and you mentioned this:
I will try again but can't see where I'm going wrong.digitall wrote:export CXXFLAGS="-Wl,--no-keep-memory" will not help with the issues you indicate as that linker problem manifests as an operating system Out Of Memory error...
Do I need to clone the git again or can I just type:
make clean
export CXXFLAGS="-WI,--no-keep-memory"
make
and that should work? Just to clarify is it -WI as in letter l for lima for number 1 I should be using? if it is l for lima does it matter is its lower case l or upper case L?
Here is my kernal log:
Code: Select all
Jan 2 18:05:18 raspberrypi kernel: [29185.259204] ifplugd invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=-1000
Jan 2 18:05:18 raspberrypi kernel: [29185.259233] CPU: 0 PID: 1648 Comm: ifplugd Not tainted 3.12.28+ #709
Jan 2 18:05:18 raspberrypi kernel: [29185.259281] [<c001444c>] (unwind_backtrace+0x0/0xec) from [<c0011730>] (show_stack+0x10/0x14)
Jan 2 18:05:18 raspberrypi kernel: [29185.259306] [<c0011730>] (show_stack+0x10/0x14) from [<c043df38>] (dump_header.isra.13+0x94/0x1d8)
Jan 2 18:05:18 raspberrypi kernel: [29185.259330] [<c043df38>] (dump_header.isra.13+0x94/0x1d8) from [<c00a3040>] (oom_kill_process+0x450/0x47c)
Jan 2 18:05:18 raspberrypi kernel: [29185.259350] [<c00a3040>] (oom_kill_process+0x450/0x47c) from [<c00a35a8>] (out_of_memory+0x2e4/0x330)
Jan 2 18:05:18 raspberrypi kernel: [29185.259372] [<c00a35a8>] (out_of_memory+0x2e4/0x330) from [<c00a7510>] (__alloc_pages_nodemask+0x83c/0x920)
Jan 2 18:05:18 raspberrypi kernel: [29185.259391] [<c00a7510>] (__alloc_pages_nodemask+0x83c/0x920) from [<c00a1c74>] (filemap_fault+0x230/0x4cc)
Jan 2 18:05:18 raspberrypi kernel: [29185.259420] [<c00a1c74>] (filemap_fault+0x230/0x4cc) from [<c00be274>] (__do_fault+0x6c/0x508)
Jan 2 18:05:18 raspberrypi kernel: [29185.259440] [<c00be274>] (__do_fault+0x6c/0x508) from [<c00c17b4>] (handle_mm_fault+0x234/0xa10)
Jan 2 18:05:18 raspberrypi kernel: [29185.259470] [<c00c17b4>] (handle_mm_fault+0x234/0xa10) from [<c04464b8>] (do_page_fault+0x2a0/0x428)
Jan 2 18:05:18 raspberrypi kernel: [29185.259490] [<c04464b8>] (do_page_fault+0x2a0/0x428) from [<c000842c>] (do_PrefetchAbort+0x34/0x98)
Jan 2 18:05:18 raspberrypi kernel: [29185.259509] [<c000842c>] (do_PrefetchAbort+0x34/0x98) from [<c0445054>] (ret_from_exception+0x0/0x10)
Jan 2 18:05:18 raspberrypi kernel: [29185.259518] Exception stack(0xc33bbfb0 to 0xc33bbff8)
Jan 2 18:05:18 raspberrypi kernel: [29185.259530] bfa0: 00000000 be879c38 00000000 00000000
Jan 2 18:05:18 raspberrypi kernel: [29185.259544] bfc0: be879cb8 00000000 00000000 0000008e 000156ac 00000000 00000007 00000000
Jan 2 18:05:18 raspberrypi kernel: [29185.259556] bfe0: 00000000 be879b9c 0000a354 b6e99f94 40000010 ffffffff
Jan 2 18:05:18 raspberrypi kernel: [29185.259563] Mem-info:
Jan 2 18:05:18 raspberrypi kernel: [29185.259570] Normal per-cpu:
Jan 2 18:05:18 raspberrypi kernel: [29185.259578] CPU 0: hi: 18, btch: 3 usd: 0
Jan 2 18:05:18 raspberrypi kernel: [29185.259596] active_anon:4572 inactive_anon:4616 isolated_anon:32
Jan 2 18:05:18 raspberrypi kernel: [29185.259596] active_file:12 inactive_file:17 isolated_file:0
Jan 2 18:05:18 raspberrypi kernel: [29185.259596] unevictable:0 dirty:0 writeback:12 unstable:0
Jan 2 18:05:18 raspberrypi kernel: [29185.259596] free:2048 slab_reclaimable:306 slab_unreclaimable:834
Jan 2 18:05:18 raspberrypi kernel: [29185.259596] mapped:0 shmem:0 pagetables:256 bounce:0
Jan 2 18:05:18 raspberrypi kernel: [29185.259596] free_cma:0
Jan 2 18:05:18 raspberrypi kernel: [29185.259641] Normal free:8192kB min:8192kB low:10240kB high:12288kB active_anon:18288kB inactive_anon:18464kB active_file:48kB inactive_file:68kB unevictable:0kB isolated(anon):128kB isolated(file):0kB present:65536kB managed:58068kB mlocked:0kB dirty:0kB writeback:48kB mapped:0kB shmem:0kB slab_reclaimable:1224kB slab_unreclaimable:3336kB kernel_stack:600kB pagetables:1024kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:176 all_unreclaimable? yes
Jan 2 18:05:18 raspberrypi kernel: [29185.259650] lowmem_reserve[]: 0 0
Jan 2 18:05:18 raspberrypi kernel: [29185.259662] Normal: 34*4kB (UMR) 1*8kB (R) 1*16kB (R) 1*32kB (R) 1*64kB (R) 2*128kB (R) 2*256kB (R) 2*512kB (R) 0*1024kB 1*2048kB (R) 1*4096kB (R) = 8192kB
Jan 2 18:05:18 raspberrypi kernel: [29185.259709] 671 total pagecache pages
Jan 2 18:05:18 raspberrypi kernel: [29185.259720] 642 pages in swap cache
Jan 2 18:05:18 raspberrypi kernel: [29185.259728] Swap cache stats: add 473623, delete 472981, find 210914/262266
Jan 2 18:05:18 raspberrypi kernel: [29185.259734] Free swap = 0kB
Jan 2 18:05:18 raspberrypi kernel: [29185.259739] Total swap = 102396kB
Jan 2 18:05:18 raspberrypi kernel: [29185.262060] 16384 pages of RAM
Jan 2 18:05:18 raspberrypi kernel: [29185.262074] 2228 free pages
Jan 2 18:05:18 raspberrypi kernel: [29185.262080] 1867 reserved pages
Jan 2 18:05:18 raspberrypi kernel: [29185.262090] 800 slab pages
Jan 2 18:05:18 raspberrypi kernel: [29185.262124] 42 pages shared
Jan 2 18:05:18 raspberrypi kernel: [29185.262133] 642 pages swap cached
Jan 2 18:05:18 raspberrypi kernel: [29185.262140] [ pid ] uid tgid total_vm rss nr_ptes swapents oom_score_adj name
Jan 2 18:05:18 raspberrypi kernel: [29185.262168] [ 156] 0 156 722 0 5 133 -1000 udevd
Jan 2 18:05:18 raspberrypi kernel: [29185.262181] [ 684] 0 684 721 0 5 134 -1000 udevd
Jan 2 18:05:18 raspberrypi kernel: [29185.262194] [ 687] 0 687 721 0 5 133 -1000 udevd
Jan 2 18:05:18 raspberrypi kernel: [29185.262208] [ 1648] 0 1648 438 5 5 16 -1000 ifplugd
Jan 2 18:05:18 raspberrypi kernel: [29185.262226] [ 1659] 0 1659 438 5 5 16 -1000 ifplugd
Jan 2 18:05:18 raspberrypi kernel: [29185.262240] [ 1970] 0 1970 6994 0 8 114 0 rsyslogd
Jan 2 18:05:18 raspberrypi kernel: [29185.262253] [ 1995] 0 1995 2479 19 7 97 0 nmbd
Jan 2 18:05:18 raspberrypi kernel: [29185.262266] [ 2022] 0 2022 950 10 6 31 0 cron
Jan 2 18:05:18 raspberrypi kernel: [29185.262278] [ 2037] 0 2037 4718 25 13 150 0 smbd
Jan 2 18:05:18 raspberrypi kernel: [29185.262290] [ 2060] 0 2060 4847 0 12 168 0 smbd
Jan 2 18:05:18 raspberrypi kernel: [29185.262303] [ 2078] 104 2078 795 0 5 56 0 dbus-daemon
Jan 2 18:05:18 raspberrypi kernel: [29185.262314] [ 2117] 0 2117 1088 0 5 51 0 bluetoothd
Jan 2 18:05:18 raspberrypi kernel: [29185.262328] [ 2161] 102 2161 1379 22 6 86 0 ntpd
Jan 2 18:05:18 raspberrypi kernel: [29185.262343] [ 2241] 0 2241 1225 0 5 429 -1000 dhclient
Jan 2 18:05:18 raspberrypi kernel: [29185.262382] [ 2282] 0 2282 1554 0 6 106 -1000 sshd
Jan 2 18:05:18 raspberrypi kernel: [29185.262397] [ 2310] 65534 2310 505 5 5 23 0 thd
Jan 2 18:05:18 raspberrypi kernel: [29185.262410] [ 2321] 0 2321 816 0 5 85 0 login
Jan 2 18:05:18 raspberrypi kernel: [29185.262422] [ 2322] 0 2322 937 0 6 32 0 getty
Jan 2 18:05:18 raspberrypi kernel: [29185.262435] [ 2323] 0 2323 937 0 6 32 0 getty
Jan 2 18:05:18 raspberrypi kernel: [29185.262447] [ 2324] 0 2324 937 0 6 32 0 getty
Jan 2 18:05:18 raspberrypi kernel: [29185.262459] [ 2325] 0 2325 937 0 6 32 0 getty
Jan 2 18:05:18 raspberrypi kernel: [29185.262473] [ 2326] 0 2326 937 0 5 32 0 getty
Jan 2 18:05:18 raspberrypi kernel: [29185.262485] [ 2327] 0 2327 517 0 5 31 0 getty
Jan 2 18:05:18 raspberrypi kernel: [29185.262497] [ 2328] 0 2328 2315 0 7 147 0 sshd
Jan 2 18:05:18 raspberrypi kernel: [29185.262510] [ 2331] 1000 2331 1656 0 7 561 0 bash
Jan 2 18:05:18 raspberrypi kernel: [29185.262522] [ 2349] 1000 2349 2350 0 7 168 0 sshd
Jan 2 18:05:18 raspberrypi kernel: [29185.262535] [ 2350] 1000 2350 597 0 4 93 0 sftp-server
Jan 2 18:05:18 raspberrypi kernel: [29185.262547] [ 2554] 1000 2554 1704 0 7 863 0 make
Jan 2 18:05:18 raspberrypi kernel: [29185.262561] [11522] 1000 11522 440 0 3 18 0 sh
Jan 2 18:05:18 raspberrypi kernel: [29185.262573] [11523] 1000 11523 1023 0 5 36 0 g++
Jan 2 18:05:18 raspberrypi kernel: [29185.262585] [11524] 1000 11524 970 0 5 23 0 collect2
Jan 2 18:05:18 raspberrypi kernel: [29185.262600] [11525] 1000 11525 31620 8484 65 21984 0 ld
Jan 2 18:05:18 raspberrypi kernel: [29185.262609] Out of memory: Kill process 11525 (ld) score 761 or sacrifice child
Jan 2 18:05:18 raspberrypi kernel: [29185.262621] Killed process 11525 (ld) total-vm:126480kB, anon-rss:33936kB, file-rss:0kB
I think I may have figured out where I went wrong. On my iPhone the export flag command looked like "-WI (Whiskey India) but on my PC it looks like "-Wl (Whiskey lima) so I think I used i instead of l and the uppercase i (I) looks the same as a lowercase l on my phone.
So of all the stupid things to get tripped up on...
So I've typed:
make clean
export CXXFLAGS="-Wl,--no-keep-memory"
./configure
make
And now it's gonna do its thing for 8 hours. So hopefully it will work this time.
So of all the stupid things to get tripped up on...
So I've typed:
make clean
export CXXFLAGS="-Wl,--no-keep-memory"
./configure
make
And now it's gonna do its thing for 8 hours. So hopefully it will work this time.
The CXXFLAGS="-Wl,--no-keep-memory" options only reduces the amount of memory the GCC linker requires, so an OOM is still possible with the full set of engines.
If you just want to play the SCI games, then can I suggest:
./configure --disable-all-engines --enable-engines=sci,sci32 && make clean && make
That will built ScummVM with just the SCI and SCI32 engines.
Another option would be to do a dynamic plugins build using:
./configure --enable-plugins --default-dynamic && make clean && make
This avoid the need to link a hug static binary at the end.
If you just want to play the SCI games, then can I suggest:
./configure --disable-all-engines --enable-engines=sci,sci32 && make clean && make
That will built ScummVM with just the SCI and SCI32 engines.
Another option would be to do a dynamic plugins build using:
./configure --enable-plugins --default-dynamic && make clean && make
This avoid the need to link a hug static binary at the end.
You could try that, but the issue is mainly the lack of Virtual Memory / Swap.
This affects native compilation on many of the embedded device targets as most have limited RAM i.e. 512M or less and use Flash memory which if used as Swap would wear out fairly quickly and fail.
Another option would be to add an external hard disk partition as swap space (NOT the SD card as that is Flash memory). See:
https://raspberrypi.stackexchange.com/q ... swap-space
This affects native compilation on many of the embedded device targets as most have limited RAM i.e. 512M or less and use Flash memory which if used as Swap would wear out fairly quickly and fail.
Another option would be to add an external hard disk partition as swap space (NOT the SD card as that is Flash memory). See:
https://raspberrypi.stackexchange.com/q ... swap-space
I guess you should also pass that to LDFLAGS and not CXXFLAGS. CXXFLAGS won't be passed to the linker command.Angelus3K wrote:Gonna have to give up.
Even when running
make clean
export CXXFLAGS="-Wl,--no-keep-memory"
./configure
make
I'm still getting the out of memory error.
Thankyou for all the advice.
Well I don't know what did it or if it was a mixture but I changed the memory split on the RAM to give the CPU as much as possible and ran both export CXXFLAGS and LDFLAGS and set it off overnight.LordHoto wrote:It's worth a try, yes.Angelus3K wrote:So if I type
export LDFLAGS="-Wl,--no-keep-memory"
That should help?
This morning when I awoke it had compiled!! I ran make install and got an error but it was a permissions error so just ran sudo make install and it seemed to do it's thing ok!
I haven't yet ran ScummVM to check it loads 1.7.0 as I was SSH'd in from my PC and had to leave for work but I will try it tonight and report back!
You guys are legends!! It works!!
Thank you to everyone that helped me.
I must have grabbed the latest daily build as it says I have 1.8.0!!! Are there any juicy updates I should know about in this release?
Again, thank you all. If anyone needs any help compiling for Pi in future just give me a shout.
Thank you to everyone that helped me.
I must have grabbed the latest daily build as it says I have 1.8.0!!! Are there any juicy updates I should know about in this release?
Again, thank you all. If anyone needs any help compiling for Pi in future just give me a shout.
I have a question. Is there any way to get a touchscreen working with scummvm? I have a 5" 800x400 HDMI LCD from waveshare. The touchscreen works perfect in raspbian, but in scummvm the cursor jumps along the edges of the screen when I press anywhere on the screen.
This results in Indiana Jones walking to the edges instead of where I touched the screen. Is there a way to get it to work properly?
This results in Indiana Jones walking to the edges instead of where I touched the screen. Is there a way to get it to work properly?