GSOC POSIX Compliance: Stuck trying to build Newlib

Matthew Joyce mfjoyce2004 at gmail.com
Wed Jun 16 10:17:21 UTC 2021


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 to use exactly autoconf 2.64 and not 2.69. I change the $PATH
to make sure it is checking the opt/autoconf-2.64/bin first.

I check the autoconf version and confirm that it is now using 2.64.
But then when I try to run autoreconf -fvi, I get the same error as I
had yesterday.

Do you have any ideas as to what I'm doing wrong?

Thanks again!

Sincerely,

Matt

On Wed, Jun 16, 2021 at 4:36 AM Vaibhav Gupta <vaibhavgupta40 at gmail.com> wrote:
>
> Hello Matthew,
>
> On Wed, Jun 16, 2021 at 12:58 AM Joel Sherrill <joel at rtems.org> 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 and autoconf relationship is a bit messy. But you
> can simplify it if you use $PATH carefully.
> Have a look at this
> https://medium.com/my-gsoc-2019-journey/how-to-handle-two-versions-of-autoconf-b1e28de8617b,
> the path should expand and should point to the correct binaries.
>
> The blog should give you an idea of how the $PATH works and how it
> should be modified.
>
>
> -- Vaibhav Gupta
> >
> > $ 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 /home/joel/rtems-work/tools/6/bin/sparc-rtems6-gcc
> >
> > On Tue, Jun 15, 2021 at 1: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
> >>
> >> _______________________________________________
> >> devel mailing list
> >> devel at rtems.org
> >> http://lists.rtems.org/mailman/listinfo/devel
> >
> > _______________________________________________
> > devel mailing list
> > devel at rtems.org
> > http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
Script started on 2021-06-16 11:21:55+02:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="80" LINES="24"]
]777;notify;Command completed;sudo make install\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ autoreconf autoreconf -fvi
]777;preexec\autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
configure.ac:33: error: Please use exactly Autoconf 2.64 instead of 2.69.
config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from...
configure.ac:33: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
]777;notify;Command completed;autoreconf -fvi\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ 
]777;notify;Command completed;autoreconf -fvi\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ 
]777;notify;Command completed;autoreconf -fvi\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ export echo export PATH=/opt/autoconf-2.64/bin:$binPATH
]777;preexec\]777;notify;Command completed;export PATH=/opt/autoconf-2.64/bin:$PATH\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ echo PA $PATH
]777;preexec\/opt/autoconf-2.64/bin:/home/mj/.local/bin:/home/mj/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
]777;notify;Command completed;echo $PATH\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ 
]777;notify;Command completed;echo $PATH\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ autoconfrreconf -conf =--V
]777;preexec\autoconf (GNU Autoconf) 2.64
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later
<http://gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
]777;notify;Command completed;autoconf -V\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ 
]777;notify;Command completed;autoconf -V\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ 
]777;notify;Command completed;autoconf -V\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ autoreconf -fvi
]777;preexec\Can't locate Autom4te/ChannelDefs.pm in @INC (you may need to install the Autom4te::ChannelDefs module) (@INC contains: /usr/local/share/autoconf /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /opt/autoconf-2.64/bin/autoreconf line 42.
BEGIN failed--compilation aborted at /opt/autoconf-2.64/bin/autoreconf line 42.
]777;notify;Command completed;autoreconf -fvi\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ 
]777;notify;Command completed;autoreconf -fvi\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ 
]777;notify;Command completed;autoreconf -fvi\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ export PATH=${HOME}/development/rtems/6/bin:$APAPATH
]777;preexec\]777;notify;Command completed;export PATH=${HOME}/development/rtems/6/bin:$PATH\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ echo $PATH
]777;preexec\/home/mj/development/rtems/6/bin:/opt/autoconf-2.64/bin:/home/mj/.local/bin:/home/mj/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
]777;notify;Command completed;echo $PATH\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ 
]777;notify;Command completed;echo $PATH\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ 
]777;notify;Command completed;echo $PATH\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ autoreconf -fvi
]777;preexec\autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
configure.ac:33: error: Please use exactly Autoconf 2.64 instead of 2.69.
config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from...
configure.ac:33: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: /home/mj/development/rtems/6/bin/autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
]777;notify;Command completed;autoreconf -fvi\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ autoreconf -fviecho $PATHxport PATH=${HOME}/development/rtems/6/bin:$PATH
autoreconf -fviconf -Vecho $PATHxport PATH=/opt/autoconf-2.64/bin:$PATH
autoreconf -fviexport PATH=/opt/autoconf-2.64/bin:$PATH
]777;preexec\]777;notify;Command completed;export PATH=/opt/autoconf-2.64/bin:$PATH\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ export PATH=/opt/autoconf-2.64/bin:$PATH
autoreconf -fviecho $PATHxport PATH=${HOME}/development/rtems/6/bin:$PATH
cho $PATH
]777;preexec\/opt/autoconf-2.64/bin:/home/mj/development/rtems/6/bin:/opt/autoconf-2.64/bin:/home/mj/.local/bin:/home/mj/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
]777;notify;Command completed;echo $PATH\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ echo $PATHxport PATH=/opt/autoconf-2.64/bin:$PATH
autoreconf -fvi
]777;preexec\Can't locate Autom4te/ChannelDefs.pm in @INC (you may need to install the Autom4te::ChannelDefs module) (@INC contains: /usr/local/share/autoconf /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /opt/autoconf-2.64/bin/autoreconf line 42.
BEGIN failed--compilation aborted at /opt/autoconf-2.64/bin/autoreconf line 42.
]777;notify;Command completed;autoreconf -fvi\]777;precmd\]0;mj at fedora:~/development/newlib/newlib-cygwin\]7;file://fedora/home/mj/development/newlib/newlib-cygwin\[mj@localhost newlib-cygwin]$ exit
]777;preexec\exit

Script done on 2021-06-16 11:28:36+02:00 [COMMAND_EXIT_CODE="2"]


More information about the devel mailing list