<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hello, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919220#M13141</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;the first problem is because &lt;EM&gt;/usr/libexec/sftp-server&lt;/EM&gt; is not available on the coprocessor and hence cannot do sftp. This is only true for MPSS 3.1.2 because there's no mpss-3.1.2-k1om.tar which contains tools like this.&lt;BR /&gt;
	The second problem is that GNU* GDB sysroot was not set to the MPSS sysroot.&lt;/P&gt;

&lt;P&gt;I've more clearly documented both in the article now:&lt;BR /&gt;
	&lt;A href="http://software.intel.com/en-us/articles/debugging-intel-xeon-phi-applications-on-linux-host"&gt;http://software.intel.com/en-us/articles/debugging-intel-xeon-phi-applications-on-linux-host&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;To solve the first problem, you can download the &lt;EM&gt;mpss-3.1.1-k1om.tar&lt;/EM&gt; (MPSS 3.1.1) and install &lt;EM&gt;openssh-sftp-server-5.9p1-r3.k1om.rpm&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;The second problem can be solved by adding:&lt;BR /&gt;
	&lt;EM&gt;set sysroot /opt/mpss/3.1.2/sysroots/k1om-mpss-linux/&lt;/EM&gt;&lt;BR /&gt;
	...in a command file (e.g. &lt;EM&gt;.gdbinit&lt;/EM&gt;) to be executed before the debug session.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Georg Zitzlsberger&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2014 16:17:35 GMT</pubDate>
    <dc:creator>Georg_Z_Intel</dc:creator>
    <dc:date>2014-02-27T16:17:35Z</dc:date>
    <item>
      <title>Eclipse Remote Debugging</title>
      <link>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919213#M13134</link>
      <description>&lt;P&gt;I am following the &lt;A href="http://software.intel.com/en-us/articles/debugging-intel-xeon-phi-applications-on-linux-host#Configure%20Native%20Debugging"&gt;instructions&lt;/A&gt; to get native remote debugging working in Eclipse.&amp;nbsp; I've had to modifiy them a bit because I am using MPSS 2.1 and the instructions are for ComposerXE.&amp;nbsp; A quick summary:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;Successfully setup a remote system connection to mic0 (steps 1 &amp;amp; 2 in the guide).&lt;/LI&gt;
	&lt;LI&gt;Transfer gdbserver by running
		&lt;PRE class="brush:bash;"&gt;
scp /usr/linux-k1om-4.7/linux-k1om/usr/bin/ mic0:/tmp/gdbserver&lt;/PRE&gt;
		As noted in the instructions for this section, I had to modify this command to use the gdbserver provided by MPSS, which if found &lt;A href="http://software.intel.com/en-us/articles/debugging-intel-xeon-phi-applications-on-linux-host#Debugging%20on%20Command%20Line"&gt;further up in the instructions&lt;/A&gt;.&lt;/LI&gt;
	&lt;LI&gt;Setup Eclipse debugging profile.&amp;nbsp; The only change I made from the instructions (aside from specifying my app) is setting the GDB debugger (under Debugger -&amp;gt; Main) to /opt/intel/mic/bin/gdb, where /opt/intel/mic is the root directory of my MPSS 2.1 installation.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Running the debug profile, the executable gets copied to the MIC and gdbserver starts running (on the MIC), but Eclipse gives the following error:&lt;/P&gt;

&lt;P&gt;Error in final launch sequence&lt;BR /&gt;
	Failed to execute MI command:&lt;BR /&gt;
	-file-exec-and-symbols /hpc/shared/home/rjlewis/git/MicSensor/Release/MicSensor&lt;BR /&gt;
	Error message from debugger back end:&lt;BR /&gt;
	Architecture of file not recognized.&lt;BR /&gt;
	Architecture of file not recognized.&lt;/P&gt;

&lt;P&gt;A quick google search on the phrase "Architecture of file not recognized." lead to &lt;A href="http://stackoverflow.com/questions/13678923/eclipse-failed-to-execute-mi-command"&gt;this StackOverflow &lt;/A&gt;which states: "this happens if the gdb client ( inside eclipse ) is not compiled for the same architecture as the gdb server. setting the correct gdb in eclipse debugging solved this issue"&lt;/P&gt;

