problems compiling 0.8.4beta2

*nix specific usage questions
infiniteedge

problems compiling 0.8.4beta2

Postby infiniteedge » 08 Nov 2005 00:43

this is on gentoo (gcc 3.4.4) with the following use flags:

Code: Select all

emerge -va vlc These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-video/vlc-0.8.4_beta2 -3dfx +X +a52 +aac -aalib +alsa (-altivec) -arts +bidi +cdda -corba -daap -debug +dts +dvb +dvd -esd -fbcon +ffmpeg +flac +freetype +ggi* +gnutls +httpd -joystick -libcaca -lirc +live +matroska +mod +mp3 +mpeg +ncurses +nls +nsplugin* +ogg +opengl -oss +png +real +samba +screen +sdl +shout* +speex +stream -svg +svga +theora +unicode +v4l* +vcd +vlm +vorbis +win32codecs +wxwindows +xml2 +xosd +xv 0 kB

Code: Select all

i686-pc-linux-gnu-ar cru libi420_yuy2_mmx.a libi420_yuy2_mmx_a-i420_yuy2.o i686-pc-linux-gnu-ranlib libi420_yuy2_mmx.a if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../i nclude `top_builddir="../.." ../../vlc-config --cflags builtin i422_yuy2_mmx` -W sign-compare -Wall -march=athlon-xp -O3 -pipe -fomit-frame-pointer -fforce-addr -ftracer -pipe -MT libi422_yuy2_mmx_a-i422_yuy2.o -MD -MP -MF ".deps/libi422_yuy 2_mmx_a-i422_yuy2.Tpo" -c -o libi422_yuy2_mmx_a-i422_yuy2.o `test -f 'i422_yuy2. c' || echo './'`i422_yuy2.c; \ then mv -f ".deps/libi422_yuy2_mmx_a-i422_yuy2.Tpo" ".deps/libi422_yuy2_mmx_a-i4 22_yuy2.Po"; else rm -f ".deps/libi422_yuy2_mmx_a-i422_yuy2.Tpo"; exit 1; fi rm -f libi422_yuy2_mmx.a i686-pc-linux-gnu-ar cru libi422_yuy2_mmx.a libi422_yuy2_mmx_a-i422_yuy2.o i686-pc-linux-gnu-ranlib libi422_yuy2_mmx.a if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../i nclude `top_builddir="../.." ../../vlc-config --cflags builtin i420_ymga_mmx` -W sign-compare -Wall -march=athlon-xp -O3 -pipe -fomit-frame-pointer -fforce-addr -ftracer -pipe -MT libi420_ymga_mmx_a-i420_ymga.o -MD -MP -MF ".deps/libi420_ymg a_mmx_a-i420_ymga.Tpo" -c -o libi420_ymga_mmx_a-i420_ymga.o `test -f 'i420_ymga. c' || echo './'`i420_ymga.c; \ then mv -f ".deps/libi420_ymga_mmx_a-i420_ymga.Tpo" ".deps/libi420_ymga_mmx_a-i4 20_ymga.Po"; else rm -f ".deps/libi420_ymga_mmx_a-i420_ymga.Tpo"; exit 1; fi rm -f libi420_ymga_mmx.a i686-pc-linux-gnu-ar cru libi420_ymga_mmx.a libi420_ymga_mmx_a-i420_ymga.o i686-pc-linux-gnu-ranlib libi420_ymga_mmx.a if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../i nclude `top_builddir="../.." ../../vlc-config --cflags builtin pic i420_rgb_mmx` -Wsign-compare -Wall -march=athlon-xp -O3 -pipe -fomit-frame-pointer -fforce-ad dr -ftracer -pipe -MT libi420_rgb_mmx_pic_a-i420_rgb.o -MD -MP -MF ".deps/libi42 0_rgb_mmx_pic_a-i420_rgb.Tpo" -c -o libi420_rgb_mmx_pic_a-i420_rgb.o `test -f 'i 420_rgb.c' || echo './'`i420_rgb.c; \ then mv -f ".deps/libi420_rgb_mmx_pic_a-i420_rgb.Tpo" ".deps/libi420_rgb_mmx_pic _a-i420_rgb.Po"; else rm -f ".deps/libi420_rgb_mmx_pic_a-i420_rgb.Tpo"; exit 1; fi if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../i nclude `top_builddir="../.." ../../vlc-config --cflags builtin pic i420_rgb_mmx` -Wsign-compare -Wall -march=athlon-xp -O3 -pipe -fomit-frame-pointer -fforce-ad dr -ftracer -pipe -MT libi420_rgb_mmx_pic_a-i420_rgb16.o -MD -MP -MF ".deps/libi 420_rgb_mmx_pic_a-i420_rgb16.Tpo" -c -o libi420_rgb_mmx_pic_a-i420_rgb16.o `test -f 'i420_rgb16.c' || echo './'`i420_rgb16.c; \ then mv -f ".deps/libi420_rgb_mmx_pic_a-i420_rgb16.Tpo" ".deps/libi420_rgb_mmx_p ic_a-i420_rgb16.Po"; else rm -f ".deps/libi420_rgb_mmx_pic_a-i420_rgb16.Tpo"; ex it 1; fi i420_rgb16.c: In function `I420_RGB16__i420_rgb_mmx': i420_rgb16.c:346: error: `__m64' undeclared (first use in this function) i420_rgb16.c:346: error: (Each undeclared identifier is reported only once i420_rgb16.c:346: error: for each function it appears in.) i420_rgb16.c:346: error: parse error before "mm0" i420_rgb16.c:347: warning: unused variable `tmp64' i420_rgb16.c: In function `I420_RGB32__i420_rgb_mmx': i420_rgb16.c:532: error: `__m64' undeclared (first use in this function) i420_rgb16.c:532: error: parse error before "mm0" i420_rgb16.c:533: warning: unused variable `tmp64' make[4]: *** [libi420_rgb_mmx_pic_a-i420_rgb16.o] Error 1 make[4]: Leaving directory `/var/tmp/portage/vlc-0.8.4_beta2/work/vlc-0.8.4-test 2/modules/video_chroma' make[3]: *** [all-modules] Error 1 make[3]: Leaving directory `/var/tmp/portage/vlc-0.8.4_beta2/work/vlc-0.8.4-test 2/modules/video_chroma' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/vlc-0.8.4_beta2/work/vlc-0.8.4-test 2/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/vlc-0.8.4_beta2/work/vlc-0.8.4-test 2' make: *** [all] Error 2 !!! ERROR: media-video/vlc-0.8.4_beta2 failed. !!! Function src_compile, Line 232, Exitcode 2 !!! make of VLC failed !!! If you need support, post the topmost build error, NOT this status message.
This error doesn't occur when I chose not to build with the nsplugin (netscape plugin) use flag.

