<p dir="ltr">Hi,</p>
<p dir="ltr">I don't know why you are getting this error. Are you sure you're using my repo? And have you run bootstrap -p and bootstrap? </p>
<div class="gmail_quote">On Sep 18, 2015 10:34 AM, "TUAZ TORCHON, Dimitri" <<a href="mailto:dimitri.tuaztorchon@airbus.com">dimitri.tuaztorchon@airbus.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Indeed, using RSB is more simple ! I configured it with option "--without-rtems" because I want to compile the version with the microblaze bsp.<br>
But when compiling rtems-microblaze (with configuration line  --target=microblaze-rtems4.11  --disable-networking --disable-posix --disable-cxx --enable-rtemsbsp=microblaze_fpga --prefix=$HOME/rtems), I got an error :<br>
<br>
../../../../../microblaze_fpga/lib/librtemscpu.a(libcsupport_a-cachealignedalloc.o): In function `rtems_cache_aligned_malloc':<br>
/projets/1007/stage/rtos/b-rtems/microblaze-rtems4.11/c/microblaze_fpga/cpukit/libcsupport/../../../../../../rtems-microblaze/c/src/../../cpukit/libcsupport/src/cachealignedalloc.c:18: undefined reference to `rtems_cache_get_data_line_size'<br>
collect2: error: ld returned 1 exit status<br>
<br>
I checked cachealignedalloc.c, and this .c file include <rtems.h>, which include <rtems.h/cache.h> in which there is a declaration of rtems_cache_get_data_line_size. So I think the error occurs during the linking (and one line above, we see that ld returned exit status.)<br>
<br>
In order to see if the linker works, I tried  to create an executable with a simple .c file, and I got this warning :<br>
"$HOME/development/rtems/4.11/lib/gcc/microblaze-rtems4.11/4.9.3/../../../../microblaze-rtems4.11/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000000050"<br>
<br>
Does this mean that the linker can't find the linker script ? Yet, the source builder did not pick up any error...<br>
<br>
Thanks for your help<br>
<br>
-----Original Message-----<br>
From: Hesham ALMatary [mailto:<a href="mailto:heshamelmatary@gmail.com">heshamelmatary@gmail.com</a>]<br>
Sent: Wednesday, September 16, 2015 11:03 AM<br>
To: TUAZ TORCHON, Dimitri<br>
Cc: <a href="mailto:users@rtems.org">users@rtems.org</a><br>
Subject: Re: Difficulties building RTEMS<br>
<br>
On Wed, Sep 16, 2015 at 9:54 AM, TUAZ TORCHON, Dimitri<br>
<<a href="mailto:dimitri.tuaztorchon@airbus.com">dimitri.tuaztorchon@airbus.com</a>> wrote:<br>
> I followed the guide "Getting started with RTEMS". But I've found a solution : I introduced the "creat()" in libgloss. And then I figured out than other functions were missing to (opendir, closed, readdir,...)<br>
><br>
You should use RTEMS Source Builder (RSB) [1] to install the<br>
MicroBlaze toolchain for RTEMS (if you haven't already). RTEMS is not<br>
using any libgloss stuff.<br>
<br>
[1] <a href="https://docs.rtems.org/rsb/" rel="noreferrer" target="_blank">https://docs.rtems.org/rsb/</a><br>
> -----Original Message-----<br>
> From: Hesham ALMatary [mailto:<a href="mailto:heshamelmatary@gmail.com">heshamelmatary@gmail.com</a>]<br>
> Sent: Wednesday, September 16, 2015 10:43 AM<br>
> To: TUAZ TORCHON, Dimitri<br>
> Cc: <a href="mailto:users@rtems.org">users@rtems.org</a><br>
> Subject: Re: Difficulties building RTEMS<br>
><br>
> On Tue, Sep 15, 2015 at 9:09 AM, TUAZ TORCHON, Dimitri<br>
> <<a href="mailto:dimitri.tuaztorchon@airbus.com">dimitri.tuaztorchon@airbus.com</a>> wrote:<br>
>> Hi,<br>
>><br>
>> It's the configuration options I use, but when I make "make all", I still have the error :<br>
>><br>
>> "checking for creat... no<br>
>> configure: error: Missing function creat in libc<br>
>> configure: error: /bin/sh '../../../../../rtems-microblaze/c/src/../../cpukit/configure' failed for ../../cpukit<br>
>> gmake[2]: *** [microblaze_fpga] Error 1"<br>
>><br>
> How did you install the toolchain?<br>
><br>
>> And indeed, when I check into libc, there is no function creat. I figured out that it is an obsolete function now.<br>
>><br>
>> -----Original Message-----<br>
>> From: Hesham ALMatary [mailto:<a href="mailto:heshamelmatary@gmail.com">heshamelmatary@gmail.com</a>]<br>
>> Sent: Friday, September 11, 2015 5:01 PM<br>
>> To: Joel Sherrill<br>
>> Cc: TUAZ TORCHON, Dimitri; <a href="mailto:users@rtems.org">users@rtems.org</a><br>
>> Subject: Re: Difficulties building RTEMS<br>
>><br>
>> On Fri, Sep 11, 2015 at 3:52 PM, Joel Sherrill<br>
>> <<a href="mailto:joel.sherrill@oarcorp.com">joel.sherrill@oarcorp.com</a>> wrote:<br>
>>><br>
>>><br>
>>> On 9/11/2015 9:38 AM, Hesham ALMatary wrote:<br>
>>>><br>
>>>> On Fri, Sep 11, 2015 at 2:51 PM, TUAZ TORCHON, Dimitri<br>
>>>> <<a href="mailto:dimitri.tuaztorchon@airbus.com">dimitri.tuaztorchon@airbus.com</a>> wrote:<br>
>>>>><br>
>>>>><br>
>>>>> Hi,<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> I’m using your repository, and I get the error I described.<br>
>>>>> So it is not possible to run complex RTEMS applications on a Microblaze ?<br>
>>>>> I have to use a Spartan6 card.<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>><br>
>>>> What configuration options do you use? This is a simple configuration<br>
>>>> line the should work: "--target=rtems-microblaze<br>
>>>> --enable-rtemsbsp=microblaze_fdga  --disable-networking<br>
>>>> --disable-posix"<br>
>>><br>
>>><br>
>>> I suspect that the argument for the target should be:<br>
>>><br>
>> Yeah sorry my bad.<br>
>><br>
>>> --target=microblaze-rtems4.11<br>
>>><br>
>>>> I am afraid only hello world sample would work. UART is the only BSP<br>
>>>> driver out there for this BSP currently. I got Hello World running on<br>
>>>> Atlys (Spartan 6) board.<br>
>>><br>
>>><br>
>>> We need to discuss if this is far enough along to merge again now that<br>
>>> we are past a branch. I recall some odd code issues with the vendor HAL<br>
>>> and not running on a simulator at all. But that is a dusty memory.<br>
>>><br>
>> I didn't run it on the simulator at all, instead I worked directory<br>
>> with the FPGA. I can see that there's some interest on this port,<br>
>> which is a good motivation to work on upstreaming it. I'll try to<br>
>> clean-up the code and send initial patches, but there're no timing<br>
>> guarantees since I'm pretty busy with school and moving out stuff.<br>
>><br>
>>><br>
>>>>><br>
>>>>> Thanks for your answer,<br>
>>>>><br>
>>>>> Dimitri<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> From: Hesham ALMatary [mailto:<a href="mailto:heshamelmatary@gmail.com">heshamelmatary@gmail.com</a>]<br>
>>>>> Sent: Friday, September 11, 2015 3:41 PM<br>
>>>>> To: TUAZ TORCHON, Dimitri<br>
>>>>> Cc: <a href="mailto:users@rtems.org">users@rtems.org</a><br>
>>>>> Subject: Re: Difficulties building RTEMS<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> Hi,<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> What repos are you using to build RTEMS for microblaze? FYI, there's no<br>
>>>>> microblaze port in RTEMS/upstream. I've worked on an initial port for it,<br>
>>>>> you can find it here [1]. It just runs Hello World sample.<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> [1] <a href="https://github.com/heshamelmatary/rtems-microblaze" rel="noreferrer" target="_blank">https://github.com/heshamelmatary/rtems-microblaze</a><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> Thanks,<br>
>>>>><br>
>>>>> Hesham<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> On Fri, Sep 11, 2015 at 11:04 AM, TUAZ TORCHON, Dimitri<br>
>>>>> <<a href="mailto:dimitri.tuaztorchon@airbus.com">dimitri.tuaztorchon@airbus.com</a>> wrote:<br>
>>>>><br>
>>>>> Hi,<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> I’m trying to build RTEMS for a Microblaze target, but I have troubles.<br>
>>>>> Indeed, the compiler tries to seek “creat()” function in libc, but this<br>
>>>>> function is not in libc.<br>
>>>>> So it generate an error, and I don’t know how I can fix it….<br>
>>>>><br>
>>>>> Thanks a lot,<br>
>>>>><br>
>>>>> Dimtiri Tuaz<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> ***************************************************************<br>
>>>>><br>
>>>>> Ce courriel (incluant ses eventuelles pieces jointes) peut contenir des<br>
>>>>> informations confidentielles et/ou protegees ou dont la diffusion est<br>
>>>>> restreinte. Si vous avez recu ce courriel par erreur, vous ne devez ni le<br>
>>>>> copier, ni l'utiliser, ni en divulguer le contenu a quiconque. Merci d'en<br>
>>>>> avertir immediatement l'expediteur et d'effacer ce courriel de votre<br>
>>>>> systeme. Airbus Defence and Space et les sociétés Airbus Group declinent<br>
>>>>> toute responsabilite en cas de corruption par virus, d'alteration ou de<br>
>>>>> falsification de ce courriel lors de sa transmission par voie electronique.<br>
>>>>><br>
>>>>> This email (including any attachments) may contain confidential and/or<br>
>>>>> privileged information or information otherwise protected from disclosure.<br>
>>>>> If you are not the intended recipient, please notify the sender immediately,<br>
>>>>> do not copy this message or any attachments and do not use it for any<br>
>>>>> purpose or disclose its content to any person, but delete this message and<br>
>>>>> any attachments from your system. Airbus Defence and Space and Airbus Group<br>
>>>>> companies disclaim any and all liability if this email transmission was<br>
>>>>> virus corrupted, altered or falsified.<br>
>>>>><br>
>>>>> ---------------------------------------------------------------------<br>
>>>>><br>
>>>>> Airbus Defence and Space SAS (393 341 516 RCS Versailles) - Capital:<br>
>>>>> 16.587.728 EUR - Siege social: 51-61 Route de Verneuil, 78130 Les Mureaux,<br>
>>>>> France<br>
>>>>><br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> users mailing list<br>
>>>>> <a href="mailto:users@rtems.org">users@rtems.org</a><br>
>>>>> <a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>><br>
>>>>> Hesham<br>
>>>>><br>
>>>>> ***************************************************************<br>
>>>>> Ce courriel (incluant ses eventuelles pieces jointes) peut contenir des<br>
>>>>> informations confidentielles et/ou protegees ou dont la diffusion est<br>
>>>>> restreinte. Si vous avez recu ce courriel par erreur, vous ne devez ni le<br>
>>>>> copier, ni l'utiliser, ni en divulguer le contenu a quiconque. Merci d'en<br>
>>>>> avertir immediatement l'expediteur et d'effacer ce courriel de votre<br>
>>>>> systeme. Airbus Defence and Space et les sociétés Airbus Group declinent<br>
>>>>> toute responsabilite en cas de corruption par virus, d'alteration ou de<br>
>>>>> falsification de ce courriel lors de sa transmission par voie electronique.<br>
>>>>> This email (including any attachments) may contain confidential and/or<br>
>>>>> privileged information or information otherwise protected from disclosure.<br>
>>>>> If you are not the intended recipient, please notify the sender immediately,<br>
>>>>> do not copy this message or any attachments and do not use it for any<br>
>>>>> purpose or disclose its content to any person, but delete this message and<br>
>>>>> any attachments from your system. Airbus Defence and Space and Airbus Group<br>
>>>>> companies disclaim any and all liability if this email transmission was<br>
>>>>> virus corrupted, altered or falsified.<br>
>>>>> ---------------------------------------------------------------------<br>
>>>>> Airbus Defence and Space SAS (393 341 516 RCS Versailles) - Capital:<br>
>>>>> 16.587.728 EUR - Siege social: 51-61 Route de Verneuil, 78130 Les Mureaux,<br>
>>>>> France<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>><br>
>>> --<br>
>>> Joel Sherrill, Ph.D.             Director of Research & Development<br>
>>> joel.sherrill@OARcorp.com        On-Line Applications Research<br>
>>> Ask me about RTEMS: a free RTOS  Huntsville AL 35805<br>
>>> Support Available                (256) 722-9985<br>
>><br>
>><br>
>><br>
>> --<br>
>> Hesham<br>
>><br>
>> This mail has originated outside your organization, either from an external partner or the Global Internet.<br>
>> Keep this in mind if you answer this message.<br>
>><br>
>><br>
>><br>
>><br>
>> ***************************************************************<br>
>> Ce courriel (incluant ses eventuelles pieces jointes) peut contenir des informations confidentielles et/ou protegees ou dont la diffusion est restreinte. Si vous avez recu ce courriel par erreur, vous ne devez ni le copier, ni l'utiliser, ni en divulguer le contenu a quiconque. Merci d'en avertir immediatement l'expediteur et d'effacer ce courriel de votre systeme. Airbus Defence and Space et les sociétés Airbus Group declinent toute responsabilite en cas de corruption par virus, d'alteration ou de falsification de ce courriel lors de sa transmission par voie electronique.<br>
>> This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Airbus Defence and Space and Airbus Group companies disclaim any and all liability if this email transmission was virus corrupted, altered or falsified.<br>
>> ---------------------------------------------------------------------<br>
>> Airbus Defence and Space SAS (393 341 516 RCS Versailles) - Capital: 16.587.728 EUR - Siege social: 51-61 Route de Verneuil, 78130 Les Mureaux, France<br>
><br>
><br>
><br>
> --<br>
> Hesham<br>
><br>
> This mail has originated outside your organization, either from an external partner or the Global Internet.<br>
> Keep this in mind if you answer this message.<br>
><br>
><br>
><br>
><br>
> ***************************************************************<br>
> Ce courriel (incluant ses eventuelles pieces jointes) peut contenir des informations confidentielles et/ou protegees ou dont la diffusion est restreinte. Si vous avez recu ce courriel par erreur, vous ne devez ni le copier, ni l'utiliser, ni en divulguer le contenu a quiconque. Merci d'en avertir immediatement l'expediteur et d'effacer ce courriel de votre systeme. Airbus Defence and Space et les sociétés Airbus Group declinent toute responsabilite en cas de corruption par virus, d'alteration ou de falsification de ce courriel lors de sa transmission par voie electronique.<br>
> This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Airbus Defence and Space and Airbus Group companies disclaim any and all liability if this email transmission was virus corrupted, altered or falsified.<br>
> ---------------------------------------------------------------------<br>
> Airbus Defence and Space SAS (393 341 516 RCS Versailles) - Capital: 16.587.728 EUR - Siege social: 51-61 Route de Verneuil, 78130 Les Mureaux, France<br>
<br>
<br>
<br>
--<br>
Hesham<br>
<br>
This mail has originated outside your organization, either from an external partner or the Global Internet.<br>
Keep this in mind if you answer this message.<br>
<br>
<br>
<br>
<br>
***************************************************************<br>
Ce courriel (incluant ses eventuelles pieces jointes) peut contenir des informations confidentielles et/ou protegees ou dont la diffusion est restreinte. Si vous avez recu ce courriel par erreur, vous ne devez ni le copier, ni l'utiliser, ni en divulguer le contenu a quiconque. Merci d'en avertir immediatement l'expediteur et d'effacer ce courriel de votre systeme. Airbus Defence and Space et les sociétés Airbus Group declinent toute responsabilite en cas de corruption par virus, d'alteration ou de falsification de ce courriel lors de sa transmission par voie electronique.<br>
This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Airbus Defence and Space and Airbus Group companies disclaim any and all liability if this email transmission was virus corrupted, altered or falsified.<br>
---------------------------------------------------------------------<br>
Airbus Defence and Space SAS (393 341 516 RCS Versailles) - Capital: 16.587.728 EUR - Siege social: 51-61 Route de Verneuil, 78130 Les Mureaux, France</blockquote></div>