[Scummvm-tracker] [ScummVM :: Bugs] #13090: Build failure due ItemLocation array declaration
ScummVM :: Bugs
trac at scummvm.org
Sat Nov 20 18:12:48 UTC 2021
#13090: Build failure due ItemLocation array declaration
-------------------------------------------+-------------------------------
Reporter: fedor4ever | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: Ultima
Version: | Keywords: Symbian, build
Game: Ultima IV: Quest of the Avatar | error
-------------------------------------------+-------------------------------
I got error while building 2.5.0 release for Symbian:
{{{
elf2e32 : Error: E1066: Image failed validation
line 427
make[1]: ***
[\Symbian\S60_5th_Edition_SDK_v1.0\epoc32\release\gcce\urel\Neverhoode.exe]
Error 1
make: *** [TARGET] Error 2
}}}
I dig more deeper and found in
scummvm\engines\ultima\ultima4\game\item.cpp struct array declaration
ItemLocation Items::ITEMS[N_ITEMS]. Commentin it's body solve error.
After commented body I inserting several zero initialazers:
{{{
{ nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, 0, 0 }
}}}
Build success.
Uncomment one initialazer - build success.
Uncomment another initialazer - build error.
Inserting function pointer in several zero initialazers trigger build
error too.
--
Ticket URL: <https://bugs.scummvm.org/ticket/13090>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list