After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 552657 - Compile GStreamer Core with Intel C Compiler for MID devices.
Compile GStreamer Core with Intel C Compiler for MID devices.
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-17 15:58 UTC by Josep Torra Valles
Modified: 2012-12-18 16:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to compile gstreamer/gst (70.60 KB, patch)
2008-09-17 16:01 UTC, Josep Torra Valles
none Details | Review
patches gst_error.m4 to disable some warnings when ICC is used (690 bytes, patch)
2008-09-18 15:54 UTC, Josep Torra Valles
none Details | Review
patches gstreamer/gst (59.19 KB, patch)
2008-09-18 15:55 UTC, Josep Torra Valles
none Details | Review
patches gstreamer/libs (10.77 KB, patch)
2008-09-18 15:56 UTC, Josep Torra Valles
committed Details | Review
patches gstreamer/plugins (17.27 KB, patch)
2008-09-18 15:56 UTC, Josep Torra Valles
committed Details | Review
patches gstreamer/tests (1.91 KB, patch)
2008-09-18 15:56 UTC, Josep Torra Valles
committed Details | Review
patches gstreamer/tools (3.44 KB, patch)
2008-09-18 15:58 UTC, Josep Torra Valles
committed Details | Review

Description Josep Torra Valles 2008-09-17 15:58:54 UTC
I've tried to compile GStreamer core with ICC for MID device [1] and several warnings on code had been reported.

In order to have an enviorenment to reproduce the issue it's required to follow the next steps (tested on Ubuntu Hardy) :

1) Download ICC from [1]
2) Unpack, execute install.sh and answer option 6, chroot install when prompted
3) sudo chroot <installed chroot>
4) apt-get build-dep libgstreamer0.10-0 
5) install cvs and other tools
6) cvs checkout
7) ./autgen.sh --prefix=/usr CC=icc
8) add [2] at end of generated config.h to bypass the errors at gst/parser and some others in general like extra ';'. I don't where to put this chunk of exceptions.
9) make

I'm going to provide several patches fixing the issue that will require to be reviewed and commited by someone else :).

[1] http://www.intel.com/software/products/mid/
[2]

#if __INTEL_COMPILER
/* Disable ICC's remark #424: extra ";" ignored */
#pragma warning ( disable : 424 )

/* Disable ICC's remark #1572: floating-point equality and inequality 
 * comparisons are unreliable */
#pragma warning ( disable : 1572 )

/* The following warning are disabled in order to compile the parser code
 * mainlly */

/* Disable ICC's remark #1418: external function definition with no prior 
 * declaration.
 * This is legal ANSI C code so we disable the remark */
#pragma warning ( disable : 1418 )

/* Disable ICC's remark #1419: external declaration in primary source file
 * This is legal ANSI C code so we disable the remark */
#pragma warning ( disable : 1419 )

/* Disable ICC's remark #810: conversion from "flex_int32_t={int}" to 
 * "YY_CHAR={unsigned char}" may lose significant bits */
#pragma warning ( disable : 810 )

/* Disable ICC's remark #869: parameter "yyscanner" was never referenced */
#pragma warning ( disable : 869 )

/* Disable ICC's remark #981: operands are evaluated in unspecified order */
#pragma warning ( disable : 981 )

/* Disable ICC's remark #193: zero used for undefined preprocessing identifier */
#pragma warning ( disable : 193 )

#endif
Comment 1 Josep Torra Valles 2008-09-17 16:01:15 UTC
Created attachment 118886 [details] [review]
Patch to compile gstreamer/gst

This fixes or disable warning on all modules at gstreamer/gst folder.
Comment 2 Josep Torra Valles 2008-09-18 15:54:37 UTC
Created attachment 118956 [details] [review]
patches gst_error.m4 to disable some warnings when ICC is used
Comment 3 Josep Torra Valles 2008-09-18 15:55:40 UTC
Created attachment 118957 [details] [review]
patches gstreamer/gst
Comment 4 Josep Torra Valles 2008-09-18 15:56:03 UTC
Created attachment 118958 [details] [review]
patches gstreamer/libs
Comment 5 Josep Torra Valles 2008-09-18 15:56:25 UTC
Created attachment 118959 [details] [review]
patches gstreamer/plugins
Comment 6 Josep Torra Valles 2008-09-18 15:56:50 UTC
Created attachment 118960 [details] [review]
patches gstreamer/tests
Comment 7 Josep Torra Valles 2008-09-18 15:58:09 UTC
Created attachment 118961 [details] [review]
patches gstreamer/tools
Comment 8 Josep Torra Valles 2008-09-18 16:04:46 UTC
With last provided set of patches the change step 8 on bug description is not required.

In order to compile with the specific optimizations for atom run make CFLAGS="-xL"
Comment 9 Wim Taymans 2009-08-28 16:49:39 UTC
what's up with this, it all seems fine to commit. 

I would like to not have to disable those warnings but fix the source code instead.
Comment 10 Vincent Penquerc'h 2011-11-08 11:57:13 UTC
Unless somebody objects, I'll apply the bits that fix the code in a few days.
Comment 11 Tim-Philipp Müller 2012-09-24 23:57:43 UTC
Went through some of these, not very interesting for the most part. Committed what was left (apart from some printf things which don't make sense to me).


commit 111fcc6e3160389074218d927693536e7d39f92f
Author: Josep Torra Valles <n770galaxy@gmail.com>
Date:   Tue Sep 25 00:55:59 2012 +0100

    Make intel compiler happier
    
    https://bugzilla.gnome.org/show_bug.cgi?id=552657
Comment 12 Edward Hervey 2012-11-15 10:05:17 UTC
Should this bug be closed now ?
Comment 13 Josep Torra Valles 2012-11-15 12:47:29 UTC
Yes, I haven't tried to compile with ICC for long.

I'll try again in future boring weekend :)
Comment 14 Josep Torra Valles 2012-11-15 12:48:38 UTC
Maybe better set it as fixed.