My CFLAGS are set at: CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fforce-addr -ftracer"

sdhays-neon
Blank Cone
Blank Cone
Posts: 15
Joined: 14 Sep 2005 03:30

Postby sdhays-neon » 08 Nov 2005 02:03

Using gcc 3.2.2 on RedHat 9, I get:

Code: Select all

if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../include `top_builddir="../.." ../../vlc-config --cflags builtin i420_rgb_mmx` -Wsign-compare -Wall -pipe -MT libi420_rgb_mmx_a-i420_rgb16.o -MD -MP -MF ".deps/libi420_rgb_mmx_a-i420_rgb16.Tpo" -c -o libi420_rgb_mmx_a-i420_rgb16.o `test -f 'i420_rgb16.c' || echo './'`i420_rgb16.c; \ then mv -f ".deps/libi420_rgb_mmx_a-i420_rgb16.Tpo" ".deps/libi420_rgb_mmx_a-i420_rgb16.Po"; else rm -f ".deps/libi420_rgb_mmx_a-i420_rgb16.Tpo"; exit 1; fi i420_rgb16.c: In function `I420_RGB16__i420_rgb_mmx': i420_rgb16.c:415: Internal compiler error in find_reloads_toplev, at reload.c:4439 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. make[4]: *** [libi420_rgb_mmx_a-i420_rgb16.o] Error 1
Scott Hays
R & D Engineer
Neon Advanced Technology Co., Ltd.

Guest

Postby Guest » 10 Nov 2005 18:21

thats because you're using gcc 3.2 and the error in your code is at a completely different location. i don't believe your problem is related to mine.

Guest

Postby Guest » 25 Nov 2005 11:43

Absolutely the same problem with gcc-4.0.2 on gentoo 0.8.4beta3. It seems that in some way it uses -fpic, if --enable-mozilla is added and after that the source is screwed.
Now I made quick patch and I'm not sure if it works as expected, although I've tested it with some videos and found no problems:

Code: Select all

--- modules/video_chroma/i420_rgb16.c.orig 2005-11-22 21:26:08.000000000 +0000 +++ modules/video_chroma/i420_rgb16.c 2005-11-25 10:30:38.000000000 +0000 @@ -341,12 +341,6 @@ * at least we have all the pixels */ if( i_rewind ) { -#if defined (MODULE_NAME_IS_i420_rgb_mmx) -# if defined (HAVE_MMX_INTRINSICS) - __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7; - uint64_t tmp64; -# endif -#endif p_y -= i_rewind; p_u -= i_rewind >> 1; p_v -= i_rewind >> 1; @@ -357,8 +351,9 @@ CONVERT_YUV_PIXEL(2); CONVERT_Y_PIXEL(2); CONVERT_YUV_PIXEL(2); CONVERT_Y_PIXEL(2); #elif defined (MODULE_NAME_IS_i420_rgb_mmx) - # if defined (HAVE_MMX_INTRINSICS) + __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7; + uint64_t tmp64; INTRINSICS_INIT_16 # else __asm__( MMX_INIT_16 @@ -527,12 +522,6 @@ * at least we have all the pixels */ if( i_rewind ) { -#if defined (MODULE_NAME_IS_i420_rgb_mmx) -# if defined (HAVE_MMX_INTRINSICS) - __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7; - uint64_t tmp64; -# endif -#endif p_y -= i_rewind; p_u -= i_rewind >> 1; p_v -= i_rewind >> 1; @@ -544,6 +533,8 @@ CONVERT_YUV_PIXEL(4); CONVERT_Y_PIXEL(4); #elif defined (MODULE_NAME_IS_i420_rgb_mmx) # if defined (HAVE_MMX_INTRINSICS) + __m64 mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7; + uint64_t tmp64; INTRINSICS_INIT_32 INTRINSICS_YUV_MUL INTRINSICS_YUV_ADD
I'll file a bug in gentoo-bugzilla about this and upload it there also :)


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 4 guests