[MPlayer-dev-eng] [PATCH] compiling with Intel C

Guillaume Poirier gpoirier at mplayerhq.hu
Thu Jan 25 09:56:54 CET 2007


Hi,

Dmitry Antipov wrote:
> Hello all,
> 
> an attached patch proposes the bits needed for the first successful :-)
> compilation
> of svn-22004 with Intel C 9.1.046. It compiles and plays a few movies
> found on my hard
> drive, but it's highly experimental. Libavcodec bits are also included.

Looks like it's not meant to work on x86-64 with (ICC) 9.0 20060222
(sorry, I don't have access to a newer version yet).

icc -I.. -Inative -I../libmpdemux -I../stream -I../loader
-I../libavutil -I../libavcodec -I. -I.. -Wdeclaration-after-statement
-O2 -march=pentium4 -mcpu=pentium4 -pipe -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-I/usr/X11R6/include  -I/usr/include/SDL -D_REENTRANT
-I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include  -I/usr/include -I/usr/include/dvdnav
-I/usr/include/freetype2   -c -o vf_ilpack.o vf_ilpack.c
icc: Command line warning: ignoring option '-W'; no argument required
../libvo/fastmemcpy.h(31): warning #1338: arithmetic on pointer to
void or function type
                        src += (height-1)*srcStride;
                            ^

../libvo/fastmemcpy.h(32): warning #1338: arithmetic on pointer to
void or function type
                        dst += (height-1)*dstStride;
                            ^

../libvo/fastmemcpy.h(43): warning #1338: arithmetic on pointer to
void or function type
                        src+= srcStride;
                           ^

../libvo/fastmemcpy.h(44): warning #1338: arithmetic on pointer to
void or function type
                        dst+= dstStride;
                           ^

../libvo/fastmemcpy.h(59): warning #1338: arithmetic on pointer to
void or function type
                        src += (height-1)*srcStride;
                            ^

../libvo/fastmemcpy.h(60): warning #1338: arithmetic on pointer to
void or function type
                        dst += (height-1)*dstStride;
                            ^

../libvo/fastmemcpy.h(71): warning #1338: arithmetic on pointer to
void or function type
                        src+= srcStride;
                           ^

../libvo/fastmemcpy.h(72): warning #1338: arithmetic on pointer to
void or function type
                        dst+= dstStride;
                           ^

/tmp/iccShKikDas_.s: Assembler messages:
/tmp/iccShKikDas_.s:136: Error: suffix or operands invalid for `push'
/tmp/iccShKikDas_.s:215: Error: suffix or operands invalid for `pop'
/tmp/iccShKikDas_.s:331: Error: suffix or operands invalid for `push'
/tmp/iccShKikDas_.s:414: Error: suffix or operands invalid for `pop'
make[1]: *** [vf_ilpack.o] Error 1
make[1]: Leaving directory
`/amd/dori/nfs/nobackup/gpoirier/snapshot/mplayer/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] Error 2




And here it doesn't work on x86, with the same compiler version:

icc -I.. -Inative -I../libmpdemux -I../stream -I../loader
-I../libavutil -I../libavcodec -I. -I.. -Wdeclaration-after-statement
-O2 -march=pentium4 -mcpu=pentium4 -pipe -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-I/usr/X11R6/include  -I/usr/include/SDL -D_REENTRANT
-I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include  -I/usr/include -I/usr/include/dvdnav
-I/usr/include/freetype2   -c -o vf_yadif.o vf_yadif.c
icc: Command line warning: ignoring option '-W'; no argument required
../libvo/fastmemcpy.h(31): warning #1338: arithmetic on pointer to
void or function type
                        src += (height-1)*srcStride;
                            ^

../libvo/fastmemcpy.h(32): warning #1338: arithmetic on pointer to
void or function type
                        dst += (height-1)*dstStride;
                            ^

../libvo/fastmemcpy.h(43): warning #1338: arithmetic on pointer to
void or function type
                        src+= srcStride;
                           ^

../libvo/fastmemcpy.h(44): warning #1338: arithmetic on pointer to
void or function type
                        dst+= dstStride;
                           ^

../libvo/fastmemcpy.h(59): warning #1338: arithmetic on pointer to
void or function type
                        src += (height-1)*srcStride;
                            ^

../libvo/fastmemcpy.h(60): warning #1338: arithmetic on pointer to
void or function type
                        dst += (height-1)*dstStride;
                            ^

../libvo/fastmemcpy.h(71): warning #1338: arithmetic on pointer to
void or function type
                        src+= srcStride;
                           ^

../libvo/fastmemcpy.h(72): warning #1338: arithmetic on pointer to
void or function type
                        dst+= dstStride;
                           ^

vf_yadif.c(270): error: expected a ")"
          FILTER
          ^

vf_yadif.c(276): error: expected a ")"
          FILTER
          ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
          ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expression must be a modifiable lvalue
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(314): error: expected a "]"
          CHECK(-1) CHECK(-2) }} }}
                    ^

vf_yadif.c(387): warning #1338: arithmetic on pointer to void or
function type
                  vf->priv->ref[j][i]= malloc(w*h*sizeof(uint8_t))+3*w;
                                                                  ^

compilation aborted for vf_yadif.c (code 2)
make[1]: *** [vf_yadif.o] Error 2
make[1]: Leaving directory
`/amd/dori/nfs/nobackup/gpoirier/snapshot/mplayer/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] Error 2



MPlayer was configure with a simple ./configure --disable-gcc-check.
Do you think you could do smth about icc 9.0?

Guillaume



More information about the MPlayer-dev-eng mailing list