I could not compile gimp with python USE flag. The patch (see below) is just a work-a-round for me. I do not believe, that it works for everyone. I applied it quick and dirty in the gimp-2.2.7-r1 ebuild: --- gimp-2.2.7-r1.ebuild.old 2005-06-19 19:28:51.655305023 +0200 +++ gimp-2.2.7-r1.ebuild 2005-06-19 19:21:54.249371726 +0200 @@ -133,6 +133,8 @@ `use_enable svg` \ `use_enable debug` || die + epatch ${FILESDIR}/${P}-libtool-fix.patch + # X isn't optional (#58003) atm # `use_with X x` \ Reproducible: Always Steps to Reproduce: 1. # emerge -auv gimp These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] media-gfx/gimp-2.2.7-r1 [2.2.7] +aalib (-altivec) -debug +doc -gimpprint +gtkhtml -hardened +jpeg +lcms +mmx -mng +png +python -scanner -smp +sse +svg +tiff -wmf 0 kB Actual Results: /usr/bin/i686-pc-linux-gnu-nm -B .libs/gimpmodule.o .libs/pygimp-image.o .libs/pygimp-drawable.o .libs/pygimp-tile.o .libs/pygimp-display.o . libs/pygimp-parasite.o .libs/pygimp-pdb.o | | /bin/sed 's/.* //' | sort | uniq > .libs/gimpmodule.exp ../../libtool: eval: line 4221: syntax error near unexpected token `|' ../../libtool: eval: line 4221: `/usr/bin/i686-pc-linux-gnu-nm -B .libs/gimpmodule.o .libs/pygimp-image.o .libs/pygimp-drawable.o .libs/pygim p-tile.o .libs/pygimp-display.o .libs/pygimp-parasite.o .libs/pygimp-pdb.o | | /bin/sed 's/.* //' | sort | uniq > .libs/gimpmodule.exp' make[4]: *** [gimpmodule.la] Error 1 make[4]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-gcc -shared .libs/procbrowser.o -Wl,--whole-archive ../../plug-ins/dbbrowser/.libs/libgimpprocbrowser.a -Wl,--no-whole-arch ive -Wl,--rpath -Wl,/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2.7/libgimp/.libs -Wl,--rpath -Wl,/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2 .7/libgimpwidgets/.libs -Wl,--rpath -Wl,/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2.7/libgimpcolor/.libs -Wl,--rpath -Wl,/var/tmp/portage/gim p-2.2.7-r1/work/gimp-2.2.7/libgimpbase/.libs ../../libgimp/.libs/libgimpui-2.0.so -L/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2.7/libgimp/.li bs -L/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2.7/libgimpwidgets/.libs -L/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2.7/libgimpcolor/.libs - L/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2.7/libgimpmodule/.libs -L/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2.7/libgimpbase/.libs -L/usr/ lib ../../libgimpwidgets/.libs/libgimpwidgets-2.0.so ../../libgimp/.libs/libgimp-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so ../../lib gimpbase/.libs/libgimpbase-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so - lm /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl / usr/lib/libglib-2.0.so -march=pentium4 -Wl,-soname -Wl,gimpprocbrowsermodule.so -o .libs/gimpprocbrowsermodule.so creating gimpprocbrowsermodule.la (cd .libs && rm -f gimpprocbrowsermodule.la && ln -s ../gimpprocbrowsermodule.la gimpprocbrowsermodule.la) make[4]: Leaving directory `/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2.7/plug-ins/pygimp' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2.7/plug-ins/pygimp' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2.7/plug-ins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gimp-2.2.7-r1/work/gimp-2.2.7' make: *** [all] Error 2 !!! ERROR: media-gfx/gimp-2.2.7-r1 failed. !!! Function src_compile, Line 138, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Compile gimp-2.2.7-r1 I placed the following patch in ${FILESDIR}/gimp-2.2.7-libtool-fix.patch --- gimp-2.2.7/libtool 2005-06-19 18:59:07.186092066 +0200 +++ gimp-2.2.7/libtool.new 2005-06-19 19:13:27.452625265 +0200 @@ -334,7 +334,7 @@ always_export_symbols=no # The commands to list exported symbols. -export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" +export_symbols_cmds="\$NM \$libobjs \$convenience | \$SED 's/.* //' | sort | uniq > \$export_symbols" # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=""
please attach your emerge info, Thanks!
emerge info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11.10 i686) ================================================================= System uname: 2.6.11.10 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz Gentoo Base System version 1.6.12 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.1.3-r1, 2.2.3-r5, 2.3.5-r1, 2.4.1-r1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.math.bme.hu http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/gentoo/ ftp://ftp.tiscali.nl/pub/mirror/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo " LINGUAS="de en zh_CN zh_TW ja ko" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://lisa.cs.uni-potsdam.de/gentoo-portage" USE="x86 X aalib acl acpi adns alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bonobo cdr crypt cscope cups curl dba directfb doc dvd eds emboss encode esd ethereal f77 faad fam fbcon firebird flac foomaticdb fortran gd gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imagemagick imap imlib imlib2 ipv6 java jikes jpeg junit kde kdeenablefinal lcms ldap lesstif libg++ libwww mad mbox mikmod mmx motif mozilla mp3 mpeg mpeg3 mysql nas ncurses nls nptl odbc ogg oggvorbis opengl oss pam pdflib perl plotutils png postgres ppds python qt readline ruby samba sasl sdl slang snmp spell sqlite sse sse2 ssl svga tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis wxwindows xface xine xinerama xml xml2 xmms xosd xv zlib linguas_de linguas_en linguas_zh_CN linguas_zh_TW linguas_ja linguas_ko userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
if you do: cat /usr/bin/libtool | grep global_symbol_pipe what do you get? Thanks!
global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'" export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" if test -z "$global_symbol_pipe"; then if test -z "$global_symbol_pipe"; then if test -n "$NM" && test -n "$global_symbol_pipe"; then $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" # lt_preloaded_symbols. The linker will fail if global_symbol_pipe global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'" export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'" export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" ----------------- I will try to remerge libtool?!
could you attach config.log? Thanks!
Created attachment 61726 [details] config.log Remerging libtool did not change the error.
okay, please try to cool down your CFLAGS, b/c I think its causing your issue because of this in your config.log: configure:5949: checking command to parse /usr/bin/i686-pc-linux-gnu-nm -B output from i686-pc-linux-gnu-gcc object configure:6045: i686-pc-linux-gnu-gcc -c -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe conftest.c >&5 configure:6048: $? = 0 configure:6052: /usr/bin/i686-pc-linux-gnu-nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm /usr/bin/i686-pc-linux-gnu-nm: conftest.o: File format not recognized configure:6055: $? = 0 cannot run sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' configure:6045: i686-pc-linux-gnu-gcc -c -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe conftest.c >&5 configure:6048: $? = 0 configure:6052: /usr/bin/i686-pc-linux-gnu-nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' \> conftest.nm /usr/bin/i686-pc-linux-gnu-nm: conftest.o: File format not recognized configure:6055: $? = 0 cannot run sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' configure:6145: result: failed please report back with results ( if you find this works, perhaps try to figure out which of your cflags is causing it, if this is even the issue ). Thanks!
Okay ... when I remove "-pipe" from the use flags, gimp compiles just fine. What I am wondering about is, that on two other gentoo boxes (with the same use flags) this problem did not appear: "emerge info" box one (okay, this is an athlon-mp ...): Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.4.20050125-r1, 2.6.12 i686) ================================================================= System uname: 2.6.12 i686 AMD Athlon(TM) MP 2000 [...] CFLAGS="-march=athlon-mp -O3 -pipe -funroll-loops -fprefetch-loop-arrays" [...] "emerge info" box two: Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.4, glibc-2.3.4.20050125-r1, 2.6.11.12 i686) ================================================================= System uname: 2.6.11.12 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz [...] CFLAGS="-O3 -march=pentium4 -fprefetch-loop-arrays -pipe -fomit-frame-pointer" [...]
cflag optimization troubles