Huge debugging binaries after switching from C++ Sun Studio 11 to 12u1

Hello
I changed the compiler in our C++ project from Sun Studio 11 to Sun Studio 12u1 (12u3 is currently not available).
The only change on the command line I had to do was replacing -xarch=v9 with -m64.
The command line now is "CC -c -g -features=rtti -mt -KPIC -w -staticlib=Cstd,Crun -m64  ...".
Our static libraries are now 50% bigger, the executables are 10x bigger (200 MB to now 2 GB!!!).
This also affected the debugger sessions, they are slow and the print statement only produces internal errors.
I think this is due to the size of the binaries.
Please help to reduce the binary size.
Best regards
Hans

The debug data format changed between Studio 11 and 12u1 from Sun stabs to the industry-standard dwarf format. (The Studio 12u1 C++ Users Guide is incorrect where it says stabs is the default format.)
The change in debug format has two consequences:
1. Debug data is typically 10-15% larger, due to increased information about the program being available (a major reason for the change).
2. Whereas stabs data resides in the .o files with only index information in the executable program, all the dwarf data is copied into the executable. With dwarf, you can fully debug the program without access to the .o files that make up the program.
To verify this reason for the larger binaries, try building your program using Studio 11, adding the -xs option. This option causes the stabs to be copied into the executable program. You should find the binaries are similar in size compared to building with Studio 12u1. If this is not the case, we'll need to dig deeper.
You can revert to using stabs by adding the option -xdebugformat=stabs to every compile and link command (CC or cc).
In a future version of Studio, we plan to provide an option to leave dwarf data in the .o files with only index information in the executable, so that you can have a smaller executable when you don't mind requiring access to the .o files in order to debug.
By the way, we do not recommend static linking of libCstd and libCrun. Unless you have a particular reason for linking the static libraries, we recommend the default dynamic linking.

