Build fail on debian - Toolset build error

Karel Gardas karel.gardas at centrum.cz
Mon Oct 12 12:30:52 UTC 2020


Sure, but you have to install header files whatever this means on
macosx. On Ubuntu this means 'apt install python2.7-dev'

On 10/12/20 2:27 PM, Andrew Butterfield wrote:
> Hi Karel,
> 
>  I have no idea what's wrong.
> 
> If I ask nicely:
> 
> :- which python2
> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
> :- python2 --version
> Python 2.7.18
> 
> all seems well.
> 
> I have has this problem before and usually I just purge all "brew"
> versions of python,
> and perhaps re-install/update the command line tools from x-code - then
> all works fine.
> Right now my Mac reports my X-code and command line tools as up to date.
> 
> When it is checking for python - what is the check? How does it
> determine "usability"? It's not simple presence of the binary.
> 
> Currently I have three python2s:
> 
> :- type -a python2
> python2 is /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
> python2 is /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
> python2 is /usr/local/bin/python2
> 
> The first one an the $PATH is the one the tool builder doesn't like.
> 
> :- type python2
> python2 is hashed
> (/Library/Frameworks/Python.framework/Versions/2.7/bin/python2)
> 
> Thanks,
>   Andrew
> 
> 
> 
>> On 12 Oct 2020, at 11:21, Karel Gardas <karel.gardas at centrum.cz
>> <mailto:karel.gardas at centrum.cz>> wrote:
>>
>> On 10/12/20 12:17 PM, Andrew Butterfield wrote:
>>> Dear all, 
>>> I am having a problem building RTEMs master, on OS X Mojave - see below
>>
>> checking whether to use python...
>> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
>> checking for python... no
>> configure: error: no usable python found at
>> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
>>
>> Something wrong with your python2 install? E.g. gdb needs python2 and if
>> you don't have it, it'll fail which will fail tools compile which will
>> fail whole rtems compile...
>>
>> Cheers,
>> Karel
>>
>>>
>>>> Begin forwarded message:
>>>>
>>>> *From: *Sebastian Huber <sebastian.huber at embedded-brains.de
>>>> <mailto:sebastian.huber at embedded-brains.de>
>>>> <mailto:sebastian.huber at embedded-brains.de>>
>>>> *Subject: **Re: Build fail on debian - Toolset build error*
>>>> *Date: *12 October 2020 at 10:48:17 IST
>>>> *To: *Andrew Butterfield <Andrew.Butterfield at scss.tcd.ie
>>>> <mailto:Andrew.Butterfield at scss.tcd.ie>
>>>> <mailto:Andrew.Butterfield at scss.tcd.ie>>
>>>>
>>>> Hello Andrew,
>>>>
>>>> could you please forward this e-mail to devel at rtems.org
>>>> <mailto:devel at rtems.org>
>>>> <mailto:devel at rtems.org>.
>>>>
>>>> On 12/10/2020 11:45, Andrew Butterfield wrote:
>>>>> Hi Sebastian,
>>>>>
>>>>>  I get a python error - despite using the virtual environment,
>>>>> which maps `python` to the OS X \System installation of python 3.8
>>>>>
>>>>> It complains about python2 being unusable - see tail of report below...
>>>>>
>>>>> My command-line tools and Xcode are up-to-date. Now this is on a
>>>>> Mojave machine, which is
>>>>> one that is not listed in the User Manual where OS X is discussed.
>>>>>
>>>>> I'll try to do this on my laptop which is now Catalina
>>>>>
>>>>> Regards, Andrew
>>>>>
>>>>> tail of error report follows:
>>>>>
>>>>> checking for library containing socketpair... none required
>>>>> checking for ld used by GCC...
>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
>>>>> checking if the linker
>>>>> (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld)
>>>>> is GNU ld... no
>>>>> checking for shared library run path origin... done
>>>>> checking for iconv... yes
>>>>> checking how to link with libiconv... -liconv
>>>>> checking for iconv declaration...
>>>>>          extern size_t iconv (iconv_t cd, char * *inbuf, size_t
>>>>> *inbytesleft, char * *outbuf, size_t *outbytesleft);
>>>>> checking for library containing waddstr... -lncurses
>>>>> checking for library containing tgetent... none required
>>>>> checking size of unsigned long long... 8
>>>>> checking size of unsigned long... 8
>>>>> checking size of unsigned __int128... 16
>>>>> checking for library containing dlopen... none required
>>>>> checking whether to use expat... yes
>>>>> checking for libexpat... yes
>>>>> checking how to link with libexpat... -lexpat
>>>>> checking for XML_StopParser... yes
>>>>> checking whether to use MPFR... auto
>>>>> checking for libmpfr... no
>>>>> configure: WARNING: MPFR is missing or unusable; some features may be
>>>>> unavailable.
>>>>> checking whether to use python...
>>>>> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
>>>>> checking for python... no
>>>>> configure: error: no usable python found at
>>>>> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
>>>>> make[1]: *** [configure-gdb] Error 1
>>>>> make: *** [all] Error 2
>>>>> shell cmd failed: /bin/sh -ex
>>>>>  /Users/butrfeld/REPOS/rtems-smp-qualification-qual/modules/rsb/rtems/build/sparc-rtems6-gdb-0295dde-x86_64-apple-darwin18.7.0-1/do-build
>>>>> error: building sparc-rtems6-gdb-0295dde-x86_64-apple-darwin18.7.0-1
>>>>>
>>>>>> On 12 Oct 2020, at 09:19, Sebastian Huber
>>>>>> <sebastian.huber at embedded-brains.de
>>>>>> <mailto:sebastian.huber at embedded-brains.de>
>>>>>> <mailto:sebastian.huber at embedded-brains.de>
>>>>>> <mailto:sebastian.huber at embedded-brains.de>> wrote:
>>>>>>
>>>>>> On 12/10/2020 10:14, Andrew Butterfield wrote:
>>>>>>
>>>>>>> Is there any point me trying to build on my OS X machine, or will I
>>>>>>> just get the same error?
>>>>>> It is unlikely that you get the same error. This seems to be a
>>>>>> Debian specific issue.
>>>>>
>>>>> --------------------------------------------------------------------
>>>>> Andrew Butterfield     Tel: +353-1-896-2517     Fax: +353-1-677-2204
>>>>> Lero at TCD, Head of Software Foundations & Verification Research Group
>>>>> School of Computer Science and Statistics,
>>>>> Room G.39, O'Reilly Institute, Trinity College, University of Dublin
>>>>> http://www.scss.tcd.ie/Andrew.Butterfield/
>>>>> --------------------------------------------------------------------
>>>>>
>>>
>>> --------------------------------------------------------------------
>>> Andrew Butterfield     Tel: +353-1-896-2517     Fax: +353-1-677-2204
>>> Lero at TCD, Head of Software Foundations & Verification Research Group
>>> School of Computer Science and Statistics,
>>> Room G.39, O'Reilly Institute, Trinity College, University of Dublin
>>>                          http://www.scss.tcd.ie/Andrew.Butterfield/
>>> --------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> devel mailing list
>>> devel at rtems.org <mailto:devel at rtems.org>
>>> http://lists.rtems.org/mailman/listinfo/devel
>>>
>>
> 
> --------------------------------------------------------------------
> Andrew Butterfield     Tel: +353-1-896-2517     Fax: +353-1-677-2204
> Lero at TCD, Head of Software Foundations & Verification Research Group
> School of Computer Science and Statistics,
> Room G.39, O'Reilly Institute, Trinity College, University of Dublin
>                          http://www.scss.tcd.ie/Andrew.Butterfield/
> --------------------------------------------------------------------
> 



More information about the devel mailing list