CC: Warning: -O5 overwrites previously set optimization level of -O3

I'm trying to get a clean compile of the Boost 1.32.0 library using the Studio Express August build, and in the course of that (this post is not about Boost), I get the following:
sunpro-C++-action bin/boost/libs/filesystem/build/libboost_filesystem.a/sunpro/release/exception.o
/opt/SPROexpress/opt/SUNWspro//bin//CC -O -xlang=c99 -mt \
-library=stlport4 -features=tmplife -features=tmplrefstatic -errtags=yes \
-D_POSIX_THREAD_SEMANTICS -c -DNDEBUG -DNDEBUG -fast -O4 -xtarget=generic \
-library=stlport4 -features=tmplife -features=tmplrefstatic -erroff=wbadinitl,wbadasgl \
-Qoption ccfe -complextmplexp \
-I"bin/boost/libs/filesystem/build" -I"/thirdparty/lib/boost_1_32_0" -I"/thirdparty/lib/boost_1_32_0" \
-o "bin/boost/libs/filesystem/build/libboost_filesystem.a/sunpro/release/exception.o" \
"/thirdparty/lib/boost_1_32_0/libs/filesystem/build/../src/exception.cpp"
CC: Warning: -O5 overwrites previously set optimization level of -O3
Maybe I'm doing something wrong in the way that both -O and -O4 get specified on the command line, but why is the error message specifying -O5 and -O3, neither of which I specified??

Herteg,
I see what's going on here. -O expands to -O3. That
is overridden by the -O5 which is included in the
expansion of -fast.This is correct.
Four things about this:
(1) The warning message should say "overrides", not
"overwrites".I think that there should be no warning at all. We have "rightmost wins" rule for the compiler flags, and both -O and -fast are documented well enough to understand which -O<n> (or -xO<n>) they will be translated into.
The problem is that I don't see this "rightmost wins" in the documentation for -O<n>/-xO<n>.
(2) There is no corresponding warning when the -O5 is
overridden by the following -O4. Or is it?I believe there shouldn't be one in the first place.
(3) The effect of multiple -Olevel options is
unspecified; that should be corrected in the manual.Well, it is specified, it's just not documented :-)
(4) The Sun Studio 11 C++ User's Guide is
inconsistent on the meaning of the -O option:
A.2.61 -O
The -O macro now expands to -xO3 instead of -xO2.
A.2.145 -xOlevel
On the SPARC Platform:
The -O option is equivalent to the -xO2 option.The second one is wrong. But I suppose you already know this.
Thank you very much for bringing this to our attention! Would you please file a bug through the web interface: http://bugs.sun.com/services/bugreport/index.jsp ?
Thanks,
Boris

