<p dir="ltr"><br>
On Aug 29, 2014 10:10 PM, "Joel Sherrill" <<a href="mailto:joel.sherrill@oarcorp.com">joel.sherrill@oarcorp.com</a>> wrote:<br>
><br>
><br>
> On 8/29/2014 2:24 PM, Hesham Moustafa wrote:<br>
> > On Fri, Aug 29, 2014 at 9:19 PM, Joel Sherrill<br>
> > <<a href="mailto:joel.sherrill@oarcorp.com">joel.sherrill@oarcorp.com</a>> wrote:<br>
> >> Hi<br>
> >><br>
> >> I think something isn't quite right. I don't know if gcc isn't including<br>
> >> these or the bsp_specs isn't picking them up. It is a long holiday weekend<br>
> >> and I just wanted to throw this out since I don't have time to investigate.<br>
> >><br>
> >> or1k-rtems4.11-gcc -B../../../../../or1ksim/lib/ -specs bsp_specs<br>
> >> -qrtems -O2 -O0 -g -Wall -Wmissing-prototypes<br>
> >> -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs<br>
> >> -O2 -o nsecs.exe init.o empty.o<br>
> >> ../../../../../or1ksim/lib/librtemscpu.a(libscore_a-threadhandler.o): In<br>
> >> function `_Thread_Handler':<br>
> >> /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:<br>
> >> undefined reference to `_init'<br>
> >> ../../../../../or1ksim/lib/librtemscpu.a(libcsupport_a-newlibc_exit.o):<br>
> >> In function `_exit':<br>
> >> /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:<br>
> >> undefined reference to `_fini'<br>
> >> collect2: error: ld returned 1 exit status<br>
> >><br>
> > What's the configure line you used to build? I used to --disable-posix<br>
> > and --disable-itron to avoid some of building errors.<br>
> ITRON is no longer in the tree so that doesn't matter at all. :)<br>
><br>
> POSIX was on. With it off, I get the same.<br>
><br>
> I built a new toolset with the RSB just in case and got the same result.<br>
><br>
> It is a long holiday weekend here. Heading out and not sure what is<br>
> broken. Usually this indicates an issue with the linkcmds or<br>
> the bsp_specs. But if it works for you, then it must be something<br>
> else or all changes are not submitted.<br>
><br>
> Are your tools "fresh"?<br>
><br>
There is no problem with RTEMS because I use the RTEMS git repo and not mine.<br>
I believe my tools are fresh, but I will build it again now and report the results.<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>
> 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>
</p>