building problem scummvm

Subforum for discussion and help with ScummVM's Symbian (mobile phones, etc) ports

Moderator: ScummVM Team

muhul
Posts: 14
Joined: Wed May 12, 2010 3:16 am

building problem scummvm

Post by muhul »

Hi,

I have a problem building scummvm. During compiling I get the error message:

make -s -C \scummsvn\backends\platform\symbian\S60v3 -f "ICONS.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=..\..\..\..\..\S60\devices\S60_3rd_FP2_SDK\EPOC32\BUILD\scummsvn\backends\platform\symbian\S60v3\ICONS\GCCE TO_BLDINF=..\..\..\..\..\scummsvn\backends\platform\symbian\S60v3 PLATFORM=GCCE CFG=UREL BLD
make -s -r -f "\S60\devices\S60_3rd_FP2_SDK\EPOC32\BUILD\scummsvn\backends\platform\symbian\S60v3\SCUMMVM_A0000658_S60V3\GCCE\SCUMMVM_A0000658_S60V3.GCCE" UREL

arm-none-symbianelf-ld: section .text [00008000 -> 00811013] overlaps section .data [00400000 -> 004490ef]
arm-none-symbianelf-ld: section .bss [004490f0 -> 00582a4f] overlaps section .text [00008000 -> 00811013]
arm-none-symbianelf-ld: \S60\devices\S60_3rd_FP2_SDK\EPOC32\BUILD\scummsvn\backends\platform\symbian\S60v3\SCUMMVM_A0000658_S60V3\GCCE\urel\ScummVM_A0000658.exe: section .data lma 0x400000 overlaps previous sections
\S60\devices\S60_3rd_FP2_SDK\epoc32\release\ARMV5\urel\EEXE.LIB(uc_exe_.o): In fnction `$b':
\EPOC32\BUILD\src\cedar\generic\base\e32\EEXE\ARMV5\urel\uc_exe_.cpp:(.text+0x2): relocation truncated to fit: R_ARM_THM_CALL against symbol `_ZN4User9InvariantEv@@euser{000a0000}[100039e5].dll' defined in ER_RO section in \S60\devices\S60_3rd_FP2_SDK\epoc32\release\ARMV5\LIB\euser.dso
\EPOC32\BUILD\src\cedar\generic\base\e32\EEXE\ARMV5\urel\uc_exe_.cpp:(.text+0xa): relocation truncated to fit: R_ARM_THM_CALL against symbol `_ZN4User15HandleExceptionEPv@@euser{000a0000}[100039e5].dll' defined in ER_RO section in \S60\devices\S60_3rd_FP2_SDK\epoc32\release\ARMV5\LIB\euser.dso
\S60\devices\S60_3rd_FP2_SDK\epoc32\release\ARMV5\urel\EEXE.LIB(uc_exe.o): In function `$b':\src\cedar\generic\base\e32\EUSER\epoc\arm\uc_exe.cpp:(.text+0x6): relocation truncated to fit: R_ARM_THM_CALL against symbol `_ZN8UserHeap15SetupThreadHeapEiR24SStdEpocThreadCreateInfo@@euser{000a0000}[100039e5].dll' defined in ER_RO section in \S60\devices\S60_3rd_FP2_SDK\epoc32\release\ARMV5\LIB\euser.dso
\src\cedar\generic\base\e32\EUSER\epoc\arm\uc_exe.cpp:(.text+0x18): relocation truncated to fit: R_ARM_THM_CALL against symbol `_ZN4User4ExitEi@@euser{000a0000}[100039e5].dll' defined in ER_RO section in \S60\devices\S60_3rd_FP2_SDK\epoc32\release\ARMV5\LIB\euser.dso
make[1]: *** [\S60\devices\S60_3rd_FP2_SDK\epoc32\release\GCCE\urel\ScummVM_A0000658.exe] Error 1
make: *** [TARGETSCUMMVM_A0000658_S60V3] Error 2
make -r -f "\S60\devices\S60_3rd_FP2_SDK\EPOC32\BUILD\scummsvn\backends\platform\symbian\S60v3\GCCE.make" FINAL CFG=UREL VERBOSE=-smake -s -C \scummsvn\backends\platform\symbian\S60v3 -f "ICONS.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=..\..\..\..\..\S60\devices\S60_3rd_FP2_SDK\EPOC32\BUILD\scummsvn\backends\platform\symbian\S60v3\ICONS\GCCE TO_BLDINF=..\..\..\..\..\scummsvn\backends\platform\symbian\S60v3 PLATFORM=GCCE CFG=UREL FINAL


I am running windows 7 64bit, S60 3rd Edition SDK for Symbian OS, Feature Pack 2, S60 Open C Cpp Plug in 1.6, libmad 0.15.1b, zlib 1.2.5,Tremor 1.0.2,SDL 1.2.12,scummvm 1.1.1

:roll:
Anotherguest
ScummVM Porter
Posts: 1423
Joined: Sun Oct 30, 2005 2:27 pm
Location: Malmoe, Sweden

Post by Anotherguest »

You need to patch the Symbian tools in order to link it, or just reduce the number of supported engines you build.. just to test that your build works. cl_eabi.pl(or what is named now again) in your tools folder.
Anotherguest
ScummVM Porter
Posts: 1423
Joined: Sun Oct 30, 2005 2:27 pm
Location: Malmoe, Sweden

Post by Anotherguest »

You also need a patched eexe lib, should be available somewhere on symbian support forums.
Anotherguest
ScummVM Porter
Posts: 1423
Joined: Sun Oct 30, 2005 2:27 pm
Location: Malmoe, Sweden

Post by Anotherguest »

What version of SDL are you using, my port or the official port by Hannu? The official symbian port (in the SDL repository) will not run all engines properly due to mutex problems.
muhul
Posts: 14
Joined: Wed May 12, 2010 3:16 am

Post by muhul »

Thanks Anotherguest

i used official SDL

change your release :)

I will try it

sorry my bad english XD
muhul
Posts: 14
Joined: Wed May 12, 2010 3:16 am

Post by muhul »

I have Question Anotherguest

where is eexe lib patch?

i search symbian forum but dead link :shock:

where is patch??
Anotherguest
ScummVM Porter
Posts: 1423
Joined: Sun Oct 30, 2005 2:27 pm
Location: Malmoe, Sweden

Post by Anotherguest »

It was posted here before:

http://developer.symbian.com/forum/m...ID=68807#68807

I guess they have a copy somewhere
muhul
Posts: 14
Joined: Wed May 12, 2010 3:16 am

Post by muhul »

thanks Anotherguest

I solved problem eexe.lib

but another error

make -s -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\scummvm-1.1.1\backends\platform\symbian\S60v3\SCUMMVM_A0000658_S60V3\GCCE\SCUMMVM_A0000658_S60V3.GCCE" UREL
arm-none-symbianelf-ld: section .text [00008000 -> 008068eb] overlaps section .data [00400000 -> 00448a2f]
arm-none-symbianelf-ld: section .bss [00448a30 -> 005718ff] overlaps section .text [00008000 -> 008068eb]
arm-none-symbianelf-ld: \S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\scummvm-1.1.1\backends\platform\symbian\S60v3\SCUMMVM_A0000658_S60V3\GCCE\urel\ScummVM_A0000658.exe: section .data lma 0x400000 overlaps previous sections
make.exe: *** [\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\GCCE\urel\ScummVM_A0000658.exe] Error 1

what's wrong?
jvprat
ScummVM Developer
Posts: 76
Joined: Mon Oct 30, 2006 9:10 pm

Post by jvprat »

Anotherguest: it would be nice if you could fill the Symbian compilation wiki page with these instructions: http://wiki.scummvm.org/index.php/Compi ... VM/Symbian
Anotherguest
ScummVM Porter
Posts: 1423
Joined: Sun Oct 30, 2005 2:27 pm
Location: Malmoe, Sweden

Post by Anotherguest »

Ahh yes.. should update that to be inline with the other ports. You need to patch the cl_eabi.pl with offset 0xf00000 to build all engines. Or reduce the number of engines supported.
muhul
Posts: 14
Joined: Wed May 12, 2010 3:16 am

Post by muhul »

thanks reply Anotherguest

i change eexe.lib(http://81.91.109.109/forum/message.jspa ... 8807#68807)

I solved Problem :lol:

I changed cl_bpabi.pm
"\$(CODE_SEGMENT_START) ", "\$(DATA_SEGMENT_START) 0x400000 ", "\$(SYMVER_OPTION) ","\$(SO_NAME_OPTION) ","$LinkAs"
http://www.forum.nokia.com/forum/showthread.php?t=78235

thanks advice Anotherguest :D
fedor
Posts: 30
Joined: Sat Oct 12, 2013 11:32 am

Post by fedor »

Hi, I try to build scummvm with Neverhood Support. I can't compile libmad and libtremor.lib because assembler code written for arm4 processor. How solve this problem? I'm using GCCE 4.6.3, SDL 1.2.14 Anotherguest version with codewarrior 2.7 and S60_5th_Edition_SDK_v1.0
fedor
Posts: 30
Joined: Sat Oct 12, 2013 11:32 am

Post by fedor »

Demo Neverhood works fine. I builded libtremor.lib but can't libmad.
fedor
Posts: 30
Joined: Sat Oct 12, 2013 11:32 am

Post by fedor »

Compiled libmad. Try to compile engines of Neverhood and Flight of Amazon Queen with mp3 support, get error :
\Symbian\S60_5th_Edition_SDK_v1.0\epoc32\release\ARMV5\urel\scummvm_queen.lib(sound.o): In function `Queen::MP3Sound::playSoundData(Common::File*, unsigned long, Audio::SoundHandle*)':
sound.cpp:(.text._ZN5Queen8MP3Sound13playSoundDataEPN6Common4FileEmPN5Audio11SoundHandleE[_ZN5Queen8MP3Sound13playSoundDataEPN6Common4FileEmPN5Audio11SoundHandleE]+0x40): undefined reference to `Audio::makeMP3Stream(Common::SeekableReadStream*, DisposeAfterUse::Flag)'
mad.h are in epoc32/include and libmad.lib are in \epoc32\release\armv5\urel.
In file
D:\Symbian\Projects\SDL\scummvm\engines\queen\sounds.cpp
in class declaration MP3Sound Carbide grayed playStream and AudioStreamWrapper. In OGGSound all looks fine. Build with ogg vorbis only succesful.
fedor
Posts: 30
Joined: Sat Oct 12, 2013 11:32 am

Post by fedor »

Flight of Amazon Queen with FLAC, VORBIS and MP3 works. Patched cl_eabi.pl doesn't solves arm-none-symbianelf-ld: section .data loaded at [00a00000,00a1617b] overlaps section .text loaded at [00008000,01101d57]

And have this errors :
files/codesourcery/sourcery_codebench_lite_for_arm_symbianos/bin/../lib/gcc/arm-none-symbianelf/4.6.3/../../../../arm-none-symbianelf/lib\libsupc++.a(eh_personality.o): In function `base_of_encoded_value(unsigned char, _Unwind_Context*)':
eh_personality.cc:(.text._ZL21base_of_encoded_valuehP15_Unwind_Context+0x5c): undefined reference to `_Unwind_GetDataRelBase'
eh_personality.cc:(.text._ZL21base_of_encoded_valuehP15_Unwind_Context+0x68): undefined reference to `_Unwind_GetRegionStart'
eh_personality.cc:(.text._ZL21base_of_encoded_valuehP15_Unwind_Context+0x74): undefined reference to `_Unwind_GetTextRelBase'
d:/program files/codesourcery/sourcery_codebench_lite_for_arm_symbianos/bin/../lib/gcc/arm-none-symbianelf/4.6.3/../../../../arm-none-symbianelf/lib\libsupc++.a(eh_personality.o): In function `_ZL17parse_lsda_headerP15_Unwind_ContextPKhP16lsda_header_info.constprop.1':
eh_personality.cc:(.text._ZL17parse_lsda_headerP15_Unwind_ContextPKhP16lsda_header_info.constprop.1+0x18): undefined reference to `_Unwind_GetRegionStart'
d:/program files/codesourcery/sourcery_codebench_lite_for_arm_symbianos/bin/../lib/gcc/arm-none-symbianelf/4.6.3/../../../../arm-none-symbianelf/lib\libsupc++.a(eh_personality.o): In function `__gxx_personality_v0':
eh_personality.cc:(.text.__gxx_personality_v0+0x5c): undefined reference to `_Unwind_GetLanguageSpecificData'
eh_personality.cc:(.text.__gxx_personality_v0+0x1e0): undefined reference to `__gnu_unwind_frame'
eh_personality.cc:(.text.__gxx_personality_v0+0x224): undefined reference to `_Unwind_GetLanguageSpecificData'
arm-none-symbianelf-ld: \Symbian\S60_5th_Edition_SDK_v1.0\epoc32\release\ARMV5\urel\EEXE.LIB(uc_exe_.o)(.text+0x2): unresolvable R_ARM_THM_CALL relocation against symbol `_ZN4User9InvariantEv@@euser{000a0000}[100039e5].dll'
Post Reply