or1ksim fails to build

Hesham Moustafa heshamelmatary at gmail.com
Fri Aug 29 21:36:59 UTC 2014


On Fri, Aug 29, 2014 at 11:33 PM, Joel Sherrill
<joel.sherrill at oarcorp.com> wrote:
> I will try to get to this soon. But it is a holiday weekend and tomorrow is my wife's birthday so I have priorities :)
>
Happy birthday to her :) I will try building on Ubuntu too which
almost does not know anything about this RTEMS/or1k stuff. Hopefully
someone may try to build and report results.
> --Joel
>
> On August 29, 2014 4:32:05 PM CDT, Hesham Moustafa <heshamelmatary at gmail.com> wrote:
>>I have removed the entire or1k-rtems4.11-* and built a vanilla
>>toolchain from latest RSB. Then I cloned latest RTEMS from the git
>>HEAD, configured and built it, and I did not come across this error.
>>MY configure line is:
>>~/rtems/configure --target=or1k-rtems4.11 --enable-rtemsbsp=or1ksim
>>--enable-networking --enable-tests
>>
>>
>>On Fri, Aug 29, 2014 at 10:15 PM, Hesham Moustafa
>><heshamelmatary at gmail.com> wrote:
>>>
>>> On Aug 29, 2014 10:10 PM, "Joel Sherrill" <joel.sherrill at oarcorp.com>
>>wrote:
>>>>
>>>>
>>>> On 8/29/2014 2:24 PM, Hesham Moustafa wrote:
>>>> > On Fri, Aug 29, 2014 at 9:19 PM, Joel Sherrill
>>>> > <joel.sherrill at oarcorp.com> wrote:
>>>> >> Hi
>>>> >>
>>>> >> I think something isn't quite right.  I don't know if gcc isn't
>>>> >> including
>>>> >> these or the bsp_specs isn't picking them up. It is a long
>>holiday
>>>> >> weekend
>>>> >> and I just wanted to throw this out since I don't have time to
>>>> >> investigate.
>>>> >>
>>>> >> or1k-rtems4.11-gcc -B../../../../../or1ksim/lib/ -specs bsp_specs
>>>> >> -qrtems -O2 -O0 -g -Wall -Wmissing-prototypes
>>>> >> -Wimplicit-function-declaration -Wstrict-prototypes
>>-Wnested-externs
>>>> >> -O2   -o nsecs.exe init.o empty.o
>>>> >>
>>../../../../../or1ksim/lib/librtemscpu.a(libscore_a-threadhandler.o):
>>>> >> In
>>>> >> function `_Thread_Handler':
>>>> >>
>>>> >>
>>/users/joel/rtems-4.11-work/rtems-testing/rtems/build-or1k-or1ksim-rtems/or1k-rtems4.11/c/or1ksim/cpukit/score/../../../../../../rtems/c/src/../../cpukit/score/src/threadhandler.c:181:
>>>> >> undefined reference to `_init'
>>>> >>
>>../../../../../or1ksim/lib/librtemscpu.a(libcsupport_a-newlibc_exit.o):
>>>> >> In function `_exit':
>>>> >>
>>>> >>
>>/users/joel/rtems-4.11-work/rtems-testing/rtems/build-or1k-or1ksim-rtems/or1k-rtems4.11/c/or1ksim/cpukit/libcsupport/../../../../../../rtems/c/src/../../cpukit/libcsupport/src/newlibc_exit.c:43:
>>>> >> undefined reference to `_fini'
>>>> >> collect2: error: ld returned 1 exit status
>>>> >>
>>>> > What's the configure line you used to build? I used to
>>--disable-posix
>>>> > and --disable-itron to avoid some of building errors.
>>>> ITRON is no longer in the tree so that doesn't matter at all. :)
>>>>
>>>> POSIX was on. With it off, I get the same.
>>>>
>>>> I built a new toolset with the RSB just in case and got the same
>>result.
>>>>
>>>> It is a long holiday weekend here. Heading out and not sure what is
>>>> broken. Usually this indicates an issue with the linkcmds or
>>>> the bsp_specs. But if it works for you, then it must be something
>>>> else or all changes are not submitted.
>>>>
>>>> Are your tools "fresh"?
>>>>
>>> There is no problem with RTEMS because I use the RTEMS git repo and
>>not
>>> mine.
>>> I believe my tools are fresh, but I will build it again now and
>>report the
>>> results.
>>>
>>>>
>>>> >> --
>>>> >> 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
>>>> >>
>>>>
>>>> --
>>>> 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
>>>>
>



More information about the devel mailing list