&lt;P&gt;Is it possible I'm using the wrong version of GDB in Eclipse?&amp;nbsp; Any help/tips/pointers would be greatly appreaciated.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 15:53:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919213#M13134</guid>
      <dc:creator>Rob_L_</dc:creator>
      <dc:date>2014-02-19T15:53:34Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919214#M13135</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;it seems you missed one last and final step: The path to GDBServer on the coprocessor needs to be specified in tab &lt;EM&gt;Debugger/Gdbserver.&lt;/EM&gt;&lt;BR /&gt;
	As you copied it up to mic0:/tmp/, you just need to specify /tmp/gdbserver in the text field as I did here: &lt;A href="http://software.intel.com/en-us/articles/debugging-intel-xeon-phi-applications-on-linux-host#Configure%20Native%20Debugging"&gt;http://software.intel.com/en-us/articles/debugging-intel-xeon-phi-applications-on-linux-host#Configure%20Native%20Debugging&lt;/A&gt;; very last picture&lt;/P&gt;

&lt;P&gt;Does this help?&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Georg Zitzlsberger&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 13:07:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919214#M13135</guid>
      <dc:creator>Georg_Z_Intel</dc:creator>
      <dc:date>2014-02-20T13:07:56Z</dc:date>
    </item>
    <item>
      <title>Greg,</title>
      <link>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919215#M13136</link>
      <description>&lt;P&gt;Greg,&lt;/P&gt;

&lt;P&gt;I have specified the gdbserver as you mentioned. &amp;nbsp;My post was a little unclear in step 3 because I was trying to save on some typing. &amp;nbsp;I followed all the instructions in setting up the Eclipse debug profile. &amp;nbsp;The only way my profile differs from the instructions is my specified application and the path to gdb (&lt;SPAN style="color: rgb(96, 96, 96);"&gt;/opt/intel/mic/bin/gdb). &amp;nbsp;Let me know if this is still a little vague. &amp;nbsp;I could post some screenshots if that would help.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 16:41:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919215#M13136</guid>
      <dc:creator>Rob_L_</dc:creator>
      <dc:date>2014-02-20T16:41:54Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919216#M13137</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I just saw that the path is incorrect. The GDB executable to use is not &lt;EM&gt;&amp;lt;mpss_root&amp;gt;/bin/gdb&lt;/EM&gt; but it should be:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;/usr/linux-k1om-4.7/bin/x86_64-k1om-linux-gdb&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The other GDB binary is only for the host part required for debugging offload enabled applications. It will be used by the Eclipse* IDE plug-in for offload enabled applications.&lt;/P&gt;

&lt;P&gt;I'll correct this in the article. Thank you for pointing that out!&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Georg Zitzlsberger&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2014 14:08:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919216#M13137</guid>
      <dc:creator>Georg_Z_Intel</dc:creator>
      <dc:date>2014-02-24T14:08:04Z</dc:date>
    </item>
    <item>
      <title>Georg,</title>
      <link>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919217#M13138</link>
      <description>&lt;P&gt;Georg,&lt;/P&gt;

&lt;P&gt;Over the weekend I upgraded to MPSS 3.1 and am now using the gdbserver (copied to the Phi) from /usr/linux-k1om-4.7/linux-k1om/usr/bin/gdbserver and the gdb from /opt/mpss/3.1.2/sysroots/x86_64-mpsssdk-linux/usr/bin/k1om-mpss-linux/k1om-mpss-linux-gdb and was able to get the debugger to break on main(), however I'm still running into two issues.&lt;/P&gt;

