[PATCH v2] sb: Add support to search for a suitable version of python.

Chris Johns chrisj at rtems.org
Wed Oct 24 09:56:32 UTC 2018


> On 24 Oct 2018, at 7:43 pm, Malte Münch <mamu at stablerock.de> wrote:
> 
> Hi,
> 
> i think you meant that command here:
> 
> /home/mamu/dr/rsb/source-builder/sb/rtems-build-dep -c gcc  -H
> python2.7/Python.h
> 
> with an additional -d flag it returns:
> 
> 
> + '[' -z header ']'
> + '[' -z gcc ']'
> + '[' -z python2.7/Python.h ']'
> + '[' header = header ']'
> ++ echo
> ++ gcc -xc -E -v -
> ++ awk 'BEGIN {flag=0;} /starts here/{flag=1;next}/End/{flag=0}flag'
> + inc_paths=

Hmm this is weird. What does:

  echo “” | gcc -xc -E -v -

output?


> + echo not-found
> not-found
> + exit 0
> 
> The python header is located under /usr/include:
> 
> [mamu at verstappen rtems]$ find / -name 'Python.h' 2> /dev/null
> /usr/include/python2.7/Python.h
> /usr/include/python3.7m/Python.h

Great. We just need to figure out where gcc’s search paths have gone. 

Chris



More information about the devel mailing list