GNOME Bugzilla – Bug 103582
GStreamer fails to compile with Intel compiler for Linux
Last modified: 2004-12-22 21:47:04 UTC
To test I tried downloading and installing the Intel compiler for Linux (icc). GStreamer did not get very far when using it: make all-am make[5]: Entering directory `/home/cschalle/rpms/BUILD/gstreamer-0.5.1.1/gst/parse' source='lex._gst_parse_yy.c' object='libgstparse_la-lex._gst_parse_yy.lo' libtool=yes \ depfile='.deps/libgstparse_la-lex._gst_parse_yy.Plo' tmpdepfile='.deps/libgstparse_la-lex._gst_parse_yy.TPlo' \ depmode=gcc3 /bin/sh ../../depcomp \ /bin/sh ../../libtool --mode=compile /opt/intel/compiler70/ia32/bin/icc -DHAVE_CONFIG_H -I. -I. -I../.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../.. -Wall -Werror -O2 -g -march=i386 -mcpu=i686 -c -o libgstparse_la-lex._gst_parse_yy.lo `test -f 'lex._gst_parse_yy.c' || echo './'`lex._gst_parse_yy.c /opt/intel/compiler70/ia32/bin/icc -DHAVE_CONFIG_H -I. -I. -I../.. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../.. -Wall -Werror -O2 -g -march=i386 -mcpu=i686 -c lex._gst_parse_yy.c -MT libgstparse_la-lex._gst_parse_yy.lo -MD -MP -MF .deps/libgstparse_la-lex._gst_parse_yy.TPlo -o libgstparse_la-lex._gst_parse_yy.o icc: Command line warning: ignoring option '-M'; no argument required icc: Command line warning: ignoring option '-M'; no argument required lex._gst_parse_yy.c(118): error #1419: external declaration in primary source file extern int yyleng; ^ lex._gst_parse_yy.c(119): error #1419: external declaration in primary source file extern FILE *yyin, *yyout; ^ lex._gst_parse_yy.c(119): error #1419: external declaration in primary source file extern FILE *yyin, *yyout; ^ lex._gst_parse_yy.c(245): error #1419: external declaration in primary source file void yyrestart YY_PROTO(( FILE *input_file ));
Turn off -Werror. This is, imo, a bug in the compiler, since external definitions are completely legal. At least, the warning should only be enabled with a -Warn-me-harder flag.
*** This bug has been marked as a duplicate of 89622 ***
Sorry, misread ds statement. This is not dup.
Closing this here and instead trying to pursue with Intel support. Do not want to leave this open while waiting due to uncertain response times from Intel.