Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218415 - media-video/transcode-1.0.6_rc2 configure hangs with gcc can't build executable
Summary: media-video/transcode-1.0.6_rc2 configure hangs with gcc can't build executable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 213712 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-19 14:14 UTC by Maik Holtkamp
Modified: 2008-06-29 18:20 UTC (History)
9 users (show)

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


Attachments
config.log (config.log,13.64 KB, text/plain)
2008-04-22 12:04 UTC, MAL
Details
This is the config.log from my notbook amd64 (config.log,13.37 KB, text/plain)
2008-04-23 07:22 UTC, Maik Holtkamp
Details
Modified Ebuild (transcode-1.0.6_rc2.ebuild,4.17 KB, text/plain)
2008-05-03 21:52 UTC, Benjamin Velmeden
Details
config.log (config.log,13.53 KB, text/plain)
2008-05-11 15:03 UTC, Ricky Marshall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maik Holtkamp 2008-04-19 14:14:46 UTC
Trying to emerge tanscode-1.0.6_rc2. It sticks in the configure run with the result:

---cut---
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
---cut---



Reproducible: Always

Steps to Reproduce:
1.emerge transcode
2.
3.

Actual Results:  
Hangs in configure run

Expected Results:  
compile fine

Tried revdep-rebuild. Same result on 2 boxes. Other packages in last -uD run compile fine.

mobby ~ # emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Mobile AMD Sempron(tm) Processor 3500+
Timestamp of tree: Fri, 18 Apr 2008 15:04:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -msse3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amr arts asf avi berkdb bluetooth bzip2 cairo cdparanoia cdr chipcard cli cracklib crypt cups dbus directfb dri dts dv dvd dvdr dvdread edl eds emboss encode evo extrafilters fam fame fbcon ffmpeg firefox font-server fortran gdbm gif gnokii gnome gphoto2 gpm gstreamer gtk hal hbci i8x0 iconv imagemagick imap imlib ipv6 isdnlog joystick jpeg kde kerberos ldap lzo mad matroska mbox midi mikmod mjpeg mmx mmxext mozilla mp3 mpeg mudflap mysql ncurses network nls nptl nptlonly nsplugin nvidia ofx ogg opengl openmp oss pam pcmcia pcre pdf perl png pppd python qt3 qt3support qt4 quicktime quotes readline real reflection rtc samba sdl session smime spell spl sqlite sse sse2 ssl ssse3 svg svga tcpd theora tiff truetype unicode usb utempter utf-8 v4l v4l1 v4l2 videos vorbis wifi win32codecs x264 x86 xine xml xml2 xorg xv xvid yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-04-19 16:08:21 UTC
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -msse3 -pipe"

If you run an x86 OS, don't set -march=athlon64.

From the gcc manual:
           k8, opteron, athlon64, athlon-fx
               AMD K8 core based CPUs with x86-64 instruction set support.
               (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and
               64-bit instruction set extensions.)

Your 32-bit OS (x86) cannot handle those wacky 64-bit instructions. Either reinstall using amd64 media, or match your CFLAGS to your OS.
Comment 2 D Wollmann 2008-04-19 21:14:20 UTC
(In reply to comment #1)
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-O2 -march=athlon64 -msse3 -pipe"
> 
> If you run an x86 OS, don't set -march=athlon64.
> 

CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"

And I'm getting the same error.
Comment 3 Maik Holtkamp 2008-04-20 05:19:23 UTC
I am sorry, for architecture mismarking this bug. The emerge --info was from my amd-64 notebook where I ran in the same problem. As I spend most efforts in the morning on my x86 workstation, I maked it as x86 related, but indeed it isn't. It's just the same problem on x86 and amd64. Info of my x86 workstation:

---cut---
maik@syl ~ $ grep model /proc/cpuinfo
model       : 10
model name  : AMD Athlon(TM) XP 3000+
maik@syl ~ $ grep ^C /etc/make.conf
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
maik@syl ~ $ emerge -pv transcode

[ebuild     U ] media-video/transcode-1.0.6_rc2 [1.0.6_rc1-r1] USE="3dnow X a52 dv dvdread extrafilters fame iconv imagemagick jpeg lzo mjpeg mmx mp3 mpeg network ogg quicktime sdl sse theora truetype v4l2 vorbis xml xvid (-altivec) -nuv -oss -sse2" 0 kB
---cut---

Install trials on this box cause same result :(.
Comment 4 Alexis Ballier gentoo-dev 2008-04-20 16:15:16 UTC
(In reply to comment #0)

> See `config.log' for more details.

please attach it
Comment 5 MAL 2008-04-22 12:04:20 UTC
Created attachment 150581 [details]
config.log

I have exactly the same problem, config.log attached, emerge --info:

Portage 2.1.4.4 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686)
=================================================================
System uname: 2.6.22-gentoo-r8 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Tue, 22 Apr 2008 01:45:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://gentoo.blueyonder.co.uk/mirrors/gentoo http://ftp.easynet.nl/mirror/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
LINGUAS="en en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://192.168.0.2/gentoo-portage"
USE="3dnow 3dnowext S3TC X a52 aac aalib acl acpi alsa amd amr asf audiofile berkdb bluetooth bonobo bzip2 caps cdda cddb cdio cdr chardet chroot clamav cli cracklib crypt cscope cups curl d dbus dga directfb disablexmb divx dmx dri dts dv dvd dvdr dvdread dvi edl enca encode exif fam fbcon ffmpeg flac fmod font-server foomaticdb freetype gb gdbm geoip gif gimpprint gkrellm glitz glut gmail gmedia gmp gnokii gpm gps gstreamer gtk gtk2 gtkhtml hal howl hpn iconv idn ieee1394 imagemagick imap imlib imlib2 isdnlog ithreads java javascript jpeg jpeg2k junit largeterminal lcms libcaca libgda libsamplerate libvisual live lm_sensors lua lzo lzw mad maildir mailwrapper matroska md5sum midi mikmod mjpeg mmx mmxext mng modplug motif mozbranding mozcalendar mozdevelop mozilla moznoirc mozsvg mp3 mpeg mpeg2 mpeg4 mplayer msn mudflap mysql ncurses network nls nptl nptlonly nsplugin ntlm nvidia oav odbc offensive ogg oggvorbis openal opengl openmp oss pam pcntl pcre pdf perl pic png ppds pppd prediction python qt3 qt4 quicktime readline real reflection rtc rtsp samba sasl sdl session sftplogging sid slang sms sndfile snmp sox speex spell spl sse sse2 ssl stream svg sysfs t1lib tcltk tcpd tga theora tiff tk truetype type1 unicode userlocales v4l v4l2 vcd vidix vlm vorbis win32codecs wma wma123 wmf wmp wxwindows x86 xanim xattr xface xml xorg xosd xpm xprint xrandr xv xvid xvmc yahoo yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Maik Holtkamp 2008-04-23 07:22:18 UTC
Created attachment 150682 [details]
This is the config.log from my notbook amd64
Comment 7 Jesse Adelman 2008-04-27 21:25:40 UTC
Same fatal error here, but not a 64-bit box (x86). Only this package cannot compile; others compile fine. No changes to the toolchain environment variables in over 8 months. Thanks.
Comment 8 Alexis Ballier gentoo-dev 2008-04-27 21:33:39 UTC
configure:3397: i686-pc-linux-gnu-gcc  -march=prescott -O2 -pipe -DDCT_YUV_PRECISION=1   -lMagickWand conftest.c  >&5
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lMagickWand
collect2: ld returned 1 exit status


seems that appending -lMagickWand isnt a so good idea (like linking everything to libmagickwand) and that imagemagick doesnt install it for some reason...
Comment 9 Olivier Huber 2008-04-30 22:01:25 UTC
(In reply to comment #8)
> configure:3397: i686-pc-linux-gnu-gcc  -march=prescott -O2 -pipe
> -DDCT_YUV_PRECISION=1   -lMagickWand conftest.c  >&5
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld:
> cannot find -lMagickWand
> collect2: ld returned 1 exit status
> 
> 
> seems that appending -lMagickWand isnt a so good idea (like linking everything
> to libmagickwand) and that imagemagick doesnt install it for some reason...
> 

I have the same issue until I update to media-gfx/imagemagick-6.4.0.6, and now it builds fine (-lMagickWand is now a valid way to link against Imagemagick). transcode should depends to >=media-gfx/imagemagick-6.4* (I don't know if it's valid, but developers know :-) ) .
Comment 10 Benjamin Velmeden 2008-05-03 21:49:55 UTC
updating to imagemagick-6.4.0.6 worked for me too
Comment 11 Benjamin Velmeden 2008-05-03 21:52:26 UTC
Created attachment 151736 [details]
Modified Ebuild

Modified the dependency to media-gfx/imagemagick-6.4.0.6
Comment 12 Ricky Marshall 2008-05-11 15:03:54 UTC
Created attachment 152849 [details]
config.log
Comment 13 Steve Dibb (RETIRED) gentoo-dev 2008-05-15 20:28:55 UTC
Fixed in CVS
Comment 14 Steve Dibb (RETIRED) gentoo-dev 2008-05-15 20:30:52 UTC
*** Bug 213712 has been marked as a duplicate of this bug. ***
Comment 15 Thadeus 2008-06-29 18:20:30 UTC
(In reply to comment #10)
> updating to imagemagick-6.4.0.6 worked for me too
> 

updating to imagmagick6.4.0.6 did not work for me. running amd64

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -march=k8 -pipe"
CXXFLAGS="${CFLAGS}"
# This should not be changed unless you know exactly what you are doing.  You
# should probably be using a different stage, instead.
CHOST="x86_64-pc-linux-gnu"
source /usr/portage/local/layman/make.conf
FEATURES="parallel-fetch ccache"

GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://cudlug.cudenver.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net http://mirror.espri.arizona.edu/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.llarian.net/ http://gentoo.binarycompass.org ftp://mirror.datapipe.net/gentoo http://prometheus.cs.wmich.edu/gentoo http://mirror.usu.edu/mirrors/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.fslutd.org/linux/distributions/gentoo/ ftp://mirror.fslutd.org/linux/distributions/gentoo/ http://gentoo.localhost.net.ar/ ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo http://www.las.ic.unicamp.br/pub/gentoo/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/ "

SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
MAKEOPTS="-j2"
VIDEO_CARDS="nvidia"

USE="kde gnome qt3 qt4 hal alsa java X xorg pv6 kerberos ldap ssl dbus xulrunner"
INPUT_DEVICES="keyboard mouse evdev"
ALSA_CARDS="intel8x0"
PORTAGE_NICENESS="19"
PORTDIR_OVERLAY="/usr/local/portage"