Similar Messages

  • After switching from SUNJVM to SAP JVM  on Netweaver 7.0 server

    After switching from SUNJVM to SAP JVM  on Netweaver 7.0 server the b2b application and the xcm configuration detail cannot be accessed
    it gives the following error.
    #1.5 #00059A3C7800006D0000002C000015980004B30C3E45830D#1322765072300#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#niit.com/b2b_niit#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Guest#0##n/a##820feec01c4c11e1c79300059a3c7800#SAPEngine_Application_Thread[impl:3]_32##0#0#Error#1#/System/Server/WebRequests#Plain###application [b2b_niit] Processing HTTP request to servlet [action] finished with error.
    The error is: com.sap.engine.services.servlets_jsp.server.exceptions.ServletNotFoundException: Cannot load the requested servlet [b2b_niit/servlet/action].
    Exception id: [00059A3C7800006D0000002A000015980004B30C3E457F63]#
    #1.5 #00059A3C7800006D0000002D000015980004B30C671A5D9B#1322765757605#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#niit.com/b2b_niit#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#Guest#0##n/a##1a892d501c4e11e1b99700059a3c7800#SAPEngine_Application_Thread[impl:3]_32##0#0#Error##Plain###application [b2b_niit] Processing HTTP request to servlet [action] finished with error. The error is: com.sap.engine.services.servlets_jsp.server.exceptions.ServletNotFoundException: Cannot load the requested servlet [b2b_niit/servlet/action].
         at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:330)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:354)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: java.lang.NoClassDefFoundError: com/sap/isa/core/ActionServlet : cannot initialize class because prior initialization attempt failed
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:282)
         at java.lang.Class.newInstance0(Class.java:310)
         at java.lang.Class.newInstance(Class.java:263)
         at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:319)
         ... 14 more
    Caused by: java.lang.ExceptionInInitializerError
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:282)
         at java.lang.Class.newInstance0(Class.java:310)
         at java.lang.Class.newInstance(Class.java:263)
         at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.addServlet(WebComponents.java:117)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.loadServlets(ApplicationThreadInitializer.java:386)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.run(ApplicationThreadInitializer.java:110)
         ... 4 more
    Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.reflect.InvocationTargetException
         at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
         at org.apache.struts.action.ActionServlet.<clinit>(ActionServlet.java:375)
         ... 13 more
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:282)
         at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
         ... 17 more
    Caused by: java.lang.NullPointerException: while trying to invoke the method com.sap.tc.logging.Location.debugT(java.lang.String) of an object loaded from field com.sap.isa.core.logging.sla.IsaLocationSla.location of an object loaded from local variable 'this'
         at com.sap.isa.core.logging.sla.IsaLocationSla.debug(IsaLocationSla.java:583)
         at com.sap.isa.core.logging.sla.IsaLocationSla.<init>(IsaLocationSla.java:46)
         at com.sap.isa.core.logging.IsaLocation.getInstance(IsaLocation.java:52)
         at com.sap.isa.core.logging.StrutsLog.<init>(StrutsLog.java:25)
         ... 22 more

    Hi,
    That particualr error should be solved by adding the following parameter to your instance profile:
    jstartup/vm/parameters = -XX:-ExtendedExceptionMessages
    The issue is related to note 1693118
    Kind regards,
    Cathal

  • Some issues after switching from 686 to x86_64

    Hi all,
    after switching from i686 to x86_64 using this link I am now facing some minor issues with some packages. I already activated the multilib repository but some problems remain. I checked the binaries in /usr/bin for 32 bit executables as described in the above link and there are 177 "bad" binaries left. I thought all of these were not executable, but surprisingly wine was. Strange!
    ffmpeg is another 32 bit executable and not runnable. So I tried to reinstall it, but that failed:
    > pacman -S ffmpeg
    warning: ffmpeg-1:2.6.1-1 is up to date -- reinstalling
    resolving dependencies...
    looking for conflicting packages...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: ffmpeg-compat: requires libx264.so=144-32
    libx264 is installed and didn't want to be reinstalled either:
    > pacman -S libx264
    warning: libx264-2:144.20150223-1 is up to date -- reinstalling
    resolving dependencies...
    looking for conflicting packages...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: ffmpeg: requires libx264.so=144-32
    :: ffmpeg-compat: requires libx264.so=144-32
    Can someone give me a hint, what's the best way to solve this problem?
    Thanks in advance, Zmann

    I think the first issue you will run in to is that the interface for an old P4 hdd will probably not be the same as a new computer.  Besides that, it will probably be vastly slower than what comes with a new computer.  I think that is not the best idea.
    The only wat to really "trasition" between two archtectures that I know of is to copy configuration files over and have pacman dump a list of explicitly installed packages from the main repos.  Then use that information to reinstall all those packages.

  • IPhone 4s Voice mail notification not working after switching from Verizon to PagePlus.

    iPhone 4s Voice mail notification not working after switching from Verizon to PagePlus.  How can I get the notifications working?

    Contact your carrier - voicemail, and visual voicemail, is a carrier feature.

  • Blurry font after switching from WinXP to Win 7 (Was:Schrift im Dreamweaver CS 3  verschwommen)

    <Preran> For the benefit of moderators here, I used Google to translate your content into English:
    Good day,
    I have problems with blurry font in Dreamweaver CS3 after switching from Windows XP to Windows 7
    I have already tried the following:
    In "Edit" Preferences "change font size" - unfortunately that does not work. (which had worked fine in the previous changeover to Windows XP)
    Then I got in the forum www. office-loesungen.de the tip, sometimes seen on the control panel display, which percentage is set.
    When I got the set to the mean value, the writing was not so blurry, but still not really readable.
    Experiments with Clear adjust TypeText were not successful.
    There is a trick, so the font is larger
    If I have to "small" hinders the size that was at 0.75 in the previous pages, it is readable for me, so I could enter the text and read it.
    However, the text is then when uploading larger.
    What can I do now?
    For speedy help I would be grateful
    Best regards
    Guten Tag,
    ich habe Probleme mit verschwommener Schrift im Dreamweaver CS3 nach der Umstellung von Windows XP auf Windows 7.
    Ich habe folgendes schon probiert:
    Bei „Bearbeiten“ und Voreinstellungen „Schriftgröße ändern“- das funktioniert leider nicht. (das  hatte bei der letzten Umstellung auf Windows XP wunderbar geklappt)
    Dann bekam ich im Forum www. office-loesungen.de den Tipp, mal über die Systemsteuerung-Anzeige zu sehen, welcher   Prozentwert eingestellt ist.
    Als ich den auf den mittleren Wert eingestellt habe, war die Schrift schon nicht mehr ganz so verschwommen, aber immer noch nicht richtig lesbar.
    Auch Versuche mit Clear Type Text anpassen waren nicht erfolgreich.
    Einen Trick gibt es, wodurch die Schrift größer wird
    Wenn ich die Größe, die bei den bisherigen Seiten bei 0,75 lag , auf „klein“ verstelle, ist es für mich lesbar, ich  könnte den Text so eingeben und auch lesen.
    Allerdings wird der  Text dann beim Hochladen auch größer.
    Was kann ich jetzt tun?
    Für baldige Hilfe wäre ich dankbar
    Mit freundlichem Gruss
    Renate Gundel

    I've done this multiple times and it produces essentially the same message, but there is a mention that a restart is pending. This is also strange because this is definitely not the case. First time I used CScleaner it took a while and was obviously busy correcting something. However now when I select clean all, it simply dumps anopther massive log file into AppData and says cleaning completed successfully. Now I just ran it again, so would you like me to post the more recent log file?

  • NI-4060 giving invalid 1st reading after switching from or to LOW Resistance Measurements

    We've been using TestStand & LabView to test various Circuit board. On series of test involves checking for a short circuit (Measure Low Resistance 4-wire) then measuring for a 3.5Vrms signal on another part of the board.
    For each measurement, the following NI-DMM VI's are used in order:
    niDMMInit, niDMMAutoZero, niDMMConfigure, niDMMMeasure, niDMMClose.
    If we do the Low Resistance 4WR measurement, then a AC V measurement, the 1st reading from the DMM is approx 10x too high, if a 2nd reading it done it is then OK.
    It doesn't matter how long a delay is before we take the 1st measurement, it's always approx a factor of 1E+1 out.
    If however we don't do a Low Restance prior to
    the AC V measurement, then the measurement is always correct.
    I expermented with turning AutoZero on & off, and various resolution settings, however none of these seem to have an effect on the result.
    Can anyone explain these strange results?
    Thanks
    Simon Holman
    Simon Holman
    Software Engineer
    Certified LabVIEW Developer
    Certified TestStand Developer
    measX GmbH & Co. KG.
    http://www.measx.com

    Thanks, after playing with a few more settings I found if I turned the Cacheing off niDMMInitWithOptions, with "Cache=0" that everything worked fine, but it would take a couple of seconds to get the first AC measurement after switching from resistance.
    Simon
    Simon Holman
    Software Engineer
    Certified LabVIEW Developer
    Certified TestStand Developer
    measX GmbH & Co. KG.
    http://www.measx.com

  • How to debug ABAP Web services from Microsoft Visual Studio

    When developing .NET based Web services clients using Visual Studio that call Web services in SAP NetWeaver .NET developers would like to be able to debug inside SAP. In my blog <a href="/people/andre.fischer/blog/2007/02/07/how-to-debug-abap-web-services-from-microsoft-visual-studio to debug ABAP Web services from Microsoft Visual Studio</a> I would like to point .NET developers to the fact that SAP NetWeaver offers the option of external debugging to perform this task. Though the steps that have to be performed are described in the SAP Online Help I am sure that this option is not well known amongst the .NET developer community.

    Hello WilliamIV,
    >>How can I "configure" Visual Studio debugger to allow validation to work?
    Since I do not have a VS2012 environment, according to your provided link, I created a test demo with VS2013, however, both ways catch the validation error:
    If possible, you could have a try with VS2013 to see if it works or run the example on other machine with VS2012 to see if this is caused by the VS environment, in my side, I do not change any configuration, all are default.
    If I misunderstood this issue, please feel free to let me know.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Switching from Sound Forge Studio

    I'm thinking of switching from Sound Forge Studio to Soundtrack Pro for recording/editing our in-house audio training programs. (We provide business development training for the computer consulting industry.)
    Can you provide any insight on the pros/cons of doing so?
    What kind of learning curve should I expect?
    Again with just recording/editing teleseminars, our audio needs are very basic. So do you think it'll be worth it to make the switch?
    Thanks,
    Joshua Feinberg

    Not really an answer but something to think about: Soundtrack Pro is not a stand alone application. I believe the only way you can purchase it now is part of the Final Cut Studio 2 package ~$1300. Unless you have need for Final Cut Pro, DVD Studio Pro, Motion and so on, it is a very pricey deal.
    Of course you should also understand that it runs only on Macs.
    Hopefully you'll get some good answers from the regulars about the capabilities of the program.
    x

  • OS X partition becomes corrupt after switching from Bootcamp

    So I've had to reinstall os x 10.9.1 no less than three  times this week and multiple times before in the past after switching between os x and windows 8.1. This usually happens after I've been using windows for a prolonged period then switch back to os x but it happened today after reinstalling os x from a time machine backup just yesterday. I'll switch between the two and os x becomes corrupt and begins the loading bar sequence after selecting the os x partition via the refit boot manager. I tried repairing the partition using disk utility from the repair partition and an external installation of os x 10.9.1 but every time the disk becomes corrupt and needs to be wiped and reinstalled or install a time machine backup. I've lost count of how many times I've had to do this and to make things even worse both of my external disks have become corrupt after being disconnected for two days while I sort this mess out. Does anyone else have similar issues or can locate an issue somewhere?

    Yeah I reinstalled osx 10.9.1 and installed all my apps, put everything back then used bootcamp to create a partition for windows then used wineclone to install my windows 8.1 backup. I jumped from windows > osx > windows > osx inside an hour to move around a few things and I forgot verify bootcamp after I installed the backup and that last time I booted to osx it was corrupted. I used disk utility from my external installation and the recovery partition and both times they need repaired which only came up with the backup and wipe notification window. There have been two occasions where I was able to fix the osx partition from my external osx installation and continue using osx quite perfectly but usually the partition becomes un-mountable after it fails to repair. Usually when this has happened the twenty something times before it's after a prolonged period of a few weeks using windows.
    I'm using refit boot manager and paragon NTFS 11 which may be the only software I've installed that could be corrupting the boot.
    SMART status is verified

  • Problem loading safari webpage after switch from EDGE to 3G and vice versa.

    ok, very simple question
    i'm on edge, i want to go on safari, so i enable 3G. after that i go on safari and try to open a webpage. even after the 3G icon displays on top, it still takes a very long time before the webpage starts to load. Sometimes i get a message saying Safari could not open the page because the server stopped responding. IS THIS NORMAL?
    also if im on 3G and switch down to EDGE and then open a page in safari i get a message saying Could not activate cellular data network, even though the page loads anyway. IS THAT NORMAL?
    Message was edited by: Stevendo

    are you on 4.0.1?
    if so then this of course is not normal but it is also happening to me
    ill be at home and have 3G on 4 bars and i try to load a page on safari and nothing happens, then i switch it to edge and it connects, but like u when switching from 3G to edge i get those messages.. also i noticed that this only happended after i updated to 4.0.1 and i NEVER got these problems b4 on 4.0 and to make things worse.. in order for my 3G data to work i have to make a phone call, hang up, then ill get connectivity on 3G..
    so the fix... i dont kno??
    but im suffering like u...

  • Is there a way to recover contacts after switching from Samsung S3 to I-phone 4s

    is there a way to recover contacts after switching this weekend from Samsung s3 to i-phone 4s

    where they google contacts? or phone contacts?
    google contacts can be exported and then imported into ios, search the net
    if they were phone contacts you had to use vze method

  • After switching from iphone 4 to iphone 6 i lost sync with iMessage on my mac book

    Hello
    I have jsut switched from iPhone 4 to iPhone 6. Previously I could use iMessage sync'ed on my iPhone and my Mac-Book. Now I doesn't work anymore. I went into settings->messages->SMS transfert from the iPhone. I saw the Mac Book being referenced but when I put the switch into green it shows a pop-up asking me to pin-in the code that should be shown in Messages from the Mac-Book but nothing is posted there.
    I hope I am clear. Just trying to get back to what I used to like as very convenient.
    Thanks in advance for help.
    Best
    Pierre

    Hello
    In the meantime while I was working on the issue a window popped on my iPhone asking for my password for iCloud. So I wasn't connected to iCloud and after I connected it all went OK and iPhone 6 now coupled with iMessage on the Mac Book.
    So I'm fixed and thanks again for your help.
    Best
    Pierre

  • "Class Not Registered​" after switching from 32-bit to 64-bit LabVIEW.

    I recently upgraded LabVIEW 2012 from 32-bit to 64-bit.  Now I'm getting an error that says "Class not Registered".  It still works just fine with the 32-bit version. 

    Thank you Nathan and Sunshine.  The problem is I didn't build the program - it came with the instrument.  As far as I can tell this is what's going on:  The vi's are replete with these activeX objects - all communication with the instruments is done through invoke and property nodes.  After switching to 64-bit the very first sub vi has an error at the very first command (Err (-2147221164)). It's a reference (seemingly to a class but I actually have no idea what that means) passed to the "Open Automation Function".  I'll attach a screen shot for the sake of overkill.  
    Attachments:
    labviewerror.png ‏20 KB

  • [SOLVED] KVM Broken After Switch from KVM to Qemu-KVM

    Since I made the switch from KVM 88-1 to Qemu-KVM 0.11.0-1 yesterday, my virtual Win XP64 guest OS will not load; I just get a black screen. When I try safe mode, I can see that it is getting stuck on "acpitabl.dat."
    Here's the line I've always used to start it up,
    qemu-kvm -boot c -m 512 -hda win_xp.img -net nic,vlan=1 -net user,vlan=1 -localtime -k en-us -soundhw ac97 -vga std
    Does anyone have any ideas? Thanks in advance.
    Last edited by tony5429 (2009-11-27 05:03:43)

    I see that my user was not on 'kvm' group after the switch.
    When I added my user to de kvm group Qemu-KVM works like a charm.

  • No Audio after switching from Headset/Speakers

    Product : Sound Blaster Z
    OS : Windows 7 Ultimate x64
    Issue : No audio when switching from headset to speaker or speaker to headset
    Description : I used to have it working perfectly fine before I formatted my computer. I could be playing a game or watching a movie using my speakers, then I would use the switch in the SB Control Panel to make it play through my headphones and everything would work. Now if I do that, I loose the audio from that program that is currently running. Meaning I have to restart the program and the audio will come through the specified audio device. Sounds like the windows setting "Allow applications to take exclusive control of this device" is acting up, but I have tried this with both the setting on and off.
    Any help is appreciated.

    AFAIK some applications loose audio on switch, while others don't.
    are you saying the same app once didn't loose audio on switch, now does after a format ?
    in other words, do you believe that before the format nothing ever lost audio on switch ? that would mean there's a way to solve it, as most of us, if not all, are having that same issue (which is Creative's fault, not Microsoft's).

Maybe you are looking for