Similar Messages

  • When I set all the tracks in the latest Garageband to the same volume levels and save, when I open the file again they've changed back to a previous setting?

    I'm trying to mix a recording in the latest 2014 version of Garageband, but when I set all the tracks in the latest Garageband to the same volume levels and save, when I open the file again they've changed back to a previous setting? Does anyone know why it changes even after saving the file?
    Below is my iMac settings.

    Do you have a back up?
    If not you're into using file recovery software like  File Salvage - you can download a free trial and it will scan the disk for you and tell you with might be recoverable. Actual recovery will require that you purchase the app. There may be many files with the same or similar names. Always recover the largest file size.
    There are other such apps. Search on Macupdate or the App Store

  • EA1 - Optimization level not being respected.

    It seems that no matter what I define under Preferences->Database->PL/SQL Compiler->Optimization Level, everything is always compiled against optimization level 2.

    Cant reproduce. Steps:
    CREATE OR REPLACE PROCEDURE OPTIM_LEVEL0 AS
    BEGIN
      NULL;
    END OPTIM_LEVEL0;
    Set Tools->Preferences->PL/SQLCompiler->Optimization Level=0
    Press  Compile cogwheel toolbutton.
    Go to Details tab, witness PLSQL_OPTIMIZE_LEVEL=0
    Repeat these steps for level = 1 and 2.

  • Optimization Level never rises during aggregation design

    I've recently added a couple of new dimensions to an old SSAS database.   I decided since I added new dimensions I should re-design the aggregations.
    I use the aggregation design wizard, and it acts pretty normal for most of the measure groups.  
    But then I get to the only measure group that connects to my two new dimensions.   This happens to be a very large measure group and it uses 19 different cube dimensions.
    When I run the aggregation design wizard on this group, I choose the "until I click stop" option and let it go, and it starts designing aggregations.   The number of aggregations designed keeps going up, and the storage space allocated
    keeps going up, but the optimization level stays at 0% the whole time.   After a few minutes it gives up at about 200 aggregations and 6 gigs of space used, and still 0% optimization.
    Is there any possible scenario in which this might be expected and normal, or should I be worried?   I've never seen this happen before.
    -Tab Alleman

    Hi Tab,
    If you select the ‘I click Stop’ option and watch the design grow until the estimated size is ridiculously large (maybe over a couple of Gb) you can then get a feeling for how many small aggregations can be built; you can then stop it, reset the aggregations
    and then restart using either the ‘Performance Gain’ or ‘Storage Reaches’ option set to an appropriate level.
    I would suggest you refer to the following articles regarding best practices and effective to design aggregations in SSAS, please see:
    Designing Effective Aggregations in AS2005:
    http://cwebbbi.wordpress.com/2006/10/23/designing-effective-aggregations-in-as2005/
    Aggregation Design Best Practices:
    http://technet.microsoft.com/en-us/library/cc966399.aspx#EBAA
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • Help on  Setting logical Levels  in Fact tables and on Dimension tables

    Hi all
    Can any body provide any blogs or any king of material on what exactly is levelling .
    Like after creating the Dimensional hierarchies we need to set the logical levels for the LTS of fact tabels ri8 .So what is the difference between setting logical levels to fact tabels and also Setting levelling on Dimension tables .
    Any kind of help is appreciated
    Thanks
    Xavier.
    Edited by: Xavier on Aug 4, 2011 10:50 AM

    I have read these blogs ,but what my question is
    Setting the logical levels in LTS of Fact tables i understood .
    But we can also set the logical levels for dimensions also ri8 .I didn't understand why do we set the logical levels for dimensions .Is there any reason why we go with the levelling at dimensions
    Thanks
    Xavier
    Edited by: Xavier on Aug 4, 2011 2:03 PM
    Edited by: Xavier on Aug 4, 2011 2:32 PM

  • Setting Item level access rights on sharepoint list item in ItemAdding event handler

    Hi ,
    I am using sharepoint 2013. I am trying to set item level access rights when a list item is added using the following code snippet,
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    ConfigureItemSecurity(properties);
    private void ConfigureItemSecurity(SPItemEventProperties properties)
    var item=properties.ListItem;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(properties.SiteId))
    using (SPWeb oWeb = site.OpenWeb())
    item.ParentList.BreakRoleInheritance(true);
    oWeb.AllowUnsafeUpdates = true;
    var guestRole = oWeb.RoleDefinitions.GetByType(SPRoleType.Reader);
    var editRole = oWeb.RoleDefinitions.GetByType(SPRoleType.Editor);
    SPGroup HRGroup = oWeb.SiteGroups.Cast<SPGroup>().AsQueryable().FirstOrDefault(g => g.LoginName=="HR Team");
    SPRoleAssignment groupRoleAssignment = new SPRoleAssignment(HRGroup);
    groupRoleAssignment.RoleDefinitionBindings.Add(guestRole);
    SPUserCollection users = oWeb.Users;
    SPFieldUserValueCollection hm = (SPFieldUserValueCollection)item["HiringManager"];
    SPFieldUserValueCollection pm = (SPFieldUserValueCollection)item["ProjectManager"];
    SPFieldUserValueCollection pmChiefs = (SPFieldUserValueCollection)item["ProjectManagerChief"];
    item.BreakRoleInheritance(true);
    item.RoleAssignments.Add(groupRoleAssignment);
    foreach (SPFieldUserValue staffMember in hm)
    SetRightsOnItem(item, staffMember, editRole);
    foreach (SPFieldUserValue staffMember in pm)
    SetRightsOnItem(item, staffMember, guestRole);
    foreach (SPFieldUserValue staffMember in pmChiefs)
    SetRightsOnItem(item, staffMember, guestRole);
    item.Update();
    private void SetRightsOnItem(SPListItem item, SPFieldUserValue staffMember, SPRoleDefinition role)
    SPUser employeeUser = staffMember.User;
    var userRoleAssignment = new SPRoleAssignment(employeeUser);
    userRoleAssignment.RoleDefinitionBindings.Add(role);
    item.RoleAssignments.Add(userRoleAssignment);
    Nothing is happening though... Is the event handler the right place to do this?
    thank you

    Hi ,
    You can refer to the code working in my environment:
    using System;
    using System.Security.Permissions;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Utilities;
    using Microsoft.SharePoint.Workflow;
    namespace ItemLevelSecurity.ItemSecurity
    /// <summary>
    /// List Item Events
    /// </summary>
    public class ItemSecurity : SPItemEventReceiver
    /// <summary>
    /// An item was added.
    /// </summary>
    public override void ItemAdded(SPItemEventProperties properties)
    SPSecurity.RunWithElevatedPrivileges(delegate()
    try
    using (SPSite oSPSite = new SPSite(properties.SiteId))
    using (SPWeb oSPWeb = oSPSite.OpenWeb(properties.RelativeWebUrl))
    //get the list item that was created
    SPListItem item = oSPWeb.Lists[properties.ListId].GetItemById(properties.ListItem.ID);
    //get the author user who created the item
    SPFieldUserValue valAuthor = new SPFieldUserValue(properties.Web, item["Created By"].ToString());
    SPUser oAuthor = valAuthor.User;
    //assign read permission to item author
    AssignPermissionsToItem(item,oAuthor,SPRoleType.Reader);
    //update the item
    item.Update();
    base.ItemAdded(properties);
    catch (Exception ex)
    properties.ErrorMessage = ex.Message; properties.Status = SPEventReceiverStatus.CancelWithError;
    properties.Cancel = true;
    public static void AssignPermissionsToItem(SPListItem item, SPPrincipal obj, SPRoleType roleType)
    if (!item.HasUniqueRoleAssignments)
    item.BreakRoleInheritance(false, true);
    SPRoleAssignment roleAssignment = new SPRoleAssignment(obj);
    SPRoleDefinition roleDefinition = item.Web.RoleDefinitions.GetByType(roleType);
    roleAssignment.RoleDefinitionBindings.Add(roleDefinition);
    item.RoleAssignments.Add(roleAssignment);
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Eric Tao
    TechNet Community Support

  • Setting system level deployment.user.cachedir in deployment.config

    G'day,
    I've been experimenting with JRE 1.5.0_04 on Windows XP.
    By default deployment.user.cachedir is set to <user home>\Application Data\Sun\Java\Deployment\cache. However, I want it to be <user home>\Local Settings\Application Data\Sun\Java\Deployment\cache.
    I have managed this as follows.
    C:\Windows\Sun\Java\Deployment\deployment.config contains:
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.propertiesand C:\Windows\Sun\Java\Deployment\deployment.properties contains:
    deployment.user.cachedir=$USER_HOME\\..\\..\\..\\..\\Local Settings\\Application Data\\Sun\\Java\\Deployment\\cacheThis works but is ugly. The problem is that $USER_HOME=<user home>\Application Data\Sun\Java\Deployment. It seems that $USER_HOME and $JRE_HOME are the only two variables for use in deployment properties. Are there any others, in particular, one that mirrors the user's actual home directory?
    Thanks,
    Chris.

    G'day,
    Open the Java Console and execute "dump system and
    deployment properties" which shows property values,
    and see if what you want is there.Thanks, but I don't think I can use these at the system level, can I?
    I did try using ${user.home} but that doesn't work.
    So, are there any variables other than $USER_HOME and $JRE_HOME that can be used when setting system level properties?
    More info, http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html
    Thanks,
    Chris.

  • Problem with setting Source Level in Sun Studio 2

    I've got problem with setting Source Level to 1.5 in Sun Studio 2. When I try to set it to 1.5 in Project properties and click Ok everything seem to go well, but when I open Project Properties again Source Level is set to 1.4. I need this to work cause I started to lear Java recently and I want to use foreach loop.
    Please help

    I'm just citing an example using Date().
    In fact, whether I use DateFormat or Calendar, it shows the same result.
    When I set the date to 1 Jan 1950 0 hours 0 minutes 0 seconds,
    jdk1.4.2 will always return me 1 Jan 1950 0 hours 10 minutes 0 seconds.
    It works correctly under jdk1.3.1

  • In LR6CC, after using the merge to HDR and the photo returns to LR as a DRG, it is not automatically put into a previously set up stack. For example a stack of three photos. If I use NIK HDR and the photo returns to LR, the stack is automatically changed

    In LR6CC, after using the merge to HDR and the photo returns to LR as a DRG, it is not automatically put into a previously set up stack. For example a stack of three photos. If I use NIK HDR and the photo returns to LR, the stack is automatically changed from 3 to 4. When LR's HDR merge brings a photo back into LR's library, the stack number does not change and the DRG version isn't included in the stack.

    Hi,
    The Ps CS6 public beta version contains the same camera support as found in Ps CS5/5.5 compatible CR 6.6. There will be future updates to CR 7 for Ps CS6 to pick up more camera support. The Nikon D800 NEF files are not supported, yet.
    If you like to work with your D800 files in the public beta build now, you'll have to get the DNG Converter 6.7 from here: http://labs.adobe.com/technologies/cameraraw6-7/
    and convert your files to DNG.
    regards,
    steve

  • I have a 2004 30gb ipod colour.....it was previously set up so i could manage the music on an old mac book pro g4.....i now have a new mac book pro, but i cannot get the music from my old ipod on to my mac......how do i do this???

    i have a 2004 30gb ipod colour.....it was previously set up so i could manage the music on an old mac book pro g4.....i now have a new mac book pro, but i cannot get the music from my old ipod on to my mac......how do i do this???

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your Mac and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    Once you have successfully done that you can go ahead and choose Erase and Sync when you plug your iPod in.
    B-rock

  • I have windows 7, 3 or 4 times a week when I open firefox all of the preferences that I had previously set are no longer there everything is set to the default

    i have windows 7, why are the preferences that i had previously set in firefox changed back to default about 3-4 times a week?

    If you use cleanup software like CCleaner then check the settings for the Firefox application.
    Which security software (firewall, anti-virus) do you have?
    If you have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • Custom "Save as PDF" directly to a destination folder overwrites previously saved PDF files

    Custom "Save as PDF" directly to a destination folder overwrites previously saved PDF files
    As many of you will know, within Mac OSX it is possible to "print" any document off as a PDF.  You simply prepare your document then invoke the "Print" command and in the resulting print dialog box, click the "PDF" button in the bottom left corner which spills out a menu with various options including "Save as PDF..." as shown in the image below:
    Selecting the last option "Edit Menu" permits users to add specific folders to which a PDF of the document will be saved.  As you will note from the image above, I have created a number of destinations such as "Bank Transfers" (for anything on screen in Safari I wish to preserve when using my on-line banking facility); "Bind" (which I use with an Automator workflow to consolidate many PDFs into one long document); "Officeworks" (for stuff I need to copy to a USB stick and have printed on on large plotters); "iPad" (for anything I need to put on my iPad through "iAnnotate" or "Documents") etc
    The problem I have discovered is that with the introduction of Mountain Lion, PDFs that get saved directly to a destination folder get overwritten by later versions of PDFs that are produced from the same document.  This is fine when working on a single document that you may want to have the latest print of a document but not so when you produce many different PDFs from the same browser window in Safari as you surf through a number of websites etc.
    Prior to Mountain Lion, pervious versions were never over-written but rather preserved them with new versions having version number suffixes added e.g., untitled.pdf, followed by untitled1.pdf, untitled2.pdf, untitled3.pdf etc.
    Does anyone else have this problem?
    Does anyone have a solution to this problem? (other than a workaround like switching to Finder to rename or move files around)

    The "Save to Web Receipts" bug existed for a long time - here's a MacOSXHints article offering a workaround in 2007.  Here's another reference to it in 2009.  Your contention that:
    Prior to Mountain Lion, pervious [sic] versions were never over-written.
    is, I'm afraid, wrong.
    Apple fixed (worked around) that bug by using a .pdfworkflow, as I indicated.  As I also indicated, this file can't be opened with Automator (or I just don't know how, which is no great surprise ).  But it's the answer to your problems.
    You can either wait for Apple to fix what is, admittedly, a huge bug in their PDF Services feature, or you can find a way of implementing the same fix they did for your own folders.
    I should be doing the same, as I use PDF Services regularly, but I'm too lazy and have had too little success with Automator in general to give it a shot.  You may have more success than I did.
    Good luck

  • Can we record a video from a web cam and let saved video take our previous setting

    Can we record a video from a web cam and let saved video take
    our previous setting
    fps: 20
    bitrate: 1000
    Size: 500*400
    can we configure that in code or is it a webcam specs?

    Hi, Vikas-
    After a brief bit of research, you're definitely hitting upon the limitation of the browsers.  Not all of the browsers have implemented this part of the HTML5 standard, so you're going to either have to use Flash or be limited to these specific browsers.
    Thanks,
    -Elaine

  • I want to set a up smart album (in iPhoto "11) that auto-updates to a stream in iCloud that i have previously set up. How do i do this?

    I want to set a up smart album (in iPhoto "11) that auto-updates to a stream in iCloud that i have previously set up. How do i do this?

    I don't believe that this is possible right now.
    iPhoto Menu -> Provide iPhoto Feedback for feature requests.

  • If I uninstall and reinstall Mozilla/firefox, why do ALL the previous setting return? I want a clean and fresh setup

    All previous setting appear.

    Are you sure you want to get rid of everything? To set up a clean folder ''in parallel'' to your current settings folder you can:
    '''Create a new Firefox profile'''
    ''This is in addition to and does not replace your existing settings.''
    A new profile will have your system-installed plugins (e.g., Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions, or other customizations. It also should come with completely fresh settings databases and a fresh cache folder.
    Exit Firefox and start up in the Profile Manager using Start > search box (or Run) -- type or paste the following and press Enter:
    firefox.exe -P
    ''Don't delete anything here.''
    Any time you want to switch profiles, exit Firefox and return to this dialog.
    Click the Create Profile button, assign a name like March27, and ignore the option to change the folder location. Then start Firefox in the new profile you created.
    You can use the Library dialog (Ctrl+Shift+b or "Show All Bookmarks") to access the Restore feature. The trick is knowing where to find your bookmark backups in your regular profile. After clicking Choose File... you can paste this into the file name space and press Enter to drill down to your profile folders:
    %APPDATA%\Mozilla\Firefox\Profiles
    The semi-randomly-named folder that has your last backup is usually the one ending with "default". Click into that one, then into the '''bookmarkbackups''' folder. Here you can pick the most recently updated file to restore.
    Important: a Restore wipes any bookmarks currently in your active Firefox profile and replaces it with the contents of the restored backup.

Maybe you are looking for

  • Can't transfer music to iPod nano

    How do I download music from portable hard drive to iPod nano. I tried to retrieve my music from iTunes, but its in the portable hard drive and it only shows up thru the cloud. I want to have access all my iTunes while keeping it on portable drive.

  • After updating to the latest Reader XI - pdf preview no longer show up in the explorer preview pane

    After finally allowing Adobe to update my reader - I no longer can see pdf files in the preview pane.  I can see previews if I have medium or large icons turned on - but a large version in the preview pane.  And never if small icons or details are us

  • Registering iPhone to download apps

    Ok, so ive pulled in my iPhone and got the screen where it asked if I wanted to register it now or later. I clicked now and then I get taken to a white screen with iPhone written in the centre. Along the top is the loading bar which says accessing iT

  • How to create a new System !!!!!!!

    Hi, I have a database in SQL Server and I want to connect to it in my code using the system Alias can anyone plz tell me how to set up my Database.

  • Making an element scroll independently of the page

    I would like to make a lightbox slideshow with 100+ photos. For aesthetics purposes, I want the thumbnail container to display 9 at a time, and the user to be able to scroll down within the container so all are able to be viewed. Is the possible