GSOC POSIX Compliance: Stuck trying to build Newlib

Matthew Joyce mfjoyce2004 at gmail.com
Wed Jun 16 16:37:39 UTC 2021


I hate to ask, but where should the build binaries be if "make all"
was actually successful?

Thanks!

Matt

On Wed, Jun 16, 2021 at 6:16 PM Eshan Dhawan <eshandhawan51 at gmail.com> wrote:
>
> Hi Matt,
> > On 16-Jun-2021, at 9:27 PM, Matthew Joyce <mfjoyce2004 at gmail.com> wrote:
> >
> > Hi Dr. Joel,
> >
> > I tried that in newlib/libc and there were at least no errors.
> > (Nothing leading me to believe it was successful either!)
> >
> > However I still got the same error when I sudo make install.
> > (sparc-rtems-ranlib: command not found) (among others!)
> >
> I make works then there is no need to run make install it just copies the build binaries to the root folders.
>
> If make is build with the changes u made and the symbols that you added appear in the binaries you generated.
> Then congratulations :)
> Now you just need to test those changes in the RSB to test they don’t break anything in the RTEMS ecosystem.
> > Thanks again!
> >
> > Sincerely,
> >
> > Matt
> >
> >
> >
> >> On Wed, Jun 16, 2021 at 3:06 PM Joel Sherrill <joel at rtems.org> wrote:
> >>
> >> Does adding --no-recursive and running it only from the directory you touched a build system file in help?
> >>
> >> It is regenerating a lot you don't want to touch anyway.
> >>
> >> --joel
> >>
> >>> On Wed, Jun 16, 2021, 5:32 AM Matthew Joyce <mfjoyce2004 at gmail.com> wrote:
> >>>
> >>> Hi Eshan,
> >>>
> >>> Thanks very much for your follow up! Ok, I see now that if I go into
> >>> development/newlib/newlib-cygwin/newlib and run autoreconf -fvi with
> >>> the v2.69 using the PATH that Dr. Joel just showed, it starts to run.
> >>> It always eventually exits with an error though. (please see attached
> >>> .txt). I hope you can read that...I used the command "script" to
> >>> output everything to a text file.
> >>>
> >>> Do you have any idea where I might be going wrong?
> >>>
> >>> Thank you!
> >>>
> >>> Sincerely,
> >>>
> >>> Matt
> >>>
> >>> On Tue, Jun 15, 2021 at 8:23 PM Eshan Dhawan <eshandhawan51 at gmail.com> wrote:
> >>>>
> >>>> Hi matt
> >>>> It would work if run inside newlib instead of newlib-cygwin
> >>>> run command inside of ../newlib-cygwin/newlib
> >>>> instead of ../newlib-cygwin
> >>>>
> >>>>
> >>>> On Tue, Jun 15, 2021 at 10:59 PM Matthew Joyce <mfjoyce2004 at gmail.com> wrote:
> >>>>>
> >>>>> Ah, ok will do! Thank you for the tip.
> >>>>>
> >>>>> On Tue, Jun 15, 2021 at 7:17 PM Gedare Bloom <gedare at rtems.org> wrote:
> >>>>>>
> >>>>>> Just a note, it's more efficient to capture your terminal dump into a
> >>>>>> text file and attach that, rather than put a screenshot up.
> >>>>>>
> >>>>>> On Tue, Jun 15, 2021 at 11:14 AM Matthew Joyce <mfjoyce2004 at gmail.com> wrote:
> >>>>>>>
> >>>>>>> Hi Gentlemen,
> >>>>>>>
> >>>>>>> Thanks very much for your quick replies!
> >>>>>>>
> >>>>>>> I just tried both, but perhaps I'm misinterpreting your suggestions.
> >>>>>>> (Could you please see the attached commands / errors!)
> >>>>>>>
> >>>>>>> Eshan,
> >>>>>>>
> >>>>>>> I did see that link, but it wasn't clear to me what the solution was...Sorry!
> >>>>>>>
> >>>>>>> Sincerely,
> >>>>>>>
> >>>>>>> Matt
> >>>>>>>
> >>>>>>> On Tue, Jun 15, 2021 at 6:52 PM Eshan Dhawan <eshandhawan51 at gmail.com> wrote:
> >>>>>>>>
> >>>>>>>> Hi Matt,
> >>>>>>>> Try running the command with autoconf version 2.69 that's shipped with RTEMS in the rtems bin
> >>>>>>>> That works as well.
> >>>>>>>>
> >>>>>>>> Also From a quick google search this is what I found : https://superuser.com/questions/617872/cant-locate-autom4te-channeldefs-pm-in-inc-when-it-definitely-is-there
> >>>>>>>>
> >>>>>>>> On Tue, Jun 15, 2021 at 9:12 PM Matthew Joyce <mfjoyce2004 at gmail.com> wrote:
> >>>>>>>>>
> >>>>>>>>> Hello Dr. Joel and Eshan,
> >>>>>>>>>
> >>>>>>>>> I have a patch ready to send to Newlib for the sig function prototypes
> >>>>>>>>> and STR2SIG_MAX.
> >>>>>>>>>
> >>>>>>>>> But to do that, I think I need to have Newlib built, which I must
> >>>>>>>>> still be doing wrong. The error that I am getting is attached below.
> >>>>>>>>>
> >>>>>>>>> I’ve been trying to follow the steps here:
> >>>>>>>>> https://medium.com/my-gsoc-2019-journey/apply-newlib-patch-to-rtems-source-builder-6873b0fb31b8
> >>>>>>>>> and https://medium.com/my-gsoc-2019-journey/build-newlib-for-sparc-and-arm-architecture-6b3287d4c6f2
> >>>>>>>>>
> >>>>>>>>> I even had rebuilt everything from scratch to see if that would help,
> >>>>>>>>> but I still get the same error. Maybe I cloned the newlib source into
> >>>>>>>>> the wrong directory?
> >>>>>>>>>
> >>>>>>>>> I was hoping to get the patch off to Newlib for review as a first step
> >>>>>>>>> while I work on writing the actual methods. When you get a moment,
> >>>>>>>>> could you please advise? Thank you very much!
> >>>>>>>>>
> >>>>>>>>> Sincerely,
> >>>>>>>>>
> >>>>>>>>> Matt
> >>>>>>> _______________________________________________
> >>>>>>> devel mailing list
> >>>>>>> devel at rtems.org
> >>>>>>> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list