[Scummvm-tracker] [ScummVM :: Bugs] #13090: Build failure due ItemLocation array declaration
ScummVM :: Bugs
trac at scummvm.org
Mon Dec 6 07:11:28 UTC 2021
#13090: Build failure due ItemLocation array declaration
-----------------------------+---------------------------------------------
Reporter: fedor4ever | Owner: sev-
Type: defect | Status: new
Priority: normal | Component: Engine: Ultima
Version: | Resolution:
Keywords: Symbian, build | Game: Ultima IV: Quest of the Avatar
error |
-----------------------------+---------------------------------------------
Changes (by fedor4ever):
* status: closed => new
* resolution: invalid =>
Old description:
> 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.
New description:
I look for initialization pointer to member and found nothing. This is bad
code that violate C++ standart if there no initialization -
https://isocpp.org/wiki/faq/pointers-to-members
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#comment:4>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list