title: Cross compiling python for ARM from source
body: <p>I am cross compiling python 3.7 for ARM using TI-SDK. </p>
  
  <p>I have downloaded the source code on ubuntu and followed the below instructions</p>
  
  <ol>
  <li>Set the path of SDK (export PATH = $PATH:)</li>
  <li>./confgure</li>
  <li>make</li>
  </ol>
  
  <p>When I run <code>make</code>, I get the errors below. Can you please tell me how to resolve the linker errors?</p>
  
  <pre><code>*ar rc libpython3.5m.a Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o 
  ar rc libpython3.5m.a Modules/_threadmodule.o  Modules/signalmodule.o  Modules/posixmodule.o  Modules/errnomodule.o  Modules/pwdmodule.o  Modules/_sre.o  Modules/_codecsmodule.o  Modules/_weakref.o  Modules/_functoolsmodule.o  Modules/_operator.o  Modules/_collectionsmodule.o  Modules/itertoolsmodule.o  Modules/atexitmodule.o  Modules/_stat.o  Modules/timemodule.o  Modules/_localemodule.o  Modules/_iomodule.o Modules/iobase.o Modules/fileio.o Modules/bytesio.o Modules/bufferedio.o Modules/textio.o Modules/stringio.o  Modules/zipimport.o  Modules/faulthandler.o  Modules/_tracemalloc.o Modules/hashtable.o  Modules/symtablemodule.o  Modules/xxsubtype.o
  ranlib libpython3.5m.a
  gcc -pthread   -Xlinker -export-dynamic -o python Programs/python.o libpython3.5m.a -lpthread -ldl  -lutil   -lm  
  libpython3.5m.a(fileutils.o): In function `set_inheritable':
  /home/pcadmin/work/OTIS/Python-3.5.9/Python/fileutils.c:892: undefined reference to `fcntl64'
  /home/pcadmin/work/OTIS/Python-3.5.9/Python/fileutils.c:903: undefined reference to `fcntl64'
  libpython3.5m.a(fileutils.o): In function `get_inheritable':
  /home/pcadmin/work/OTIS/Python-3.5.9/Python/fileutils.c:777: undefined reference to `fcntl64'
  /home/pcadmin/work/OTIS/Python-3.5.9/Python/fileutils.c:777: undefined reference to `fcntl64'
  libpython3.5m.a(fileutils.o): In function `set_inheritable':
  /home/pcadmin/work/OTIS/Python-3.5.9/Python/fileutils.c:892: undefined reference to `fcntl64'
  libpython3.5m.a(fileutils.o):/home/pcadmin/work/OTIS/Python-3.5.9/Python/fileutils.c:903: more undefined references to `fcntl64' follow
  collect2: error: ld returned 1 exit status
  Makefile:555: recipe for target 'python' failed
  make: *** [python] Error 1*
  </code></pre>
  
  <p>Please comment if more information is required to help me out with this issue.</p>