buildroot compilation error with python

      buildroot compilation error with python


      I am trying to generate buildroot + kernel image supporting python 2.7, flask and LVDS output.
      After "make clean" for erasing, "make menuconfig" for new configuration on python + flask + other libraies, and "make" commands for building, the process gives me the following mistake:

      Source Code

      1. /usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
      2. /usr/local/lib/libpython2.7.a: error adding symbols: Bad value
      3. collect2: error: ld returned 1 exit status
      4. Python build finished, but the necessary bits to build these modules were not found:
      5. _sqlite3 _tkinter bsddb185
      6. bz2 dl imageop
      7. readline sunaudiodev
      8. To find the necessary bits, look in in detect_modules() for the module's name.
      9. Failed to build these modules:
      10. _bisect _codecs_iso2022 _collections
      11. _csv _ctypes _ctypes_test
      12. _elementtree _functools _hashlib
      13. _heapq _hotshot _io
      14. _json _locale _lsprof
      15. _multibytecodec _multiprocessing _random
      16. _socket _ssl _struct
      17. _testcapi array audioop
      18. binascii cmath cPickle
      19. crypt cStringIO datetime
      20. fcntl future_builtins grp
      21. itertools linuxaudiodev math
      22. mmap operator parser
      23. pyexpat resource select
      24. spwd strop syslog
      25. termios time unicodedata
      26. zlib
      27. Makefile:518: recipe for target 'sharedmods' failed
      28. make[2]: *** [sharedmods] Error 1
      29. package/ recipe for target '/home/developer/Desktop/R00_fsimx6-V3.1/LVDS/buildroot-2016.05-fsimx6-V3.1/output/build/host-python-2.7.11/.stamp_built' failed
      30. make[1]: *** [/home/developer/Desktop/R00_fsimx6-V3.1/LVDS/buildroot-2016.05-fsimx6-V3.1/output/build/host-python-2.7.11/.stamp_built] Error 2
      31. Makefile:36: recipe for target '_all' failed
      32. make: *** [_all] Error 2

      any tips?

      Thanks !
      What Linux system are you using on the host PC? I assume that GCC is too new and the code that is used here does not work with it. We still recommend GCC-5 for our current releases.

      Your F&S Support Team
      F&S Elektronik Systeme GmbH
      As this is an international forum, please try to post in English.
      Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

      I am using Fedora Virtual Machine from F&S.
      I just call "install_source" script, and launch "make fsimx6_std_defconfig" and "make"

      GCC version:

      [developer@localhost arm]$ gcc --version
      gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6)
      Copyright (C) 2015 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions. There is NO

      Post was edited 1 time, last by “siteco.desarrollo” ().