From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CE554138AF3 for ; Sun, 2 Nov 2014 10:01:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7513BE0C07; Sun, 2 Nov 2014 10:01:57 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BBCF2E0B87 for ; Sun, 2 Nov 2014 10:01:56 +0000 (UTC) Received: from localhost ([84.133.160.84]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LpcBS-1YEBBU1ere-00fSgM for ; Sun, 02 Nov 2014 11:01:55 +0100 Date: Sun, 2 Nov 2014 11:01:53 +0100 From: meino.cramer@gmx.de To: gentoo-embedded@lists.gentoo.org Subject: [gentoo-embedded] Adafruit 2.2", spidev and othe contradictionary parts of my nightmare... Message-ID: <20141102100153.GG3864@solfire> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: mutt-ng/devel-r804 (Linux) X-Provags-ID: V03:K0:RaRjOJj0RvhpBAw+znjJL8ZJvHl2TY3CrHjY5BHAGIG0gLX3vKw Ip8CWHCK5who7HarohFuTG8dzWCjq1qiQ7YobDXx8McHlblWak0ldAJB01fFmRGRS4Wa9UC uCTIkE56MTHiU7zFkO4C+ctiWQnhdhOAAxdfctUQ/ij63WIjryJhGew/Y29Bo7OEO1IO3Sz x3tvZfGpU+VT5IZ/P9bDg== X-UI-Out-Filterresults: notjunk:1; X-Archives-Salt: 6f160d53-0bc8-42c2-97b1-95d14e11f1ed X-Archives-Hash: 437bce5d161c77b29496cee959d236d8 Hi, (everything is done natively on the embedded system itsself) I am currently trying to install (and later use) this library on my Beaglebone Black (3.8.13-bone67 kernel by Robert Nelson): https://github.com/adafruit/Adafruit_ILI9340 Installing the prerequisits works fine. The=20 needed "python-smbus" is part of i2c-tools when=20 compiled with the "python" USE-flag. Installing the library itsself fails. And I fear, there are contradictionary definition deeply inside the kernel/kernel-headers... I installed linux-headers-3.8 with emerge in beforehand, but the compilation faisl with: beagleboneblack:Matt/Adafruit_Python_ILI9341>sudo python setup.py install running install running bdist_egg running egg_info writing requirements to Adafruit_ILI9341.egg-info/requires.txt writing Adafruit_ILI9341.egg-info/PKG-INFO writing top-level names to Adafruit_ILI9341.egg-info/top_level.txt writing dependency_links to Adafruit_ILI9341.egg-info/dependency_links.txt reading manifest file 'Adafruit_ILI9341.egg-info/SOURCES.txt' writing manifest file 'Adafruit_ILI9341.egg-info/SOURCES.txt' installing library code to build/bdist.linux-armv7l/egg running install_lib running build_py creating build/bdist.linux-armv7l/egg creating build/bdist.linux-armv7l/egg/Adafruit_ILI9341 copying build/lib/Adafruit_ILI9341/ILI9341.py -> build/bdist.linux-armv7l/e= gg/Adafruit_ILI9341 copying build/lib/Adafruit_ILI9341/__init__.py -> build/bdist.linux-armv7l/= egg/Adafruit_ILI9341 byte-compiling build/bdist.linux-armv7l/egg/Adafruit_ILI9341/ILI9341.py to = ILI9341.cpython-32.pyc byte-compiling build/bdist.linux-armv7l/egg/Adafruit_ILI9341/__init__.py to= __init__.cpython-32.pyc creating build/bdist.linux-armv7l/egg/EGG-INFO copying Adafruit_ILI9341.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/= EGG-INFO copying Adafruit_ILI9341.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/e= gg/EGG-INFO copying Adafruit_ILI9341.egg-info/dependency_links.txt -> build/bdist.linux= -armv7l/egg/EGG-INFO copying Adafruit_ILI9341.egg-info/requires.txt -> build/bdist.linux-armv7l/= egg/EGG-INFO copying Adafruit_ILI9341.egg-info/top_level.txt -> build/bdist.linux-armv7l= /egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating 'dist/Adafruit_ILI9341-1.0.0-py3.2.egg' and adding 'build/bdist.li= nux-armv7l/egg' to it removing 'build/bdist.linux-armv7l/egg' (and everything under it) Processing Adafruit_ILI9341-1.0.0-py3.2.egg Removing /usr/lib/python3.2/site-packages/Adafruit_ILI9341-1.0.0-py3.2.egg Copying Adafruit_ILI9341-1.0.0-py3.2.egg to /usr/lib/python3.2/site-packages Adafruit-ILI9341 1.0.0 is already the active version in easy-install.pth Installed /usr/lib/python3.2/site-packages/Adafruit_ILI9341-1.0.0-py3.2.egg Processing dependencies for Adafruit-ILI9341=3D=3D1.0.0 Searching for spidev Reading https://pypi.python.org/simple/spidev/ Best match: spidev 2.0 Downloading https://pypi.python.org/packages/source/s/spidev/spidev-2.0.tar= =2Egz#md5=3Db2ff7e51b350febb15ebc20b8a4ed430 Processing spidev-2.0.tar.gz Writing /tmp/easy_install-ymaims/spidev-2.0/setup.cfg Running spidev-2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ymaim= s/spidev-2.0/egg-dist-tmp-x8ja_w In file included from /usr/include/linux/spi/spidev.h:25:0, from spidev_module.c:25: /usr/src/linux/include/linux/types.h:14:26: error: conflicting types for = =E2=80=98fd_set=E2=80=99 typedef __kernel_fd_set fd_set; ^ In file included from /usr/include/sys/types.h:219:0, from /usr/include/stdlib.h:314, from /usr/include/python3.2/Python.h:34, from spidev_module.c:20: /usr/include/sys/select.h:75:5: note: previous declaration of =E2=80=98fd_s= et=E2=80=99 was here } fd_set; ^ In file included from /usr/include/linux/spi/spidev.h:25:0, from spidev_module.c:25: /usr/src/linux/include/linux/types.h:15:25: error: conflicting types for = =E2=80=98dev_t=E2=80=99 typedef __kernel_dev_t dev_t; ^ In file included from /usr/include/stdlib.h:314:0, from /usr/include/python3.2/Python.h:34, from spidev_module.c:20: /usr/include/sys/types.h:60:17: note: previous declaration of =E2=80=98dev_= t=E2=80=99 was here typedef __dev_t dev_t; ^ In file included from /usr/include/linux/spi/spidev.h:25:0, from spidev_module.c:25: /usr/src/linux/include/linux/types.h:16:25: error: conflicting types for = =E2=80=98ino_t=E2=80=99 typedef __kernel_ino_t ino_t; ^ In file included from /usr/include/stdlib.h:314:0, from /usr/include/python3.2/Python.h:34, from spidev_module.c:20: /usr/include/sys/types.h:50:19: note: previous declaration of =E2=80=98ino_= t=E2=80=99 was here typedef __ino64_t ino_t; ^ In file included from /usr/include/linux/spi/spidev.h:25:0, from spidev_module.c:25: /usr/src/linux/include/linux/types.h:17:26: error: conflicting types for = =E2=80=98mode_t=E2=80=99 typedef __kernel_mode_t mode_t; ^ In file included from /usr/include/stdlib.h:314:0, from /usr/include/python3.2/Python.h:34, from spidev_module.c:20: /usr/include/sys/types.h:70:18: note: previous declaration of =E2=80=98mode= _t=E2=80=99 was here typedef __mode_t mode_t; ^ In file included from /usr/include/linux/spi/spidev.h:25:0, from spidev_module.c:25: /usr/src/linux/include/linux/types.h:20:25: error: conflicting types for = =E2=80=98off_t=E2=80=99 typedef __kernel_off_t off_t; ^ In file included from /usr/include/python3.2/Python.h:25:0, from spidev_module.c:20: /usr/include/stdio.h:92:19: note: previous declaration of =E2=80=98off_t=E2= =80=99 was here typedef __off64_t off_t; ^ In file included from /usr/include/linux/spi/spidev.h:25:0, from spidev_module.c:25: /usr/src/linux/include/linux/types.h:25:26: error: conflicting types for = =E2=80=98timer_t=E2=80=99 typedef __kernel_timer_t timer_t; ^ In file included from /usr/include/sys/types.h:132:0, from /usr/include/stdlib.h:314, from /usr/include/python3.2/Python.h:34, from spidev_module.c:20: /usr/include/time.h:103:19: note: previous declaration of =E2=80=98timer_t= =E2=80=99 was here typedef __timer_t timer_t; ^ In file included from /usr/include/linux/spi/spidev.h:25:0, from spidev_module.c:25: /usr/src/linux/include/linux/types.h:36:24: error: conflicting types for = =E2=80=98uintptr_t=E2=80=99 typedef unsigned long uintptr_t; ^ In file included from /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.3/inc= lude/stdint.h:9:0, from /usr/include/inttypes.h:27, from /usr/include/python3.2/pyport.h:9, from /usr/include/python3.2/Python.h:50, from spidev_module.c:20: /usr/include/stdint.h:128:23: note: previous declaration of =E2=80=98uintpt= r_t=E2=80=99 was here typedef unsigned int uintptr_t; ^ In file included from /usr/include/linux/spi/spidev.h:25:0, from spidev_module.c:25: /usr/src/linux/include/linux/types.h:134:23: error: conflicting types for = =E2=80=98blkcnt_t=E2=80=99 typedef unsigned long blkcnt_t; ^ In file included from /usr/include/stdlib.h:314:0, from /usr/include/python3.2/Python.h:34, from spidev_module.c:20: /usr/include/sys/types.h:248:22: note: previous declaration of =E2=80=98blk= cnt_t=E2=80=99 was here typedef __blkcnt64_t blkcnt_t; /* Type to count number of disk blocks. = */ ^ spidev_module.c: In function =E2=80=98SpiDev_dealloc=E2=80=99: spidev_module.c:93:6: error: =E2=80=98SpiDevObject=E2=80=99 has no member n= amed =E2=80=98ob_type=E2=80=99 self->ob_type->tp_free((PyObject *)self); ^ spidev_module.c: At top level: spidev_module.c:779:2: warning: initialization makes integer from pointer w= ithout a cast [enabled by default] "SpiDev", /* tp_name */ ^ spidev_module.c:779:2: warning: (near initialization for =E2=80=98SpiDevObj= ectType.tp_basicsize=E2=80=99) [enabled by default] spidev_module.c:782:2: warning: initialization from incompatible pointer ty= pe [enabled by default] (destructor)SpiDev_dealloc, /* tp_dealloc */ ^ spidev_module.c:782:2: warning: (near initialization for =E2=80=98SpiDevObj= ectType.tp_print=E2=80=99) [enabled by default] spidev_module.c:797:2: warning: initialization makes pointer from integer w= ithout a cast [enabled by default] Py_TPFLAGS_DEFAULT, /* tp_flags */ ^ spidev_module.c:797:2: warning: (near initialization for =E2=80=98SpiDevObj= ectType.tp_doc=E2=80=99) [enabled by default] spidev_module.c:798:2: warning: initialization from incompatible pointer ty= pe [enabled by default] SpiDevObjectType_doc, /* tp_doc */ ^ spidev_module.c:798:2: warning: (near initialization for =E2=80=98SpiDevObj= ectType.tp_traverse=E2=80=99) [enabled by default] spidev_module.c:805:2: warning: initialization from incompatible pointer ty= pe [enabled by default] SpiDev_methods, /* tp_methods */ ^ spidev_module.c:805:2: warning: (near initialization for =E2=80=98SpiDevObj= ectType.tp_members=E2=80=99) [enabled by default] spidev_module.c:807:2: warning: initialization from incompatible pointer ty= pe [enabled by default] SpiDev_getset, /* tp_getset */ ^ spidev_module.c:807:2: warning: (near initialization for =E2=80=98SpiDevObj= ectType.tp_base=E2=80=99) [enabled by default] spidev_module.c:813:2: warning: initialization from incompatible pointer ty= pe [enabled by default] (initproc)SpiDev_init, /* tp_init */ ^ spidev_module.c:813:2: warning: (near initialization for =E2=80=98SpiDevObj= ectType.tp_alloc=E2=80=99) [enabled by default] spidev_module.c:815:2: warning: initialization from incompatible pointer ty= pe [enabled by default] SpiDev_new, /* tp_new */ ^ spidev_module.c:815:2: warning: (near initialization for =E2=80=98SpiDevObj= ectType.tp_free=E2=80=99) [enabled by default] spidev_module.c: In function =E2=80=98initspidev=E2=80=99: spidev_module.c:833:4: warning: assignment makes pointer from integer witho= ut a cast [enabled by default] m =3D Py_InitModule3("spidev", SpiDev_module_methods, SpiDev_module_doc); ^ error: Setup script exited with error: command 'armv7a-hardfloat-linux-gnue= abi-gcc' failed with exit status 1 [1] 7520 exit 1 sudo python setup.py install In the beginning there are many hits in the system headers... Is there are any way to get out of it?=20 What's going wrong here? Any idea/hint/solution is very appreciated! Best regards, Meino