I didn't actually look into the details, but a buddy of mine did, and claims this is due to the fact that we are running on Athlons. YMMV. Here's the actual output from the ebuild: g++ -o mythepg main.o -L/usr/qt/3/lib -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavcodec -L../../libs/libavformat -lmythtv-0.18.1 -lmythavformat-0.18.1 -lmythavcodec-0.18.1 -lmyth-0.18.1 -lfreetype -lmp3lame -lasound -L/usr/kde/3.3/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -L/usr/X11R6/lib -lXinerama -lXv -lX11 -lXext -lXxf86vm -lXvMCNVIDIA -lXvMC -lGL -lGLU -lqt-mt -lXext -lX11 -lm -lpthread ../../libs/libavcodec/libmythavcodec-0.18.1.so: undefined reference to `postProcess_C' collect2: ld returned 1 exit status make[2]: *** [mythprogfind] Error 1 make[2]: Leaving directory `/var/tmp/portage/mythtv-0.18.1-r2/work/mythtv-0.18.1/programs/mythprogfind' make[1]: *** [sub-mythprogfind] Error 2 ../../libs/libavcodec/libmythavcodec-0.18.1.so: undefined reference to `postProcess_C' collect2: ld returned 1 exit status make[2]: *** [mythepg] Error 1 make[2]: Leaving directory `/var/tmp/portage/mythtv-0.18.1-r2/work/mythtv-0.18.1/programs/mythepg' make[1]: *** [sub-mythepg] Error 2 make: *** [sub-programs] Error 2 !!! ERROR: media-tv/mythtv-0.18.1-r2 failed. !!! Function src_compile, Line 140, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. 2. 3. I honestly don't know, but is posting a bug about a ~x86 ebuild considered appropriate?
Created attachment 60416 [details] Build log I'm getting this on my athlon-mp system, a USE=frontendonly system. FWIW, the CFLAGS on the problematic system: CFLAGS="-march=athlon-mp -O3 -pipe" Working systems: CFLAGS="-march=athlon-xp -O3 -pipe" CFLAGS="-march=pentium3 -O3 -fprefetch-loop-arrays -funroll-loops -pipe" I've attached my full build log.
Useless console snippet... and a full build log... but no emerge info. Does no one read the instructions when posting bugs?
Gentoo Base System version 1.4.16 Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.200 41102-r1, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) MP 2800+ Python: dev-lang/python-2.1.3-r1,dev-lang/python-2.2.3-r5,dev-lang/ python-2.3.5 [2.3.5 (#1, Apr 28 2005, 11:50:23)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.1.3-r1, 2.2.3-r5, 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-mp -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share /config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/ mozilla/defaults/pref /usr/share/config /var/qmail/control /var/spool/amanda/.am andahosts" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-mp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ccccom.com http://mirror.datapipe.net/gentoo http: //mirrors.tds.net/gentoo http://gentoo.osuosl.org/" LC_ALL="en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/data/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://homeserver-02/gentoo-portage" USE="x86 3dnow S3TC X Xaw3d a52 aac acpi acpi4linux adns alsa apache2 avi bash-c ompletion berkdb bonobo cdda cddb cdparanoia cdr crypt cscope cups curl dga divx 4linux dts dv dvd dvdr dvdread eds emboss encode escreen esd ethereal evms2 evo expat faad fam fbcon ffmpeg flac flash font-server foomaticdb fortran frontendon ly gb gd gdbm ggi gif gimp gimpprint gmp gnome gphoto2 gpm gstreamer gtk gtk2 gt khtml guile hardenedphp hbci httpd imagemagick imap imlib jabber java jikes joys tick jpeg junit kerberos krb4 lcms ldap libg++ libwww live lm_sensors lzo lzw-ti ff mad maildir matroska mcal mdb memlimit mikmod mldonkeypango mmx motif mozilla mozp3p mozsvg mozxmlterm mp3 mpeg mpeg2 mpeg4 mplayer mysql mythtv nagios-dns n PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/data/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://homeserver-02/gentoo-portage" USE="x86 3dnow S3TC X Xaw3d a52 aac acpi acpi4linux adns alsa apache2 avi bash-c ompletion berkdb bonobo cdda cddb cdparanoia cdr crypt cscope cups curl dga divx 4linux dts dv dvd dvdr dvdread eds emboss encode escreen esd ethereal evms2 evo expat faad fam fbcon ffmpeg flac flash font-server foomaticdb fortran frontendon ly gb gd gdbm ggi gif gimp gimpprint gmp gnome gphoto2 gpm gstreamer gtk gtk2 gt khtml guile hardenedphp hbci httpd imagemagick imap imlib jabber java jikes joys tick jpeg junit kerberos krb4 lcms ldap libg++ libwww live lm_sensors lzo lzw-ti ff mad maildir matroska mcal mdb memlimit mikmod mldonkeypango mmx motif mozilla mozp3p mozsvg mozxmlterm mp3 mpeg mpeg2 mpeg4 mplayer mysql mythtv nagios-dns n agios-ntp nagios-ping nagios-ssh ncurses net network nls nocd nptl nptlonly ntlm odbc offensive ofx ogg oggvorbis opengl oss pam pcap pda pdflib pear-db perl pn g pnp postgres ppds python quicktime readline rogue rtc ruby samba scanner sdl s ilc slang snmp socks5 speex spell sse ssl stream svg svga tcltk tcpd theora thre ads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 videos vim-wit h-x vorbis wxwindows xchattext xine xml xml2 xmms xosd xpm xrandr xv xvid xvmc y ahoo yv12 zeo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LDFLAGS, LINGUAS
David, please re-open this - I've added the requested info. Thanks.
Reopened wrt Comment #4
can you try with march=athlon-xp instead of athlon-mp?
re #6: Done. With -march=athlon-xp that compiles. So, is that a problem upstream or with the ebuild? Is there a method for per-ebuild CFLAGS - I'd like to keep that flag for this SMP box. Thanks for your help, Brian.
(In reply to comment #7) > re #6: > > Done. With -march=athlon-xp that compiles. So, is that a problem upstream or > with the ebuild? It's a problem with how the configure script determines ARCH_X86, but you're seeing it now because we recently allowed more of the users CFLAGS through. > Is there a method for per-ebuild CFLAGS - I'd like to keep that > flag for this SMP box. afaik, the 2 flags don't make any difference, but we'll more than likely fix the problem with a patch, or use replace-flags in the ebuild which would work around it as well. > > Thanks for your help, Brian.
Brian, what do you say? We start patching up the configure script or just replace-flags?
Why don't we come up with a patch to fix a few, then send it upstream. Based on their reaction, we can decide if it's worth our time to continue, or just fall back to the easier, but more hackish replace-flags. You want me to whip up a quick patch to send upstream?
I'd like to just confirm that I get the same problem emerging mythtv-0.18.1, and I'm running dual Athlon MP 2800+ cpus, using the athlon-mp arch. Thanks for documenting that using -march=athlon-xp fixes this. That's good enough for me as long as I can find it with a quick bugs.gentoo.org search. Thanks all!
I had this problem with march=athlon-tbird but bumping it down to just march=athlon the problem went away.
If it helps, I also had the problem with athlon-tbird but when I changed "march" to i686, app-arch/cpio was updated to 2.6-r4 .
*** Bug 98138 has been marked as a duplicate of this bug. ***
Created attachment 63815 [details, diff] Patch to add support for extra -march options. This problem is pretty similar to bug 94664. There was no support for x86_64 --arch options, I added a patch to handle these. The attached patch adds support for the missing x86 options as well as a few others I pulled from the gcc man page. It also adds an extra x86_64 option that I missed in the origional patch. This patch can replace the current mythtv-0.18.1-x86_64-configure.patch.
Fixed in 0.18.1-r2. Thanks. I've also redone it to work with upstream so it should be in the next release.
Cardoe: looks like you forgot to commit the actual patch * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/portage/media-tv/mythtv/files/mythtv-0.18.1-cputypes-configure.patch * ( mythtv-0.18.1-cputypes-configure.patch )
And this is why we don't do things late at night. I commited a patch I was working on for other stuff rather then that patch. Oh well, it's fixed.
*** Bug 106868 has been marked as a duplicate of this bug. ***
*** Bug 106885 has been marked as a duplicate of this bug. ***
*** Bug 126464 has been marked as a duplicate of this bug. ***