- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
When I click "View Source", instead of the source code Amplifier shows me the Assembly and indicates that source file is undefined. I created a tiny example, which reproduces the issue.
Source:
#include <iostream>
Using the command:
g++ -O2 -shared-libgcc -o main -g main.cpp
I've double checked that source search path and symbols search path in the Amplifier are set to the right path, rebooted the machine, restarted the Amplifier with no effect. Also I step by step reproduced the https://software.intel.com/sites/default/files/managed/4e/7b/hotspots_amplxe_lin.pdf and still got the same problem.
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I cannot reproduce it with g++ (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609.
The issue is that your binary module has compressed debug sections in the format which is not supported in VTune Amplifier. As a result VTune cannot read debugging information. It will be fixed in future releases.
Workaround is not to use zlib-gabi compression for debug sections.
Can you try either "--compress-debug-sections=none" or "--compress-debug-sections=zlib-gnu" build option?
g++ -Wl,--compress-debug-sections=none -O2 -shared-libgcc -o main -g ./main.cpp
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you attach your executable module (main) and VTune result? What function you are looking at?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I cannot reproduce it with g++ (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609.
The issue is that your binary module has compressed debug sections in the format which is not supported in VTune Amplifier. As a result VTune cannot read debugging information. It will be fixed in future releases.
Workaround is not to use zlib-gabi compression for debug sections.
Can you try either "--compress-debug-sections=none" or "--compress-debug-sections=zlib-gnu" build option?
g++ -Wl,--compress-debug-sections=none -O2 -shared-libgcc -o main -g ./main.cpp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yay! Thanks for immediate reaction! Compiling as g++ -Wl,--compress-debug-sections=none -O2 -o main -g ./main.cpp solves the problem! I guess, for now it's ok, will be waiting for future releases. If you need any additional information to reproduce the problem, feel free to write me.
![](/skins/images/B7BA37F9CE4B52FF7CAE1FB0388839C8/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page