&lt;P&gt;1.) It appears that the sftp command has been removed.&amp;nbsp; I am not able to sftp files to the Phi w/ MPSS 3.1 via the command line, and when logged onto the Phi the sftp command is not found.&amp;nbsp; This is in contrast to the Phi's still running MPSS 2.1 where these issues are not present.&amp;nbsp; I am currently working around this in Eclipse by moving the file manually.&amp;nbsp; Here is the output of trying to connect from the host box to the connect Phi with MPSS 3.1&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;[rjlewis@weiss micHome]$ sftp -v mic0&lt;BR /&gt;
		Connecting to mic0...&lt;BR /&gt;
		OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010&lt;BR /&gt;
		debug1: Reading configuration data /etc/ssh/ssh_config&lt;BR /&gt;
		debug1: Applying options for *&lt;BR /&gt;
		debug1: Connecting to mic0 [172.31.1.1] port 22.&lt;BR /&gt;
		debug1: Connection established.&lt;BR /&gt;
		debug1: identity file /home/rjlewis/.ssh/id_rsa type 1&lt;BR /&gt;
		debug1: identity file /home/rjlewis/.ssh/id_dsa type -1&lt;BR /&gt;
		debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9&lt;BR /&gt;
		debug1: match: OpenSSH_5.9 pat OpenSSH*&lt;BR /&gt;
		debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;
		debug1: Local version string SSH-2.0-OpenSSH_5.3&lt;BR /&gt;
		debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;
		debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;
		debug1: kex: server-&amp;gt;client aes128-ctr hmac-md5 none&lt;BR /&gt;
		debug1: kex: client-&amp;gt;server aes128-ctr hmac-md5 none&lt;BR /&gt;
		debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&amp;lt;1024&amp;lt;8192) sent&lt;BR /&gt;
		debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP&lt;BR /&gt;
		debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;BR /&gt;
		debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;BR /&gt;
		debug1: Host 'mic0' is known and matches the RSA host key.&lt;BR /&gt;
		debug1: Found key in /home/rjlewis/.ssh/known_hosts:4&lt;BR /&gt;
		debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;
		debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;
		debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;
		debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;
		debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;
		debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;
		debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;
		debug1: Next authentication method: publickey&lt;BR /&gt;
		debug1: Offering public key: /home/rjlewis/.ssh/id_rsa&lt;BR /&gt;
		debug1: Server accepts key: pkalg ssh-rsa blen 277&lt;BR /&gt;
		debug1: read PEM private key done: type RSA&lt;BR /&gt;
		debug1: Authentication succeeded (publickey).&lt;BR /&gt;
		debug1: channel 0: new [client-session]&lt;BR /&gt;
		debug1: Requesting no-more-sessions@openssh.com&lt;BR /&gt;
		debug1: Entering interactive session.&lt;BR /&gt;
		debug1: Sending environment.&lt;BR /&gt;
		debug1: Sending env XMODIFIERS = @im=ibus&lt;BR /&gt;
		debug1: Sending env LANG = en_US.UTF-8&lt;BR /&gt;
		debug1: Sending subsystem: sftp&lt;BR /&gt;
		debug1: client_input_channel_req: channel 0 rtype exit-status reply 0&lt;BR /&gt;
		debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0&lt;BR /&gt;
		debug1: channel 0: free: client-session, nchannels 1&lt;BR /&gt;
		debug1: fd 0 clearing O_NONBLOCK&lt;BR /&gt;
		Transferred: sent 2368, received 2448 bytes, in 0.0 seconds&lt;BR /&gt;
		Bytes per second: sent 121517.5, received 125622.8&lt;BR /&gt;
		debug1: Exit status 127&lt;BR /&gt;
		Connection closed&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;2.) I'm getting many shared library mismatches, but I don't see anything in the docs about setting up shared libraries.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;No symbol table is loaded.&amp;nbsp; Use the warning: Unable to find dynamic linker breakpoint function.&lt;BR /&gt;
		GDB will be unable to debug shared library initializers&lt;BR /&gt;
		and track explicitly loaded dynamic code.&lt;BR /&gt;
		The target endianness is set automatically (currently little endian)&lt;BR /&gt;
		warning: `/lib64/libpthread.so.0': Shared library architecture i386:x86-64 is not compatible with target architecture k1om.&lt;BR /&gt;
		warning: `/lib64/librt.so.1': Shared library architecture i386:x86-64 is not compatible with target architecture k1om.&lt;BR /&gt;
		warning: .dynamic section for "/lib64/librt.so.1" is not at the expected address (wrong library or version mismatch?)&lt;BR /&gt;
		warning: `/lib64/libm.so.6': Shared library architecture i386:x86-64 is not compatible with target architecture k1om.&lt;BR /&gt;
		warning: `/usr/lib64/libstdc++.so.6': Shared library architecture i386:x86-64 is not compatible with target architecture k1om.&lt;BR /&gt;
		warning: .dynamic section for "/usr/lib64/libstdc++.so.6" is not at the expected address (wrong library or version mismatch?)&lt;BR /&gt;
		warning: `/lib64/libgcc_s.so.1': Shared library architecture i386:x86-64 is not compatible with target architecture k1om.&lt;BR /&gt;
		warning: .dynamic section for "/lib64/libgcc_s.so.1" is not at the expected address (wrong library or version mismatch?)&lt;BR /&gt;
		warning: `/lib64/libc.so.6': Shared library architecture i386:x86-64 is not compatible with target architecture k1om.&lt;BR /&gt;
		warning: .dynamic section for "/lib64/libc.so.6" is not at the expected address (wrong library or version mismatch?)&lt;BR /&gt;
		warning: `/lib64/libdl.so.2': Shared library architecture i386:x86-64 is not compatible with target architecture k1om.&lt;BR /&gt;
		warning: Could not load shared library symbols for /lib64/ld-linux-k1om.so.2.&lt;BR /&gt;
		Do you need "set solib-search-path" or "set sysroot"?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Any thoughts would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:33:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919217#M13138</guid>
      <dc:creator>Rob_L_</dc:creator>
      <dc:date>2014-02-26T17:33:36Z</dc:date>
    </item>
    <item>
      <title>Georg,</title>
      <link>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919218#M13139</link>
      <description>&lt;P&gt;Edit: Removed double post.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:36:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919218#M13139</guid>
      <dc:creator>Rob_L_</dc:creator>
      <dc:date>2014-02-26T17:36:00Z</dc:date>
    </item>
    <item>
      <title>I forgot to mention that</title>
      <link>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919219#M13140</link>
      <description>&lt;P&gt;I forgot to mention that using &lt;STRONG&gt;/usr/linux-k1om-4.7/bin/x86_64-k1om-linux-gdb &lt;/STRONG&gt;on a Phi with MPSS 2.1 did solve my problem.&amp;nbsp; If the issues around getting 3.1 working are major, I will likely just revert all the devices to 2.1.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:09:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919219#M13140</guid>
      <dc:creator>Rob_L_</dc:creator>
      <dc:date>2014-02-26T18:09:31Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919220#M13141</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;the first problem is because &lt;EM&gt;/usr/libexec/sftp-server&lt;/EM&gt; is not available on the coprocessor and hence cannot do sftp. This is only true for MPSS 3.1.2 because there's no mpss-3.1.2-k1om.tar which contains tools like this.&lt;BR /&gt;
	The second problem is that GNU* GDB sysroot was not set to the MPSS sysroot.&lt;/P&gt;

&lt;P&gt;I've more clearly documented both in the article now:&lt;BR /&gt;
	&lt;A href="http://software.intel.com/en-us/articles/debugging-intel-xeon-phi-applications-on-linux-host"&gt;http://software.intel.com/en-us/articles/debugging-intel-xeon-phi-applications-on-linux-host&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;To solve the first problem, you can download the &lt;EM&gt;mpss-3.1.1-k1om.tar&lt;/EM&gt; (MPSS 3.1.1) and install &lt;EM&gt;openssh-sftp-server-5.9p1-r3.k1om.rpm&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;The second problem can be solved by adding:&lt;BR /&gt;
	&lt;EM&gt;set sysroot /opt/mpss/3.1.2/sysroots/k1om-mpss-linux/&lt;/EM&gt;&lt;BR /&gt;
	...in a command file (e.g. &lt;EM&gt;.gdbinit&lt;/EM&gt;) to be executed before the debug session.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Georg Zitzlsberger&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2014 16:17:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Eclipse-Remote-Debugging/m-p/919220#M13141</guid>
      <dc:creator>Georg_Z_Intel</dc:creator>
      <dc:date>2014-02-27T16:17:35Z</dc:date>
    </item>
  </channel>
</rss>

