[Twisted-Python] Build and installation problem

I'm new here and I want to report that I'm having troubles installing Twisted on an embedded linux machine <https://github.com/victronenergy/venus>. uname -a reports: Linux ccgx 3.7.1 #1 Tue Dec 1 14:59:18 CET 2015 armv7l GNU/Linux I've tried to install both with pip and with setup.py (with a root user). There is no opkg package for Twisted, All dependencies should be ok. Here is what I get with setup.py build and install root@ccgx:~/Twisted-15.5.0# python setup.py build running build running build_py running egg_info writing requirements to Twisted.egg-info/requires.txt writing Twisted.egg-info/PKG-INFO writing top-level names to Twisted.egg-info/top_level.txt writing dependency_links to Twisted.egg-info/dependency_links.txt reading manifest file 'Twisted.egg-info/SOURCES.txt' writing manifest file 'Twisted.egg-info/SOURCES.txt' running build_ext arm-ve-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -D__SOFTFP__ .30/build/tmp-eglibc/sysroots/bpp3 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c conftest.c -o conftest.o arm-ve-linux-gnueabi-gcc: error: .30/build/tmp-eglibc/sysroots/bpp3: No such file or directory building 'twisted.test.raiser' extension arm-ve-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -D__SOFTFP__ .30/build/tmp-eglibc/sysroots/bpp3 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c twisted/test/raiser.c -o build/temp.linux-armv7l-2.7/twisted/test/raiser.o arm-ve-linux-gnueabi-gcc: error: .30/build/tmp-eglibc/sysroots/bpp3: No such file or directory error: command 'arm-ve-linux-gnueabi-gcc' failed with exit status 1 root@ccgx:~/Twisted-15.5.0# python setup.py install running install running bdist_egg running egg_info writing requirements to Twisted.egg-info/requires.txt writing Twisted.egg-info/PKG-INFO writing top-level names to Twisted.egg-info/top_level.txt writing dependency_links to Twisted.egg-info/dependency_links.txt reading manifest file 'Twisted.egg-info/SOURCES.txt' writing manifest file 'Twisted.egg-info/SOURCES.txt' installing library code to build/bdist.linux-armv7l/egg running install_lib running build_py running build_ext arm-ve-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -D__SOFTFP__ .30/build/tmp-eglibc/sysroots/bpp3 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c conftest.c -o conftest.o arm-ve-linux-gnueabi-gcc: error: .30/build/tmp-eglibc/sysroots/bpp3: No such file or directory building 'twisted.test.raiser' extension arm-ve-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -D__SOFTFP__ .30/build/tmp-eglibc/sysroots/bpp3 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c twisted/test/raiser.c -o build/temp.linux-armv7l-2.7/twisted/test/raiser.o arm-ve-linux-gnueabi-gcc: error: .30/build/tmp-eglibc/sysroots/bpp3: No such file or directory error: command 'arm-ve-linux-gnueabi-gcc' failed with exit status 1 I can't find any reference to the folder .30/build/tmp-eglibc/sysroots/bpp3 on my system. Do you have any clue? Thank you Angelo

On Mar 7, 2016, at 11:31 PM, Angelo Conte <conte.angelo@gmail.com> wrote:
I can't find any reference to the folder .30/build/tmp-eglibc/sysroots/bpp3 on my system.
It looks like your embedded system can't build python extension modules; I doubt the problem is specific to Twisted. 1. Have you built any other extension modules? ("pip install cryptography", for example) 2. Do you have any interesting text in environment variables; particularly, CFLAGS? -glyph

Thank you Glyph for your kind answer. 1) I've just tried and the same error appears, so it's not a Twisted specific problem 2) environment variables don't contain nothing special; there is no CFLAGS entry. I've also searched if there were something wrong in compiler's search dirs, but everything seems ok. Angelo 2016-03-08 18:51 GMT+01:00 Glyph Lefkowitz <glyph@twistedmatrix.com>:

My guess is that Python is built incorrectly for this platform. When you build Python, it remembers certain things about its build configuration and attempts to copy those things to the compile commands used to build extension modules. It looks to me like that directory is detritus which somehow got glommed into the build configuration Python thinks it should use. This is unfortunately about the end of my expertise in this area; you'd have better luck posting this to a list like https://www.python.org/community/sigs/current/distutils-sig/. Thanks for using Twisted; I'm sorry it's being difficult to work with here. I'm interested in helping you get this resolved, and I'm also on distutils-sig, so if you ask there I can always provide additional details about how Twisted's C modules work if one of the more-knowledgeable people there needs more information; feel free to ask for my help in further investigation if you need it :-). -glyph P.S.: Since a lot of new people are posting (which is great!) I feel like I should take the opportunity to point out that the preferred style of reply on this list is <https://en.wikipedia.org/wiki/Posting_style#Interleaved_style> followed by <https://en.wikipedia.org/wiki/Posting_style#Bottom-posting> - please refrain from <https://en.wikipedia.org/wiki/Posting_style#Top-posting>. Thanks!

On Mar 7, 2016, at 11:31 PM, Angelo Conte <conte.angelo@gmail.com> wrote:
I can't find any reference to the folder .30/build/tmp-eglibc/sysroots/bpp3 on my system.
It looks like your embedded system can't build python extension modules; I doubt the problem is specific to Twisted. 1. Have you built any other extension modules? ("pip install cryptography", for example) 2. Do you have any interesting text in environment variables; particularly, CFLAGS? -glyph

Thank you Glyph for your kind answer. 1) I've just tried and the same error appears, so it's not a Twisted specific problem 2) environment variables don't contain nothing special; there is no CFLAGS entry. I've also searched if there were something wrong in compiler's search dirs, but everything seems ok. Angelo 2016-03-08 18:51 GMT+01:00 Glyph Lefkowitz <glyph@twistedmatrix.com>:

My guess is that Python is built incorrectly for this platform. When you build Python, it remembers certain things about its build configuration and attempts to copy those things to the compile commands used to build extension modules. It looks to me like that directory is detritus which somehow got glommed into the build configuration Python thinks it should use. This is unfortunately about the end of my expertise in this area; you'd have better luck posting this to a list like https://www.python.org/community/sigs/current/distutils-sig/. Thanks for using Twisted; I'm sorry it's being difficult to work with here. I'm interested in helping you get this resolved, and I'm also on distutils-sig, so if you ask there I can always provide additional details about how Twisted's C modules work if one of the more-knowledgeable people there needs more information; feel free to ask for my help in further investigation if you need it :-). -glyph P.S.: Since a lot of new people are posting (which is great!) I feel like I should take the opportunity to point out that the preferred style of reply on this list is <https://en.wikipedia.org/wiki/Posting_style#Interleaved_style> followed by <https://en.wikipedia.org/wiki/Posting_style#Bottom-posting> - please refrain from <https://en.wikipedia.org/wiki/Posting_style#Top-posting>. Thanks!
participants (2)
-
Angelo Conte
-
Glyph Lefkowitz