Failed to load the xcbgen Python package!
Jack Howarth
howarth at bromo.med.uc.edu
Thu Feb 10 19:53:36 PST 2011
I am trying to update the MacPorts relax packaging to the new 1.3.9 release
which now has a graphical interface via wxPython. I was surprised to see that the
existing py27-wxpython Portfile had x86_64 omitted. After adding x86_64 to a local
copy of the py27-wxpython Portfile, I found that the installation failed when
trying to build xorg-libxcb. This fails with...
DEBUG: setting option extract.args to '/opt/local/var/macports/distfiles/xorg-libxcb/libxcb-1.7.tar.bz2'
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libxcb/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libxcb/work" && /usr/bin/bzip2 -dc '/opt/local/var/macports/distfiles/xorg-libxcb/libxcb-1.7.tar.bz2' | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: patch phase started at Thu Feb 10 22:43:42 EST 2011
DEBUG: Executing org.macports.patch (xorg-libxcb)
---> Configuring xorg-libxcb
DEBUG: Using compiler 'Mac OS X gcc 4.2'
DEBUG: configure phase started at Thu Feb 10 22:43:42 EST 2011
DEBUG: Executing org.macports.configure (xorg-libxcb)
DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-O2 -arch x86_64 -arch i386' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch x86_64 -arch i386' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libxcb/work/.CC_PRINT_OPTIONS' F90FLAGS='-O2' LDFLAGS='-L/opt/local/lib -arch x86_64 -arch i386' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-O2' INSTALL='/usr/bin/install -c' PYTHON='/opt/local/bin/python2.7' OBJCFLAGS='-O2 -arch x86_64 -arch i386' FFLAGS='-O2' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libxcb/work/libxcb-1.7" && ./configure --prefix=/opt/local --disable-dependency-tracking'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether /opt/local/bin/python2.7 version >= 2.5... yes
checking for /opt/local/bin/python2.7 version... 2.7
checking for /opt/local/bin/python2.7 platform... darwin
checking for /opt/local/bin/python2.7 script directory... ${prefix}/lib/python2.7/site-packages
checking for /opt/local/bin/python2.7 extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for CHECK... no
checking build system type... x86_64-apple-darwin10.7.0
checking host system type... x86_64-apple-darwin10.7.0
checking for style of include used by make... GNU
checking for gcc... /usr/bin/gcc-4.2
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
checking dependency style of /usr/bin/gcc-4.2... none
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for grep that handles long lines and -e... /opt/local/bin/grep
checking for egrep... /opt/local/bin/grep -E
checking for fgrep... /opt/local/bin/grep -F
checking for ld used by /usr/bin/gcc-4.2... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from /usr/bin/gcc-4.2 object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... /usr/bin/gcc-4.2 -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/gcc-4.2 supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/gcc-4.2 option to produce PIC... -fno-common -DPIC
checking if /usr/bin/gcc-4.2 PIC flag -fno-common -DPIC works... yes
checking if /usr/bin/gcc-4.2 static flag -static works... no
checking if /usr/bin/gcc-4.2 supports -c -o file.o... yes
checking if /usr/bin/gcc-4.2 supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc-4.2 linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) /usr/bin/gcc-4.2
checking whether we are using the GNU C compiler... (cached) yes
checking whether /usr/bin/gcc-4.2 accepts -g... (cached) yes
checking for /usr/bin/gcc-4.2 option to accept ISO C89... (cached) none needed
checking dependency style of /usr/bin/gcc-4.2... (cached) none
checking for xsltproc... /opt/local/bin/xsltproc
checking for XCBPROTO... yes
checking for NEEDED... yes
checking for XDMCP... yes
checking for XdmcpWrap in -lXdmcp... yes
checking XCBPROTO_XCBINCLUDEDIR... /opt/local/share/xcb
checking XCBPROTO_XCBPYTHONDIR... /opt/local/lib/python2.6/site-packages
checking for ANSI C header files... (cached) yes
checking for library containing getaddrinfo... none required
checking for library containing connect... none required
checking for struct sockaddr_un.sun_len... yes
checking whether /usr/bin/gcc-4.2 supports symbol visibility... yes
checking for doxygen... no
WARNING:
The doxygen program was not found in your execute
You may have doxygen installed somewhere not covered by your path.
If this is the case make sure you have the packages installed, AND
that the doxygen program is in your execute path (see your
shell manual page on setting the $PATH environment variable), OR
alternatively, specify the program to use with --with-doxygen.
configure: WARNING: Warning: no doxygen detected. Documentation will not be built
checking for dot... no
configure: WARNING: Warning: no dot detected. Documentation will not be built
checking whether documentation is built... no
checking for launchd... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating xcb.pc
config.status: creating xcb-composite.pc
config.status: creating xcb-damage.pc
config.status: creating xcb-dpms.pc
config.status: creating xcb-dri2.pc
config.status: creating xcb-glx.pc
config.status: creating xcb-randr.pc
config.status: creating xcb-record.pc
config.status: creating xcb-render.pc
config.status: creating xcb-res.pc
config.status: creating xcb-screensaver.pc
config.status: creating xcb-shape.pc
config.status: creating xcb-shm.pc
config.status: creating xcb-sync.pc
config.status: creating xcb-xevie.pc
config.status: creating xcb-xf86dri.pc
config.status: creating xcb-xfixes.pc
config.status: creating xcb-xinerama.pc
config.status: creating xcb-xinput.pc
config.status: creating xcb-xprint.pc
config.status: creating xcb-xselinux.pc
config.status: creating xcb-xtest.pc
config.status: creating xcb-xv.pc
config.status: creating xcb-xvmc.pc
config.status: creating doc/xcb.doxygen
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Package: libxcb 1.7
Configuration
XDM support.........: yes
Build unit tests....: no
XCB buffer size.....: 16384
X11 extensions
Composite...........: yes
Damage..............: yes
Dpms................: yes
Dri2................: yes
Glx.................: yes
Randr...............: yes
Record..............: yes
Render..............: yes
Resource............: yes
Screensaver.........: yes
selinux.............: no
Shape...............: yes
Shm.................: yes
Sync................: yes
Xevie...............: yes
Xfixes..............: yes
Xfree86-dri.........: yes
xinerama............: yes
xinput..............: no
xprint..............: yes
xtest...............: yes
xv..................: yes
xvmc................: yes
Used CFLAGS:
CPPFLAGS............: -I/opt/local/include
CFLAGS..............: -O2 -arch x86_64 -arch i386
Warning CFLAGS......: -Wall -pedantic -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wnested-externs
Installation:
Prefix..............: /opt/local
---> Building xorg-libxcb
DEBUG: build phase started at Thu Feb 10 22:43:51 EST 2011
DEBUG: Executing org.macports.build (xorg-libxcb)
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libxcb/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libxcb/work/libxcb-1.7" && /usr/bin/make -j2 all'
Making all in src
/opt/local/bin/python2.7 ./c_client.py -p /opt/local/lib/python2.6/site-packages /opt/local/share/xcb/xproto.xml
/opt/local/bin/python2.7 ./c_client.py -p /opt/local/lib/python2.6/site-packages /opt/local/share/xcb/bigreq.xml
Failed to load the xcbgen Python package!
Make sure that xcb/proto installed it on your Python path.
If not, you will need to create a .pth file or define $PYTHONPATH
to extend the path.
Refer to the README file in xcb/proto for more info.
Traceback (most recent call last):
File "./c_client.py", line 1024, in <module>
from xcbgen.state import Module
ImportError: No module named xcbgen.state
Failed to load the xcbgen Python package!
Make sure that xcb/proto installed it on your Python path.
If not, you will need to create a .pth file or define $PYTHONPATH
to extend the path.
Refer to the README file in xcb/proto for more info.
Traceback (most recent call last):
File "./c_client.py", line 1024, in <module>
from xcbgen.state import Module
ImportError: No module named xcbgen.state
make[1]: *** [xproto.c] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [bigreq.c] Error 1
make: *** [all-recursive] Error 1
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libxcb/work/libxcb-1.7" && /usr/bin/make -j2 all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
DEBUG: Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for xorg-libxcb): org.macports.activate org.macports.build org.macports.destroot org.macports.archive org.macports.install
Error: Failed to install xorg-libxcb
Log for xorg-libxcb is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libxcb/main.log
Error: The following dependencies were not installed: wxWidgets libsdl xorg-libXext xorg-libX11 xorg-libxcb xorg-libXrandr xrender libsdl_mixer flac libogg libmikmod libvorbis smpeg libtool tiff
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Any ideas on how to work around this apparent circular loop?
Jack
More information about the macports-dev
mailing list