[aur-general] Please help create package lib32-gobject-introspection
Hi all, I'm trying to build gobject-introspection for lib32 version for my Arch64, but it is failing in the "configure" command saying that Python headers were not found. This 32 bit library package seems to be dependecy (not sure, though) for some lib32 packages (afaik "at-spi", "gconf", "polkit", "gstreamer0.10"). Can someone please help as I really don't know how to solve this issue? Thanks! ( Sorry for the size of the email. I thought it would be good to add some log messages and didn't know if attachment is allowed. PLEASE remove some lines when reply!) *** My "configure" command in the PKGBUILD ./configure --prefix=/usr --libdir=/usr/lib32 --disable-static \ PYTHON='python2' CC='gcc -m32' *** See part of the output of it below: (...) checking for python2 version... 2.7 checking for python2 platform... linux2 checking for python2 script directory... ${prefix}/lib/python2.7/site-packages checking for python2 extension module directory... ${exec_prefix}/lib/python2.7/site-packages checking for headers required to compile python extensions... not found configure: error: Python headers not found Aborting... *** Part of the "config.log" : (...) configure:13341: checking for headers required to compile python extensions configure:13356: gcc -m32 -E -I/usr/include/python2.7 conftest.c In file included from /usr/include/python2.7/Python.h:8:0, from conftest.c:45: /usr/include/python2.7/pyconfig.h:989:0: warning: "SIZEOF_LONG" redefined conftest.c:31:0: note: this is the location of the previous definition In file included from /usr/include/python2.7/Python.h:58:0, from conftest.c:45: /usr/include/python2.7/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." configure:13356: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "gobject-introspection" | #define PACKAGE_TARNAME "gobject-introspection" | #define PACKAGE_VERSION "0.9.12" | #define PACKAGE_STRING "gobject-introspection 0.9.12" | #define PACKAGE_BUGREPORT " http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection " | #define PACKAGE_URL "" | #define PACKAGE "gobject-introspection" | #define VERSION "0.9.12" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define YYTEXT_POINTER 1 | #define HAVE_LIBDL 1 | #define SHLIB_SUFFIX "so" | #define GOBJECT_INTROSPECTION_LIBDIR "/usr/lib32" | #define GIR_SUFFIX "gir-1.0" | #define GIR_DIR "/usr/share/gir-1.0" | #define SIZEOF_CHAR 1 | #define SIZEOF_SHORT 2 | #define SIZEOF_INT 4 | #define SIZEOF_LONG 4 | #define STDC_HEADERS 1 | #define HAVE_FCNTL_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMCHR 1 | #define HAVE_STRCHR 1 | #define HAVE_STRSPN 1 | #define HAVE_STRSTR 1 | #define HAVE_STRTOL 1 | #define HAVE_STRTOULL 1 | #define HAVE_BACKTRACE 1 | #define HAVE_BACKTRACE_SYMBOLS 1 | /* end confdefs.h. */ | #include <Python.h> configure:13361: result: not found configure:13363: error: Python headers not found (...)
On 2/8/11, rafael ff1 <rafael.f.f1@gmail.com> wrote:
Hi all, And hello to you too
I'm trying to build gobject-introspection for lib32 version for my Arch64, but it is failing in the "configure" command saying that Python headers were not found. This 32 bit library package seems to be dependecy (not sure, though) for some lib32 packages (afaik "at-spi", "gconf", "polkit", "gstreamer0.10"). The 32-bit gobject-introspection would be a _make_ dependency ("makedepends=()"). That's why you won't see it in the regular "depends=()" sections.
( Sorry for the size of the email. I thought it would be good to add some log messages and didn't know if attachment is allowed. PLEASE remove some lines when reply!) Yeah, that's why we got pastebin: http://aur.pastebin.com/ - please use that one in the future :).
checking for headers required to compile python extensions... not found configure: error: Python headers not found Aborting... [...] | #include <Python.h> configure:13361: result: not found configure:13363: error: Python headers not found (...) You need 32-bit versions of gobject-introspection's dependencies too (lib32-): depends=('libffi>=3.0.9' 'glib2>=2.27.93' 'python2') makedepends=('cairo') ..and it seems "lib32-python2" doesn't even exist.
2011/2/9 Det <nimetonmaili@gmail.com>
On 2/8/11, rafael ff1 <rafael.f.f1@gmail.com> wrote:
Hi all, And hello to you too
I'm trying to build gobject-introspection for lib32 version for my Arch64, but it is failing in the "configure" command saying that Python headers were not found. This 32 bit library package seems to be dependecy (not sure, though) for some lib32 packages (afaik "at-spi", "gconf", "polkit", "gstreamer0.10"). The 32-bit gobject-introspection would be a _make_ dependency ("makedepends=()"). That's why you won't see it in the regular "depends=()" sections.
I didn't think it was relevant to mention, but I'm already using it as makedepends..
( Sorry for the size of the email. I thought it would be good to add some log messages and didn't know if attachment is allowed. PLEASE remove some lines when reply!) Yeah, that's why we got pastebin: http://aur.pastebin.com/ - please use that one in the future :).
checking for headers required to compile python extensions... not found configure: error: Python headers not found Aborting... [...] | #include <Python.h> configure:13361: result: not found configure:13363: error: Python headers not found (...) You need 32-bit versions of gobject-introspection's dependencies too (lib32-): depends=('libffi>=3.0.9' 'glib2>=2.27.93' 'python2') makedepends=('cairo') ..and it seems "lib32-python2" doesn't even exist.
I'm also working on lib32-python2 without success. I'm able to build it but some files are being stored in /usr/lib. I could do a 'sed' in 'Makefile' to move to correct place, but I'm worried that it is going to /usr/lib because I failed to set one or more option to the configuration. I uploaded to AUR lib32-python2 (lib32-gobject-introspection as well) package using source binary (just temporarily) and installed it, but I still can't compile lib32-gobject-introspection from source. I need somehow set python's "script directory" and "extension module directory" to lib32... Any idea? Here some links: * http://aur.pastebin.com/xCPCmxR4 lib32-gobject-introspection PKGBUILD * http://aur.pastebin.com/tYPWHz64 build attempt for lib32-gobject-introspection (same old error msg) * http://aur.pastebin.com/Ds3ErSTD lib32-python2 PKGBUILD * http://aur.pastebin.com/VdEisQpb lib32-python2 build log (see "skipping incompatible") * tried to upload the package log, but it is too large :P * http://aur.pastebin.com/m8EeXrgS lib32-python2 files list (see /usr/lib)
On 2011/2/11 rafael ff1 <rafael.f.f1@gmail.com> wrote:
Here some links: * http://aur.pastebin.com/xCPCmxR4 lib32-gobject-introspection PKGBUILD * http://aur.pastebin.com/tYPWHz64 build attempt for lib32-gobject-introspection (same old error msg)
You need to instruct the configure script to use the 32-bit python2 binary instead of /usr/bin/python2
* http://aur.pastebin.com/Ds3ErSTD lib32-python2 PKGBUILD * http://aur.pastebin.com/VdEisQpb lib32-python2 build log (see "skipping incompatible") * tried to upload the package log, but it is too large :P * http://aur.pastebin.com/m8EeXrgS lib32-python2 files list (see /usr/lib)
you need a 32-bit version of tk for that. Why do you need those ? Can't you just disable optional gobject-introspection/python support for your 32-bit builds ? -- Rémy.
2011/2/12 Rémy Oudompheng <remyoudompheng@gmail.com>:
On 2011/2/11 rafael ff1 <rafael.f.f1@gmail.com> wrote:
Here some links: * http://aur.pastebin.com/xCPCmxR4 lib32-gobject-introspection PKGBUILD * http://aur.pastebin.com/tYPWHz64 build attempt for lib32-gobject-introspection (same old error msg)
You need to instruct the configure script to use the 32-bit python2 binary instead of /usr/bin/python2
* http://aur.pastebin.com/Ds3ErSTD lib32-python2 PKGBUILD * http://aur.pastebin.com/VdEisQpb lib32-python2 build log (see "skipping incompatible") * tried to upload the package log, but it is too large :P * http://aur.pastebin.com/m8EeXrgS lib32-python2 files list (see /usr/lib)
you need a 32-bit version of tk for that.
Why do you need those ? Can't you just disable optional gobject-introspection/python support for your 32-bit builds ?
-- Rémy.
Why? I wanted PCSX2 emulator to work without problem in Archlinux and all from a sudden I correct to Multilib standards more than 30 lib32 packages. Basically I just wanted to have gobject-introspection working because it is a dependency for other packages - I don't know much more than that. Taking your idea of disabling gobject-introspection, I compiled lib32-gstreamer0.10 adding "--enable-introspection=no". I was able to generate the 32 bit library, but I got some warning messages that made me believe that it expected a complete 64 bit compilation (see sample output below). The question is: Is it correct to disable introspection/python? make[4]: Entering directory `/home/rafael/builds/lib32-gstreamer0.10/src/gstreamer-0.10.32/tests/examples/typefind' CC typefind-typefind.o In file included from ../../../gst/gst.h:74:0, from typefind.c:21: ../../../gst/gstutils.h: In function ‘GDOUBLE_SWAP_LE_BE’: ../../../gst/gstutils.h:566:9: warning: left shift count >= width of type ../../../gst/gstutils.h:566:9: warning: left shift count >= width of type ../../../gst/gstutils.h:566:9: warning: right shift count >= width of type ../../../gst/gstutils.h:566:9: warning: right shift count >= width of type ../../../gst/gstutils.h: In function ‘GST_READ_DOUBLE_LE’: ../../../gst/gstutils.h:755:3: warning: left shift count >= width of type ../../../gst/gstutils.h:755:3: warning: left shift count >= width of type ../../../gst/gstutils.h:755:3: warning: left shift count >= width of type ../../../gst/gstutils.h:755:3: warning: left shift count >= width of type ../../../gst/gstutils.h: In function ‘GST_READ_DOUBLE_BE’: ../../../gst/gstutils.h:783:3: warning: left shift count >= width of type ../../../gst/gstutils.h:783:3: warning: left shift count >= width of type ../../../gst/gstutils.h:783:3: warning: left shift count >= width of type ../../../gst/gstutils.h:783:3: warning: left shift count >= width of type ../../../gst/gstutils.h: In function ‘GST_WRITE_DOUBLE_LE’: ../../../gst/gstutils.h:865:3: warning: right shift count >= width of type ../../../gst/gstutils.h:865:3: warning: right shift count >= width of type ../../../gst/gstutils.h:865:3: warning: right shift count >= width of type ../../../gst/gstutils.h:865:3: warning: right shift count >= width of type ../../../gst/gstutils.h: In function ‘GST_WRITE_DOUBLE_BE’: ../../../gst/gstutils.h:892:3: warning: right shift count >= width of type ../../../gst/gstutils.h:892:3: warning: right shift count >= width of type ../../../gst/gstutils.h:892:3: warning: right shift count >= width of type ../../../gst/gstutils.h:892:3: warning: right shift count >= width of type CCLD typefind
participants (3)
-
Det
-
rafael ff1
-
Rémy Oudompheng