Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
more python woes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1741

PostPosted: Fri Oct 11, 2013 7:28 am    Post subject: more python woes Reply with quote

[rant]
The way that gentoo handles python now seems like an absolute disaster to me. I have had more problems compiling things in the past six months than I have had in the previous ten years
[/rant]

Somehow this feels like it belongs here rather than in "Gamers & Players."

Code:

# emerge gcompris

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] games-kids/gcompris-12.11  USE="gstreamer" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) games-kids/gcompris-12.11
 * gcompris-12.11.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking gcompris-12.11.tar.bz2 to /var/tmp/portage/games-kids/gcompris-12.11/work
>>> Source unpacked in /var/tmp/portage/games-kids/gcompris-12.11/work
>>> Preparing source in /var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11 ...
 * Applying gcompris-12.11-build.patch ...                                                                                                      [ ok ]
 * Running eautoreconf in '/var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11' ...
 * Running glib-gettextize --copy --force ...                                                                                                   [ ok ]
 * Running intltoolize --automake --copy --force ...                                                                                            [ ok ]
 * Running libtoolize --install --copy --force --automake ...                                                                                   [ ok ]
 * Running aclocal -I m4 ...                                                                                                                    [ ok ]
 * Running autoconf ...                                                                                                                         [ ok ]
 * Running autoheader ...                                                                                                                       [ ok ]
 * Running automake --add-missing --copy ...                                                                                                    [ ok ]
 * Running elibtoolize in: gcompris-12.11/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.2 patch ...
 *   Applying target-nm/2.4.2 patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11 ...
 * econf: updating gcompris-12.11/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating gcompris-12.11/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --disable-dependency-tracking --prefix=/usr/games --libdir=/usr/games/lib64 --datadir=/usr/share/games --sysconfdir=/etc/games --localstatedir=/var/games --datarootdir=/usr/share/games --datadir=/usr/share/games --localedir=/usr/share/locale --infodir=/usr/share/info --with-python=/usr/bin/python2.7 --disable-sdlmixer --enable-sqlite --enable-py-build-only
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11/missing: Unknown `--is-lightweight' option
Try `/var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '250' is supported by ustar format... yes
checking whether GID '250' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
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 x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for library containing strerror... none required
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) none
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) none
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-ld
checking if the linker (x86_64-pc-linux-gnu-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-pc-linux-gnu-nm -B
checking the name lister (/usr/bin/x86_64-pc-linux-gnu-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for x86_64-pc-linux-gnu-ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for archiver @FILE support... @
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/x86_64-pc-linux-gnu-nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for sysroot... no
checking for x86_64-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
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 x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (x86_64-pc-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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... no
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking what warning flags to pass to the C compiler... -Wall -Wmissing-prototypes
checking what language compliance flags to pass to the C compiler...
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.12.4
checking for XML::Parser... ok
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/gmsgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GCOMPRIS... yes
checking for OSX... checking for XOpenDisplay in -lX11... yes
no
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for /proc/self/maps... yes
checking whether everything is installed to the same prefix... no
checking whether binary relocation support should be enabled... no
checking for perl5... no
checking for perl... /usr/bin/perl
checking for Win32 platform in general... no
checking for gnuchess... /usr/games/bin/gnuchess
checking for makeinfo... /usr/bin/makeinfo
checking for texi2html... /usr/bin/texi2html
checking wether we build with SDLMixer (will replace gstreamer by sdl mixer if enabled)... no
checking for AUDIO... yes
checking wether we build with SQLITE (if not profile will be disabled)... yes
checking wether we build with Sugar DE support... no
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib64/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
checking for headers required to compile python extensions... found
checking for PYGTK... no
configure: error: Package requirements (pygtk-2.0 pycairo) were not met:

No package 'pycairo' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PYGTK_CFLAGS
and PYGTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11/config.log
 * ERROR: games-kids/gcompris-12.11::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 5942:  Called egamesconf '--datarootdir=/usr/share/games' '--datadir=/usr/share/games' '--localedir=/usr/share/locale' '--infodir=/usr/share/info' '--with-python=/usr/bin/python2.7' '--disable-sdlmixer' '--enable-sqlite' '--enable-py-build-only'
 *        environment, line 1652:  Called econf '--prefix=/usr/games' '--libdir=/usr/games/lib64' '--datadir=/usr/share/games' '--sysconfdir=/etc/games' '--localstatedir=/var/games' '--datarootdir=/usr/share/games' '--datadir=/usr/share/games' '--localedir=/usr/share/locale' '--infodir=/usr/share/info' '--with-python=/usr/bin/python2.7' '--disable-sdlmixer' '--enable-sqlite' '--enable-py-build-only'
 *   phase-helpers.sh, line  521:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=games-kids/gcompris-12.11::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-kids/gcompris-12.11::gentoo'`.
 * The complete build log is located at '/var/log/portage/games-kids:gcompris-12.11:20131011-064204.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-kids/gcompris-12.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-kids/gcompris-12.11/temp/environment'.
 * Working directory: '/var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11'
 * S: '/var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11'

>>> Failed to emerge games-kids/gcompris-12.11, Log file:

>>>  '/var/log/portage/games-kids:gcompris-12.11:20131011-064204.log'


A few lines from the config.log

Code:

configure:17227: checking for python version
configure:17234: result: 2.7
configure:17246: checking for python platform
configure:17253: result: linux2
configure:17279: checking for python script directory
configure:17314: result: ${prefix}/lib64/python2.7/site-packages
configure:17323: checking for python extension module directory
configure:17358: result: ${exec_prefix}/lib64/python2.7/site-packages
configure:17372: checking for headers required to compile python extensions
configure:17404: x86_64-pc-linux-gnu-gcc -E  -I/usr/include/python2.7 conftest.c
configure:17404: $? = 0
configure:17405: result: found
configure:17443: checking for PYGTK
configure:17450: $PKG_CONFIG --exists --print-errors "pygtk-2.0 pycairo"
Package pycairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `pycairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pycairo' found
configure:17453: $? = 1
configure:17467: $PKG_CONFIG --exists --print-errors "pygtk-2.0 pycairo"
Package pycairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `pycairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pycairo' found
configure:17470: $? = 1
configure:17484: result: no
No package 'pycairo' found
configure:17500: error: Package requirements (pygtk-2.0 pycairo) were not met:

No package 'pycairo' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.


Finally:

Code:

$ emerge -p pycairo

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-python/pycairo-1.10.0-r4  USE="svg xcb -doc -examples {-test}" PYTHON_TARGETS="python2_7 -python2_6 -python3_2 (-python3_3) (-python3_1%)" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


$ emerge -p pygtk

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-python/pygtk-2.24.0-r3:2  USE="-doc -examples {-test}" PYTHON_TARGETS="python2_7 -python2_6" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


Maybe I am just dense, but the problem does not seem obvious to me.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Oct 11, 2013 8:16 am    Post subject: Reply with quote

Code:
pkg-config --exists --print-errors pycairo


pycairo should have installed /usr/lib/pkgconfig/pycairo.pc
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1741

PostPosted: Fri Oct 11, 2013 12:09 pm    Post subject: Reply with quote

PaulBredbury wrote:
Code:
pkg-config --exists --print-errors pycairo


pycairo should have installed /usr/lib/pkgconfig/pycairo.pc


Indeed, it did not. In fact, it appears that the most recent install of pycairo actually removed that file:

Code:

$ dog /var/log/portage/dev-python:pycairo-1.10.0-r4:20130621-113105.log

[...]

 * checking 3 files for package collisions
>>> Merging dev-python/pycairo-1.10.0-r4 to /
--- /usr/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/pycairo-1.10.0-r4/
>>> /usr/share/doc/pycairo-1.10.0-r4/NEWS.bz2
>>> /usr/share/doc/pycairo-1.10.0-r4/AUTHORS.bz2
>>> /usr/share/doc/pycairo-1.10.0-r4/README.bz2
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- replaced obj /usr/share/doc/pycairo-1.10.0-r4/README.bz2
--- replaced obj /usr/share/doc/pycairo-1.10.0-r4/NEWS.bz2
--- replaced obj /usr/share/doc/pycairo-1.10.0-r4/AUTHORS.bz2
--- replaced dir /usr/share/doc/pycairo-1.10.0-r4
--- replaced dir /usr/share/doc
--- replaced dir /usr/share
<<<          obj /usr/lib64/python2.7/site-packages/cairo/_cairo.so
<<<          obj /usr/lib64/python2.7/site-packages/cairo/__init__.py
<<<          obj /usr/lib64/pkgconfig/pycairo.pc
<<<          obj /usr/include/pycairo/pycairo.h
--- replaced dir /usr
<<<          dir /usr/lib64/python2.7/site-packages/cairo
--- !empty   dir /usr/lib64/python2.7/site-packages
--- !empty   dir /usr/lib64/python2.7
--- !empty   dir /usr/lib64/pkgconfig
--- !empty   dir /usr/lib64
<<<          dir /usr/include/pycairo
--- !empty   dir /usr/include
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> dev-python/pycairo-1.10.0-r4 merged.


So why did the latest reinstall remove that file?
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1741

PostPosted: Mon Oct 14, 2013 3:01 am    Post subject: Reply with quote

Bumping this up. Can someone explain why pycairo removed /usr/lib/pkgconfig/pycairo.pc?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Oct 14, 2013 3:36 am    Post subject: Reply with quote

Maybe the build failed, but the failure wasn't detected by the ebuild.

Check the compilation messages.
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1741

PostPosted: Tue Oct 15, 2013 1:14 pm    Post subject: Reply with quote

PaulBredbury wrote:
Maybe the build failed, but the failure wasn't detected by the ebuild.

Check the compilation messages.


There is not much there (the whole log file is about 4.5k).

Most of the rest of the log file is this (in addition to the section listed above):

Code:

 * python2_7: running preparation
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0 ...
 * python2_7: running run_in_build_dir waf-utils_src_configure --nopyc --nopyo
CCFLAGS="-O2 -fomit-frame-pointer -pipe -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mfpmath=sse" LINKFLAGS="-Wl,-O1 -Wl,--as-needed" "./waf" --prefix=/usr --libdir=/usr/lib64 --nopyc --nopyo configure
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0 ...
 * python2_7: running run_in_build_dir waf-utils_src_compile
"./waf" build --verbose --jobs=5
>>> Source compiled.
>>> Test phase [not enabled]: dev-python/pycairo-1.10.0-r4

>>> Install pycairo-1.10.0-r4 into /var/tmp/portage/dev-python/pycairo-1.10.0-r4/image/ category dev-python
 * python2_7: running run_in_build_dir waf-utils_src_install
"./waf" --destdir="/var/tmp/portage/dev-python/pycairo-1.10.0-r4/image/" install
>>> Completed installing pycairo-1.10.0-r4 into /var/tmp/portage/dev-python/pycairo-1.10.0-r4/image/


OK, I just reinstalled pycairo (seemed like a reasonable thing to try), and this time, I got a completely different log:

Code:

 * python2_7: running preparation
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0 ...
 * python2_7: running run_in_build_dir waf-utils_src_configure --nopyc --nopyo
CCFLAGS="-march=native -O2 -pipe" LINKFLAGS="-Wl,-O1 -Wl,--as-needed" "./waf" --prefix=/usr --libdir=/usr/lib64 --nopyc --nopyo configure
Setting top to                           : /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7
Setting out to                           : /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory
Checking for 'gcc' (c compiler)          : ok
Checking for program python              : /usr/bin/python2.7
Checking for python version              : (2, 7, 5, 'final', 0)
Checking for library python2.7           : yes
Checking for program python2.7-config    : /usr/bin/python2.7-config
Checking for header Python.h             : yes
Checking for program pkg-config          : /usr/bin/pkg-config
Checking for 'cairo' >= 1.10.0           : yes
Checking for 'xpyb' >= 1.3               : yes
'configure' finished successfully (0.331s)
  ./options()
  ./configure()
Configuration:
PREFIX                                   : /usr
LIBDIR                                   : /usr/lib64
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0 ...
 * python2_7: running run_in_build_dir waf-utils_src_compile
"./waf" build --verbose --jobs=5
Waf: Entering directory `/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory'
[1/9] c: src/cairomodule.c -> build_directory/src/cairomodule.c.1.o
04:22:18 runner ['x86_64-pc-linux-gnu-gcc', '-march=native', '-O2', '-pipe', '-fPIC', '-pthread', '-fno-strict-aliasing', '-march=native', '-fwrapv', '-fno-strict-aliasing', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory/src', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/src', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib64/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/directfb', '-I/usr/include/libdrm', '-I/usr/include/libpng15', '-I/usr/include/python2.7', '-D_REENTRANT', '-DNDEBUG', '../src/cairomodule.c', '-c', '-o', 'src/cairomodule.c.1.o']
[2/9] c: src/context.c -> build_directory/src/context.c.1.o
04:22:18 runner ['x86_64-pc-linux-gnu-gcc', '-march=native', '-O2', '-pipe', '-fPIC', '-pthread', '-fno-strict-aliasing', '-march=native', '-fwrapv', '-fno-strict-aliasing', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory/src', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/src', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib64/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/directfb', '-I/usr/include/libdrm', '-I/usr/include/libpng15', '-I/usr/include/python2.7', '-D_REENTRANT', '-DNDEBUG', '../src/context.c', '-c', '-o', 'src/context.c.1.o']
[3/9] c: src/font.c -> build_directory/src/font.c.1.o
04:22:18 runner ['x86_64-pc-linux-gnu-gcc', '-march=native', '-O2', '-pipe', '-fPIC', '-pthread', '-fno-strict-aliasing', '-march=native', '-fwrapv', '-fno-strict-aliasing', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory/src', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/src', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib64/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/directfb', '-I/usr/include/libdrm', '-I/usr/include/libpng15', '-I/usr/include/python2.7', '-D_REENTRANT', '-DNDEBUG', '../src/font.c', '-c', '-o', 'src/font.c.1.o']
[4/9] c: src/path.c -> build_directory/src/path.c.1.o
04:22:18 runner ['x86_64-pc-linux-gnu-gcc', '-march=native', '-O2', '-pipe', '-fPIC', '-pthread', '-fno-strict-aliasing', '-march=native', '-fwrapv', '-fno-strict-aliasing', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory/src', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/src', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib64/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/directfb', '-I/usr/include/libdrm', '-I/usr/include/libpng15', '-I/usr/include/python2.7', '-D_REENTRANT', '-DNDEBUG', '../src/path.c', '-c', '-o', 'src/path.c.1.o']
[5/9] c: src/pattern.c -> build_directory/src/pattern.c.1.o
04:22:18 runner ['x86_64-pc-linux-gnu-gcc', '-march=native', '-O2', '-pipe', '-fPIC', '-pthread', '-fno-strict-aliasing', '-march=native', '-fwrapv', '-fno-strict-aliasing', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory/src', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/src', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib64/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/directfb', '-I/usr/include/libdrm', '-I/usr/include/libpng15', '-I/usr/include/python2.7', '-D_REENTRANT', '-DNDEBUG', '../src/pattern.c', '-c', '-o', 'src/pattern.c.1.o']
[6/9] c: src/matrix.c -> build_directory/src/matrix.c.1.o
04:22:19 runner ['x86_64-pc-linux-gnu-gcc', '-march=native', '-O2', '-pipe', '-fPIC', '-pthread', '-fno-strict-aliasing', '-march=native', '-fwrapv', '-fno-strict-aliasing', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory/src', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/src', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib64/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/directfb', '-I/usr/include/libdrm', '-I/usr/include/libpng15', '-I/usr/include/python2.7', '-D_REENTRANT', '-DNDEBUG', '../src/matrix.c', '-c', '-o', 'src/matrix.c.1.o']
[7/9] c: src/surface.c -> build_directory/src/surface.c.1.o
04:22:19 runner ['x86_64-pc-linux-gnu-gcc', '-march=native', '-O2', '-pipe', '-fPIC', '-pthread', '-fno-strict-aliasing', '-march=native', '-fwrapv', '-fno-strict-aliasing', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory/src', '-I/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/src', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib64/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/directfb', '-I/usr/include/libdrm', '-I/usr/include/libpng15', '-I/usr/include/python2.7', '-D_REENTRANT', '-DNDEBUG', '../src/surface.c', '-c', '-o', 'src/surface.c.1.o']
[8/9] subst: pycairo.pc.in -> pycairo.pc
[9/9] cshlib: build_directory/src/cairomodule.c.1.o build_directory/src/context.c.1.o build_directory/src/font.c.1.o build_directory/src/path.c.1.o build_directory/src/pattern.c.1.o build_directory/src/matrix.c.1.o build_directory/src/surface.c.1.o -> build_directory/src/_cairo.so
04:22:19 runner ['x86_64-pc-linux-gnu-gcc', 'src/cairomodule.c.1.o', 'src/context.c.1.o', 'src/font.c.1.o', 'src/path.c.1.o', 'src/pattern.c.1.o', 'src/matrix.c.1.o', 'src/surface.c.1.o', '-o', '/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory/src/_cairo.so', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L.', '-lcairo', '-lpython2.7', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-O1', '-Wl,--as-needed', '-shared', '-Wl,-O1', '-Wl,--as-needed', '-pthread', '-Wl,-O1', '-Wl,--as-needed']
Waf: Leaving directory `/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory'
'build' finished successfully (0.893s)
  ./options()
  ./build()
  src/build()
>>> Source compiled.
>>> Test phase [not enabled]: dev-python/pycairo-1.10.0-r4
>>> Install pycairo-1.10.0-r4 into /var/tmp/portage/dev-python/pycairo-1.10.0-r4/image/ category dev-python
 * python2_7: running run_in_build_dir waf-utils_src_install
"./waf" --destdir="/var/tmp/portage/dev-python/pycairo-1.10.0-r4/image/" install
Waf: Entering directory `/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory'
+ install /var/tmp/portage/dev-python/pycairo-1.10.0-r4/image/usr/include/pycairo/pycairo.h (from src/pycairo.h)
+ install /var/tmp/portage/dev-python/pycairo-1.10.0-r4/image/usr/lib64/pkgconfig/pycairo.pc (from pycairo.pc)
+ install /var/tmp/portage/dev-python/pycairo-1.10.0-r4/image/usr/lib64/python2.7/site-packages/cairo/_cairo.so (from build_directory/src/_cairo.so)
Waf: Leaving directory `/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory'
+ install /var/tmp/portage/dev-python/pycairo-1.10.0-r4/image/usr/lib64/python2.7/site-packages/cairo/__init__.py (from src/__init__.py)
'install' finished successfully (0.015s)
  ./options()
  ./build()
  src/build()
>>> Completed installing pycairo-1.10.0-r4 into /var/tmp/portage/dev-python/pycairo-1.10.0-r4/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/lib64/python2.7/site-packages/cairo/_cairo.so
ecompressdir: bzip2 -9 /usr/share/doc
 * checking 7 files for package collisions
>>> Merging dev-python/pycairo-1.10.0-r4 to /
--- /usr/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/pycairo-1.10.0-r4/
>>> /usr/share/doc/pycairo-1.10.0-r4/NEWS.bz2
>>> /usr/share/doc/pycairo-1.10.0-r4/AUTHORS.bz2
>>> /usr/share/doc/pycairo-1.10.0-r4/README.bz2
--- /usr/lib64/
--- /usr/lib64/python2.7/
--- /usr/lib64/python2.7/site-packages/
--- /usr/lib64/python2.7/site-packages/cairo/
>>> /usr/lib64/python2.7/site-packages/cairo/__init__.py
>>> /usr/lib64/python2.7/site-packages/cairo/_cairo.so
--- /usr/lib64/pkgconfig/
>>> /usr/lib64/pkgconfig/pycairo.pc
--- /usr/include/
--- /usr/include/pycairo/
>>> /usr/include/pycairo/pycairo.h
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- replaced obj /usr/share/doc/pycairo-1.10.0-r4/README.bz2
--- replaced obj /usr/share/doc/pycairo-1.10.0-r4/NEWS.bz2
--- replaced obj /usr/share/doc/pycairo-1.10.0-r4/AUTHORS.bz2
--- replaced dir /usr/share/doc/pycairo-1.10.0-r4
--- replaced dir /usr/share/doc
--- replaced dir /usr/share
--- replaced obj /usr/lib64/python2.7/site-packages/cairo/_cairo.so
--- replaced obj /usr/lib64/python2.7/site-packages/cairo/__init__.py
--- replaced dir /usr/lib64/python2.7/site-packages/cairo
--- replaced dir /usr/lib64/python2.7/site-packages
--- replaced dir /usr/lib64/python2.7
--- replaced obj /usr/lib64/pkgconfig/pycairo.pc
--- replaced dir /usr/lib64/pkgconfig
--- replaced dir /usr/lib64
--- replaced obj /usr/include/pycairo/pycairo.h
--- replaced dir /usr/include/pycairo
--- replaced dir /usr/include
--- replaced dir /usr
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> dev-python/pycairo-1.10.0-r4 merged.


Now the gcompris compilation is failing because pygtk.h is missing (sure enough it was not installed when pygtk was emerged):

Code:

/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../intl -I../../src/goocanvas/src -pthread -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm -I/usr/include/libpng15 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/python2.7 -pthread -D_REENTRANT -I/usr/include/pygtk-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm -I/usr/include/libpng15       -O2 -fomit-frame-pointer -pipe -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mfpmath=sse  -Wall -c -o menu2.lo menu2.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../intl -I../../src/goocanvas/src -pthread -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm -I/usr/include/libpng15 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python2.7 -pthread -D_REENTRANT -I/usr/include/pygtk-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm -I/usr/include/libpng15 -O2 -fomit-frame-pointer -pipe -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mfpmath=sse -Wall -c menu2.c  -fPIC -DPIC -o .libs/menu2.o
In file included from ../../src/goocanvas/src/goocanvassvg.h:13:0,
                 from ../../src/goocanvas/src/goocanvas.h:22,
                 from ../../src/gcompris/gcompris.h:26,
                 from menu2.c:27:
/usr/include/librsvg-2.0/librsvg/rsvg-cairo.h:27:2: warning: #warning "Including <librsvg/rsvg-cairo.h> directly is deprecated." [-Wcpp]
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -fomit-frame-pointer -pipe -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mfpmath=sse  -Wall   -module -avoid-version  -Wl,-O1 -Wl,--as-needed -o libmenu.la -rpath /usr/games/lib64/gcompris menu2.lo  -lX11
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/menu2.o   -Wl,--as-needed -lX11  -O2 -march=core2 -mcx16 -msahf -msse4.1 -mfpmath=sse -Wl,-O1   -Wl,-soname -Wl,libmenu.so -o .libs/libmenu.so
libtool: link: ( cd ".libs" && rm -f "libmenu.la" && ln -s "../libmenu.la" "libmenu.la" )
/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../intl -I../../src/goocanvas/src -pthread -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm -I/usr/include/libpng15 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/python2.7 -pthread -D_REENTRANT -I/usr/include/pygtk-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm -I/usr/include/libpng15      -fno-strict-aliasing -pthread -D_REENTRANT -I/usr/include/pygtk-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm -I/usr/include/libpng15  -DPYGOOCANVAS_MAJOR_VERSION=0 -DPYGOOCANVAS_MINOR_VERSION=0 -DPYGOOCANVAS_MICRO_VERSION=0 -O2 -fomit-frame-pointer -pipe -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mfpmath=sse  -Wall -c -o libpython_la-python.lo `test -f 'python.c' || echo './'`python.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../intl -I../../src/goocanvas/src -pthread -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm -I/usr/include/libpng15 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python2.7 -pthread -D_REENTRANT -I/usr/include/pygtk-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm -I/usr/include/libpng15 -fno-strict-aliasing -pthread -D_REENTRANT -I/usr/include/pygtk-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libdrm -I/usr/include/libpng15 -DPYGOOCANVAS_MAJOR_VERSION=0 -DPYGOOCANVAS_MINOR_VERSION=0 -DPYGOOCANVAS_MICRO_VERSION=0 -O2 -fomit-frame-pointer -pipe -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mfpmath=sse -Wall -c python.c  -fPIC -DPIC -o .libs/libpython_la-python.o
python.c:23:25: fatal error: pygtk/pygtk.h: No such file or directory
compilation terminated.
make[4]: *** [libpython_la-python.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11/src/boards'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11/src/boards'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11'
make: *** [all] Error 2
 * ERROR: games-kids/gcompris-12.11::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=games-kids/gcompris-12.11::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-kids/gcompris-12.11::gentoo'`.
 * The complete build log is located at '/var/log/portage/games-kids:gcompris-12.11:20131015-124552.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-kids/gcompris-12.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-kids/gcompris-12.11/temp/environment'.
 * Working directory: '/var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11'
 * S: '/var/tmp/portage/games-kids/gcompris-12.11/work/gcompris-12.11'

>>> Failed to emerge games-kids/gcompris-12.11, Log file:

>>>  '/var/log/portage/games-kids:gcompris-12.11:20131015-124552.log'


Reinstalled pygtk (apparently it couldn't find pycairo before, which was the reason the header file was missing), and finally gcompris compiled correctly.

Thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum