Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge transcode-1.0.3 failed [SOLVED] + CFLAGS for Core2DUO
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
zrebec
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2004
Posts: 129
Location: Bratislava / Slovakia

PostPosted: Tue Jul 24, 2007 4:08 pm    Post subject: emerge transcode-1.0.3 failed [SOLVED] + CFLAGS for Core2DUO Reply with quote

Hi folks,

please.... I'm very unpleased with the last time with emering transcode. I always got this with any use flags:

Code:

...
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -I../libtc -I../libac3 -I../avilib -I/usr/include -I/usr/include -I/usr/include -I/usr/include/libmpeg3 -I/usr/include/libxml2 -I../libvo -I/usr/include -I../libxio -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -march=prescott -pipe -fomit-frame-pointer -fno-strict-aliasing -msse -mmmx -ffast-math -fprefetch-loop-arrays -DDCT_YUV_PRECISION=1 -MT import_imlist.lo -MD -MP -MF .deps/import_imlist.Tpo -c import_imlist.c  -fPIC -DPIC -o .libs/import_imlist.o
mv -f .deps/import_imlist.Tpo .deps/import_imlist.Plo
/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -I../libtc  -I../libac3 -I../avilib   -I/usr/include -I/usr/include -I/usr/include -I/usr/include/libmpeg3 -I/usr/include/libxml2 -I../libvo   -I/usr/include     -I../libxio    -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -march=prescott -pipe -fomit-frame-pointer -fno-strict-aliasing -msse -mmmx -ffast-math -fprefetch-loop-arrays -DDCT_YUV_PRECISION=1 -MT import_xml.lo -MD -MP -MF .deps/import_xml.Tpo -c -o import_xml.lo import_xml.c
import_im.c: In function 'import_im_decode':
import_im.c:269: error: invalid operands to binary >>
import_im.c:272: error: invalid operands to binary >>
import_im.c:275: error: invalid operands to binary >>
make[3]: *** [import_im.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -I../libtc -I../libac3 -I../avilib -I/usr/include -I/usr/include -I/usr/include -I/usr/include/libmpeg3 -I/usr/include/libxml2 -I../libvo -I/usr/include -I../libxio -O3 -march=prescott -pipe -fomit-frame-pointer -fno-strict-aliasing -msse -mmmx -ffast-math -fprefetch-loop-arrays -DDCT_YUV_PRECISION=1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -MT af6_decore.lo -MD -MP -MF .deps/af6_decore.Tpo -c af6_decore.cpp  -fPIC -DPIC -o .libs/af6_decore.o
mv -f .deps/af6_decore.Tpo .deps/af6_decore.Plo
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -I../libtc -I../libac3 -I../avilib -I/usr/include -I/usr/include -I/usr/include -I/usr/include/libmpeg3 -I/usr/include/libxml2 -I../libvo -I/usr/include -I../libxio -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -march=prescott -pipe -fomit-frame-pointer -fno-strict-aliasing -msse -mmmx -ffast-math -fprefetch-loop-arrays -DDCT_YUV_PRECISION=1 -MT import_xml.lo -MD -MP -MF .deps/import_xml.Tpo -c import_xml.c  -fPIC -DPIC -o .libs/import_xml.o
import_xml.c: In function 'f_mod_video_frame':
import_xml.c:244: warning: pointer targets in assignment differ in signedness
import_xml.c:265: warning: pointer targets in assignment differ in signedness
import_xml.c:268: warning: pointer targets in assignment differ in signedness
import_xml.c:271: warning: pointer targets in assignment differ in signedness
mv -f .deps/import_xml.Tpo .deps/import_xml.Plo
make[3]: Leaving directory `/var/tmp/portage/media-video/transcode-1.0.3/work/transcode-1.0.3/import'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-video/transcode-1.0.3/work/transcode-1.0.3/import'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/transcode-1.0.3/work/transcode-1.0.3'
make: *** [all] Error 2
 *
 * ERROR: media-video/transcode-1.0.3 failed.
 * Call stack:
 *   ebuild.sh, line 1648:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   transcode-1.0.3.ebuild, line 112:   Called die
 *
 * (no error message)
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-video/transcode-1.0.3/temp/build.log'.
 *
epona zrebec #


My equery uses transcode:

Code:

zrebec@epona ~ $ equery uses transcode
[ Searching for packages matching transcode... ]
[ Colour Code : set unset ]
[ Legend : Left column  (U) - USE flags from make.conf              ]
[        : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-video/transcode-1.0.3 ]
 U I
 - - 3dnow        : Adds support for 3dnow multimedia processor instructions
 + + X            : Adds support for X11
 - - a52          : Enables support for decoding ATSC A/52 streams used in DVD
 - - altivec      : Adds support for optimizations for G4 and G5/ppc970 processors
 + - dv           : Enables support for a codec used by many camcorders
 + - dvdread      : Enables usage of Ogle's libdvdread for DVD playback
 + - extrafilters : Install some filters only if we ask for them
 - - fame         : Enables libfame support
 + + gtk          : Adds support for x11-libs/gtk+ (The GIMP Toolkit)
 + + iconv        : Enable support for the iconv character set conversion library
 + - imagemagick  : Enables support for Imagemagick (image converter)
 + + jpeg         : Adds JPEG image support
 - - lzo          : Enables support for lzo compression
 + - mjpeg        : Enables mjpegtools support
 + + mmx          : Adds support for optimizations for Pentium MMX and Athlon class processors
 + + mp3          : Add support for reading mp3 files
 + - mpeg         : Adds libmpeg3 support to various packages.
 - - network      : Enables network streaming support
 + - ogg          : Adds support for the Ogg container format (commonly used by Vorbis, Theora and flac)
 - - quicktime    : Adds support for OpenQuickTime
 - - sdl          : Adds support for Simple Direct Layer (media library)
 + - sse          : fast floating point optimization for PentiumIII+ class chips
 + - sse2         : faster floating point optimization for SSE2 capable chips
 - - theora       : Adds support for the Theora Video Compression Codec
 + + truetype     : Adds support for FreeType and/or FreeType2 fonts
 - - v4l2         : Enable video4linux2 support
 + + vorbis       : Adds support for the OggVorbis audio codec
 + - xml          : Add support for XML files
 + - xvid         : Adds support for xvid.org's open-source mpeg-4 codec
zrebec@epona ~ $


Output from cat /etc/portage/package.use | grep transcode:

Code:

media-video/transcode jpeg mp3 truetype vorbis dv dvdread extrafilters mjpeg imagemagick ogg sse sse2 xml xvid mpeg


Output from cat /etc/make.conf:

Code:

CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer -fno-strict-aliasing -msse -mmmx -ffast-math -fprefetch-loop-arrays"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub/ ftp://gentoo.inode.at/source/ ftp://gentoo.inf.elte.hu/ "
USE="gtk gnome -qt3 qt4 -kde dvd alsa cdr xprint truetype type1 bash-completion xinerama jpeg png tiff gif mp3 X opengl jpeg2k vorbis mmx xcomposite xulrunner dbus"
ACCEPT_KEYWORDS="~x86"
CCACHE_SIZE="2G"
CCACHE_DIR="/var/tmp/ccache"
VIDEO_CARDS="nv vesa vga nvidia"
INPUT_DEVICES="keyboard mouse"
#source /usr/portage/local/layman/make.conf
LINGUAS="sk en cs"
CAMERAS="*"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/xeffects/trunk"
INPUT_DEVICES="keyboard mouse evdev"
FEATURES="collision-protect ccache parallel-fetch sandbox"


And finally emerge -pv transcode:

Code:

Calculating dependencies... done!
[ebuild  N    ] media-video/transcode-1.0.3  USE="X dv dvdread extrafilters gtk iconv imagemagick jpeg mjpeg mmx mp3 mpeg ogg sse sse2 truetype vorbis xml xvid -3dnow -a52 (-altivec) -fame -lzo -network -quicktime -sdl -theora -v4l2" 0 kB [0]


Any response will be pleasure for me... please... i cannot find any solution :( Thank You very much!
_________________
Many regards


Last edited by zrebec on Tue Jul 24, 2007 7:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Tue Jul 24, 2007 4:18 pm    Post subject: Reply with quote

alright, what stands out to me is your cflags. Change them to:
Code:
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer -msse -mmmx


O2 is better than O3 in most cases, and the extra crap is bound to cause you problems. msse and mmmx should be defined by march=prescott, but it's safe to add them in anyway if you are 100% sure your processor can take it.

cat /proc/cpuinfo and double-check.
_________________
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Tue Jul 24, 2007 4:28 pm    Post subject: Reply with quote

Bug:
media-video/transcode-1.0.3 emerge fails w/ USE="imagemagick"

However, sonicbhoc is right. Especially -ffast-math. Get it out of CFLAGS, because it will break things. -03 is OK (and I mean OK in the sense of "kinda mediocre"), but tends to inflate the size of the binaries produced. The other two I don't know enough about to say what the effects are, although disabling strict-aliasing may actually reduce the compiler's optimization effectiveness. I do know prefetch-loop-arrays only works if the CPU has prefetching instructions. The prescott does, but how useful they would be outside code that's mmx/sse-tailored anyway, I don't know. Plus, I can't see gcc emitting those instructions often enough in most code to make much difference. Still, this is just partially-informed opinion, which I'm sure someone is willing to contradict.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
zrebec
Tux's lil' helper
Tux's lil' helper


Joined: 07 Dec 2004
Posts: 129
Location: Bratislava / Slovakia

PostPosted: Tue Jul 24, 2007 7:08 pm    Post subject: Reply with quote

Didymos: Yes! Thank You very much. It's working without imagemagick!

Sonicbhoc, Didymos: Thank You for Your tips & hints about CFLAGS! I was really pleased. This community are so great! Well... i'm not expert... rather newbie (a bit experienced). I choosed gentoo for the performance. Very important thing is performance for me. That's the main reason why i preffer gentoo. I'm not well educated about CFLAGS but I read that -ffast-math can improve speed of gentoo. Well.... I have Intel Core 2 DUO E6600. I posting my cpuinfo:


Code:

zrebec@epona ~ $ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
stepping        : 6
cpu MHz         : 2404.199
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips        : 4810.87
clflush size    : 64

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
stepping        : 6
cpu MHz         : 2404.199
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips        : 4808.21
clflush size    : 64


I found on this forum that for Core 2 DUO is best way to have prescott in march...

Btw.... what is more optimizing? -march or -mtune ? Thank You very much!
_________________
Many regards
Back to top
View user's profile Send private message
RoundsToZero
Guru
Guru


Joined: 17 Nov 2003
Posts: 478
Location: New York, NY

PostPosted: Tue Jul 24, 2007 7:15 pm    Post subject: Reply with quote

The whole performance thing is a myth and people need to stop spreading it to new users. -O2 -march=??? -pipe and possibly -fomit-frame-pointer is all you need.

If you are running 32-bit (x86 arch) use prescott (I guess), if 64-bit (amd64 arch) use nocona. march is more optimizing but it produces binaries that aren't portable to other processors. mtune optimizes in a way so that binaries can still run on anything, I think all the way down to i386.

In the future you should read man gcc before you add wacky CFLAGS as the literature is quite specific about how dangerous certain options are; I think after reading the manpage you would be more than happy to give up hypothetical "performance".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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