Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94696 - mythtv-0.18.1 configure script does not handle all gcc march types
Summary: mythtv-0.18.1 configure script does not handle all gcc march types
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords: InVCS
: 98138 106868 106885 126464 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-31 20:20 UTC by David Krider
Modified: 2006-03-16 14:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (6034-mythtv-0.18.1-r2.log,159.13 KB, text/plain)
2005-06-01 14:32 UTC, Jesse Adelman
Details
Patch to add support for extra -march options. (mythtv-0.18.1-march-options.patch,994 bytes, patch)
2005-07-19 14:49 UTC, Herbie Hopkins (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Krider 2005-05-31 20:20:09 UTC
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?
Comment 1 Jesse Adelman 2005-06-01 14:32:53 UTC
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.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2005-06-01 21:35:49 UTC
Useless console snippet... and a full build log... but no emerge info. Does no
one read the instructions when posting bugs?
Comment 3 Jesse Adelman 2005-06-02 19:43:23 UTC
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
Comment 4 Jesse Adelman 2005-06-03 01:33:48 UTC
David, please re-open this - I've added the requested info. Thanks.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-06-05 00:14:17 UTC
Reopened wrt Comment #4
Comment 6 Brian Jackson (RETIRED) gentoo-dev 2005-06-05 11:36:01 UTC
can you try with march=athlon-xp instead of athlon-mp?
Comment 7 Jesse Adelman 2005-06-05 14:45:26 UTC
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.
Comment 8 Brian Jackson (RETIRED) gentoo-dev 2005-06-05 15:29:38 UTC
(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.

Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2005-06-06 02:43:06 UTC
Brian, what do you say? We start patching up the configure script or just
replace-flags?
Comment 10 Brian Jackson (RETIRED) gentoo-dev 2005-06-06 06:21:59 UTC
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?
Comment 11 David Backeberg 2005-06-08 05:11:12 UTC
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!
Comment 12 Douglas Hitchcock 2005-06-10 09:54:04 UTC
I had this problem with march=athlon-tbird but bumping it down to just
march=athlon the problem went away.
Comment 13 Brian Wightman 2005-06-28 13:53:52 UTC
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 .
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2005-07-06 10:42:00 UTC
*** Bug 98138 has been marked as a duplicate of this bug. ***
Comment 15 Herbie Hopkins (RETIRED) gentoo-dev 2005-07-19 14:49:15 UTC
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.
Comment 16 Doug Goldstein (RETIRED) gentoo-dev 2005-08-12 00:22:48 UTC
Fixed in 0.18.1-r2. Thanks. I've also redone it to work with upstream so it
should be in the next release.
Comment 17 Herbie Hopkins (RETIRED) gentoo-dev 2005-08-12 03:45:09 UTC
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 )
Comment 18 Doug Goldstein (RETIRED) gentoo-dev 2005-08-12 07:45:04 UTC
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.
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2005-09-22 00:51:20 UTC
*** Bug 106868 has been marked as a duplicate of this bug. ***
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2005-09-22 07:56:17 UTC
*** Bug 106885 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-03-16 14:27:58 UTC
*** Bug 126464 has been marked as a duplicate of this bug. ***