problem while trying converting c program from rtems4 to rtems5

Gedare Bloom gedare at rtems.org
Sun Jan 3 17:06:57 UTC 2021


On Sun, Jan 3, 2021 at 10:04 AM Gedare Bloom <gedare at rtems.org> wrote:

> Hi Rotem,
>
> We have started to try to capture information to help make migration
> easier. See
> https://ftp.rtems.org/pub/rtems/releases/5/5.1/docs/html/user/migration/v4_11-to-v5.html
> for the migration from 4.11 to 5. That may help you some.
>
> In addition, the configuration options are documented at
> https://ftp.rtems.org/pub/rtems/releases/5/5.1/docs/html/c-user/config/index.html
>
> Usually, you should check your configuration when migrating and also look
> for deprecated/obsolete APIs in use. (And, if you broke the API visibility
> somehow, you may need to fix that on your end. Some users like to "peek
> under the sheets" to see what is going on in RTEMS source, and then make
> application code that is implementation-dependent. This is not recommended
> in general.)
>
> In your specific case, you should check out
> https://ftp.rtems.org/pub/rtems/releases/5/5.1/docs/html/c-user/config/general.html#configure-unified-work-areas
> maybe as a start
>
> Gedare
>
> On Sun, Jan 3, 2021 at 5:21 AM Rotem Dror MTH <rodror at iai.co.il> wrote:
>
>>
>>
>> Hello,
>>
>>
>>
>> We have an old program (written in c language) running on RTEM 4.10
>>
>> we are trying to run this program with new environment – RTEM5 with gcc
>> v10.2.0.
>>
>> we also updated the linkcmds file according to linkcmds.base
>>
>>
>>
>> we have done compellation and loading grmon3 successfully.
>>
>>
>>
>> When we start to debug/run the program we get an error in file
>> malloc_initialize.c, line 79: "INTERNAL ERROR NO MEMORY FOR HEAP"
>>
>> We understand (from guide file named: c-user.pdf) that the problem should
>> be because of configuration error.
>>
>> Please let us know, where (or how) can we update this configuration? Or
>> maybe this problem caused by a different cause?
>>
>>
>>
>
PS: your configuration options should be part of your application code.
Whatever is not specified by you will be defaulted as documented.


> If we proceed and skip this error, we stopped on bus error according to
>> file userextiterate.c line 192: iter.previous  pointed to 0x0 address.
>>
>>
>>
>> Best Regards
>>
>> Rotem
>>
>>
>>
>>
>>
>>
>> *********************************************************************************************** Please consider the environment before printing this email ! The information contained in this communication is proprietary to Israel Aerospace Industries Ltd. and/or third parties, may contain confidential or privileged information, and is intended only for the use of the intended addressee thereof. If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. Thank you. Visit us at: www.iai.co.il
>>
>>
>> _______________________________________________
>> users mailing list
>> users at rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20210103/dd55d640/attachment-0001.html>


More information about the users mailing list