Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-16 Thread Matthew Joyce
Ok, thanks! I'm about to sign off for dinner, but I'll send the patch (with disclaimer) tonight. So since the code fails to compile, I need to start making some changes. Do I need to rebuild the rtems tool chain each time? I'm averaging about 1.33 hours on that :-( . Is that where some of the

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-16 Thread Joel Sherrill
On Wed, Jun 16, 2021 at 11:37 AM Matthew Joyce wrote: > I hate to ask, but where should the build binaries be if "make all" > was actually successful? > For newlib, there should be various libc.a and libm.a files in the build directory. Use find to locate them: find . -name libc.a And use

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-16 Thread Matthew Joyce
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 wrote: > > Hi Matt, > > On 16-Jun-2021, at 9:27 PM, Matthew Joyce wrote: > > > > Hi Dr. Joel, > > > > I tried that in newlib/libc and there

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-16 Thread Joel Sherrill
On Wed, Jun 16, 2021 at 11:16 AM Eshan Dhawan wrote: > Hi Matt, > > On 16-Jun-2021, at 9:27 PM, Matthew Joyce 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

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-16 Thread Eshan Dhawan
Hi Matt, > On 16-Jun-2021, at 9:27 PM, Matthew Joyce 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:

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-16 Thread Matthew Joyce
Hi Dr. Joel, I used the following, based on Vaibhav's blog: $ export PATH=$HOME/development/rtems/6/bin:$PATH $ ../newlib-cygwin/configure --target=sparc-rtems6 --disable-shared --disable-nls --enable-werror --enable-newlib-supplied-syscalls --enable-interwork --enable-multilib --with-gnu-as

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-16 Thread Joel Sherrill
On Wed, Jun 16, 2021 at 10:57 AM Matthew Joyce 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

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-16 Thread Matthew Joyce
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!) Thanks again! Sincerely, Matt On Wed,

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-16 Thread Joel Sherrill
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 wrote: > Hi Eshan, > > Thanks very much for your follow up! Ok, I see now that

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-16 Thread Matthew Joyce
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

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-16 Thread Matthew Joyce
Hi Vaibhav, Thanks very much for your note! Fantastic job on your blogs. I read the entry on managing the two versions of autoconf and have been trying to follow it carefully. Could you please see the attached txt file? I'm in development/newlib/newlib-cygwin. I get the error where it tells me

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-15 Thread Vaibhav Gupta
Hello Matthew, On Wed, Jun 16, 2021 at 12:58 AM Joel Sherrill wrote: > > @RTEMS_TOOLS_BIN@ should have been replaced with the real directory where > your RTEMS tools are located. Something like this: Exactly. I was wondering the same when I saw his output of 'echo $PATH'. Matthew, the newlib

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-15 Thread Joel Sherrill
@RTEMS_TOOLS_BIN@ should have been replaced with the real directory where your RTEMS tools are located. Something like this: $ export PATH=${HOME}/rtems-work/tools/6/bin:$PATH And to check you have the PATH right, do something like this: $ type sparc-rtems6-gcc sparc-rtems6-gcc is

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-15 Thread Eshan Dhawan
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 wrote: > Ah, ok will do! Thank you for the tip. > > On Tue, Jun 15, 2021 at 7:17 PM Gedare Bloom wrote:

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-15 Thread Matthew Joyce
Ah, ok will do! Thank you for the tip. On Tue, Jun 15, 2021 at 7:17 PM Gedare Bloom 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 wrote: > > > > Hi

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-15 Thread Gedare Bloom
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 wrote: > > Hi Gentlemen, > > Thanks very much for your quick replies! > > I just tried both, but perhaps I'm

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-15 Thread Matthew Joyce
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

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-15 Thread Eshan Dhawan
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,

Re: GSOC POSIX Compliance: Stuck trying to build Newlib

2021-06-15 Thread Joel Sherrill
On Tue, Jun 15, 2021 at 10:42 AM Matthew Joyce 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