Difficulties building RTEMS

Hesham ALMatary heshamelmatary at gmail.com
Fri Sep 18 12:34:23 UTC 2015


Hi,

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?
On Sep 18, 2015 10:34 AM, "TUAZ TORCHON, Dimitri" <
dimitri.tuaztorchon at airbus.com> wrote:

> Hi,
>
> Indeed, using RSB is more simple ! I configured it with option
> "--without-rtems" because I want to compile the version with the microblaze
> bsp.
> 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 :
>
> ../../../../../microblaze_fpga/lib/librtemscpu.a(libcsupport_a-cachealignedalloc.o):
> In function `rtems_cache_aligned_malloc':
> /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'
> collect2: error: ld returned 1 exit status
>
> 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.)
>
> In order to see if the linker works, I tried  to create an executable with
> a simple .c file, and I got this warning :
> "$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"
>
> Does this mean that the linker can't find the linker script ? Yet, the
> source builder did not pick up any error...
>
> Thanks for your help
>
> -----Original Message-----
> From: Hesham ALMatary [mailto:heshamelmatary at gmail.com]
> Sent: Wednesday, September 16, 2015 11:03 AM
> To: TUAZ TORCHON, Dimitri
> Cc: users at rtems.org
> Subject: Re: Difficulties building RTEMS
>
> On Wed, Sep 16, 2015 at 9:54 AM, TUAZ TORCHON, Dimitri
> <dimitri.tuaztorchon at airbus.com> wrote:
> > 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,...)
> >
> You should use RTEMS Source Builder (RSB) [1] to install the
> MicroBlaze toolchain for RTEMS (if you haven't already). RTEMS is not
> using any libgloss stuff.
>
> [1] https://docs.rtems.org/rsb/
> > -----Original Message-----
> > From: Hesham ALMatary [mailto:heshamelmatary at gmail.com]
> > Sent: Wednesday, September 16, 2015 10:43 AM
> > To: TUAZ TORCHON, Dimitri
> > Cc: users at rtems.org
> > Subject: Re: Difficulties building RTEMS
> >
> > On Tue, Sep 15, 2015 at 9:09 AM, TUAZ TORCHON, Dimitri
> > <dimitri.tuaztorchon at airbus.com> wrote:
> >> Hi,
> >>
> >> It's the configuration options I use, but when I make "make all", I
> still have the error :
> >>
> >> "checking for creat... no
> >> configure: error: Missing function creat in libc
> >> configure: error: /bin/sh
> '../../../../../rtems-microblaze/c/src/../../cpukit/configure' failed for
> ../../cpukit
> >> gmake[2]: *** [microblaze_fpga] Error 1"
> >>
> > How did you install the toolchain?
> >
> >> And indeed, when I check into libc, there is no function creat. I
> figured out that it is an obsolete function now.
> >>
> >> -----Original Message-----
> >> From: Hesham ALMatary [mailto:heshamelmatary at gmail.com]
> >> Sent: Friday, September 11, 2015 5:01 PM
> >> To: Joel Sherrill
> >> Cc: TUAZ TORCHON, Dimitri; users at rtems.org
> >> Subject: Re: Difficulties building RTEMS
> >>
> >> On Fri, Sep 11, 2015 at 3:52 PM, Joel Sherrill
> >> <joel.sherrill at oarcorp.com> wrote:
> >>>
> >>>
> >>> On 9/11/2015 9:38 AM, Hesham ALMatary wrote:
> >>>>
> >>>> On Fri, Sep 11, 2015 at 2:51 PM, TUAZ TORCHON, Dimitri
> >>>> <dimitri.tuaztorchon at airbus.com> wrote:
> >>>>>
> >>>>>
> >>>>> Hi,
> >>>>>
> >>>>>
> >>>>>
> >>>>> I’m using your repository, and I get the error I described.
> >>>>> So it is not possible to run complex RTEMS applications on a
> Microblaze ?
> >>>>> I have to use a Spartan6 card.
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>> What configuration options do you use? This is a simple configuration
> >>>> line the should work: "--target=rtems-microblaze
> >>>> --enable-rtemsbsp=microblaze_fdga  --disable-networking
> >>>> --disable-posix"
> >>>
> >>>
> >>> I suspect that the argument for the target should be:
> >>>
> >> Yeah sorry my bad.
> >>
> >>> --target=microblaze-rtems4.11
> >>>
> >>>> I am afraid only hello world sample would work. UART is the only BSP
> >>>> driver out there for this BSP currently. I got Hello World running on
> >>>> Atlys (Spartan 6) board.
> >>>
> >>>
> >>> We need to discuss if this is far enough along to merge again now that
> >>> we are past a branch. I recall some odd code issues with the vendor HAL
> >>> and not running on a simulator at all. But that is a dusty memory.
> >>>
> >> I didn't run it on the simulator at all, instead I worked directory
> >> with the FPGA. I can see that there's some interest on this port,
> >> which is a good motivation to work on upstreaming it. I'll try to
> >> clean-up the code and send initial patches, but there're no timing
> >> guarantees since I'm pretty busy with school and moving out stuff.
> >>
> >>>
> >>>>>
> >>>>> Thanks for your answer,
> >>>>>
> >>>>> Dimitri
> >>>>>
> >>>>>
> >>>>>
> >>>>> From: Hesham ALMatary [mailto:heshamelmatary at gmail.com]
> >>>>> Sent: Friday, September 11, 2015 3:41 PM
> >>>>> To: TUAZ TORCHON, Dimitri
> >>>>> Cc: users at rtems.org
> >>>>> Subject: Re: Difficulties building RTEMS
> >>>>>
> >>>>>
> >>>>>
> >>>>> Hi,
> >>>>>
> >>>>>
> >>>>>
> >>>>> What repos are you using to build RTEMS for microblaze? FYI, there's
> no
> >>>>> microblaze port in RTEMS/upstream. I've worked on an initial port
> for it,
> >>>>> you can find it here [1]. It just runs Hello World sample.
> >>>>>
> >>>>>
> >>>>>
> >>>>> [1] https://github.com/heshamelmatary/rtems-microblaze
> >>>>>
> >>>>>
> >>>>>
> >>>>> Thanks,
> >>>>>
> >>>>> Hesham
> >>>>>
> >>>>>
> >>>>>
> >>>>> On Fri, Sep 11, 2015 at 11:04 AM, TUAZ TORCHON, Dimitri
> >>>>> <dimitri.tuaztorchon at airbus.com> wrote:
> >>>>>
> >>>>> Hi,
> >>>>>
> >>>>>
> >>>>>
> >>>>> I’m trying to build RTEMS for a Microblaze target, but I have
> troubles.
> >>>>> Indeed, the compiler tries to seek “creat()” function in libc, but
> this
> >>>>> function is not in libc.
> >>>>> So it generate an error, and I don’t know how I can fix it….
> >>>>>
> >>>>> Thanks a lot,
> >>>>>
> >>>>> Dimtiri Tuaz
> >>>>>
> >>>>>
> >>>>>
> >>>>> ***************************************************************
> >>>>>
> >>>>> 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.
> >>>>>
> >>>>> 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.
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>>
> >>>>> 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
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> users mailing list
> >>>>> users at rtems.org
> >>>>> http://lists.rtems.org/mailman/listinfo/users
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>>
> >>>>> Hesham
> >>>>>
> >>>>> ***************************************************************
> >>>>> 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.
> >>>>> 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.
> >>>>> ---------------------------------------------------------------------
> >>>>> 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
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>> --
> >>> Joel Sherrill, Ph.D.             Director of Research & Development
> >>> joel.sherrill at OARcorp.com        On-Line Applications Research
> >>> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> >>> Support Available                (256) 722-9985
> >>
> >>
> >>
> >> --
> >> Hesham
> >>
> >> This mail has originated outside your organization, either from an
> external partner or the Global Internet.
> >> Keep this in mind if you answer this message.
> >>
> >>
> >>
> >>
> >> ***************************************************************
> >> 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.
> >> 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.
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
> >
> > --
> > Hesham
> >
> > This mail has originated outside your organization, either from an
> external partner or the Global Internet.
> > Keep this in mind if you answer this message.
> >
> >
> >
> >
> > ***************************************************************
> > 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.
> > 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.
> > ---------------------------------------------------------------------
> > 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
>
>
>
> --
> Hesham
>
> This mail has originated outside your organization, either from an
> external partner or the Global Internet.
> Keep this in mind if you answer this message.
>
>
>
>
> ***************************************************************
> 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.
> 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.
> ---------------------------------------------------------------------
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20150918/2a438c26/attachment-0002.html>


More information about the users mailing list