<?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 [SOLVED] PCM Installation issue  Kernel3  in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773755#M234</link>
    <description>Hi Pat,&lt;BR /&gt;&lt;BR /&gt;Thanks for your helpful reply,&lt;BR /&gt;&lt;BR /&gt;The problem was solved by applying your suggestion to put -lpthread at theend of the line and adding them to the second compile line:&lt;BR /&gt;&lt;BR /&gt;cpucounters.o: msr.h msr.cpp cpucounters.h cpucounters.cpp types.h width_extender.h &lt;BR /&gt; $(CC) $(OPT) -c cpucounters.cpp -lpthread -lrt &lt;BR /&gt;&lt;BR /&gt;I attached the revised makefile.&lt;BR /&gt;&lt;BR /&gt;My linker version was:&lt;BR /&gt;ld -v&lt;BR /&gt;GNU ld (GNU Binutils for Ubuntu) 2.21.53.20110810&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;RSH</description>
    <pubDate>Thu, 12 Apr 2012 15:05:53 GMT</pubDate>
    <dc:creator>raoufeh</dc:creator>
    <dc:date>2012-04-12T15:05:53Z</dc:date>
    <item>
      <title>PCM Installation issue  Kernel3</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773750#M229</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I am trying to install &lt;A href="http://software.intel.com/en-us/articles/intel-performance-counter-monitor/"&gt;Intel PCM &lt;/A&gt;in the following system:&lt;BR /&gt;uname -a&lt;BR /&gt;Linux PowerEdge-R510 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux&lt;BR /&gt;&lt;BR /&gt;I previously used it at the same machine with Kernel 2.6.35 and Ubuntu 10.10 but when i upgraded to Ubintu &lt;BR /&gt;11.10 and kernel 3 I couldn`t install PCM due to a list of undefined reference errors (attached) like:&lt;BR /&gt;&lt;BR /&gt;undefined reference to `sem_open'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;apparently, these errors are related to lpthread library. &lt;BR /&gt;Googleing the error I mostly see linker issues which can be solved by adding --lpthread -lrt to the make files. But it looks like this is already included in the make file,&lt;BR /&gt;&lt;BR /&gt;I was wondering if anyone else encountered such problem and if the developers know how to solve it?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;RSH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 21:31:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773750#M229</guid>
      <dc:creator>raoufeh</dc:creator>
      <dc:date>2012-04-11T21:31:03Z</dc:date>
    </item>
    <item>
      <title>PCM Installation issue  Kernel3</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773751#M230</link>
      <description>Hello RSH,&lt;BR /&gt;Can you edit the Makefile and look for the rule to build pcm.x and change the line&lt;BR /&gt;from&lt;BR /&gt;$(CC) $(OPT) -lpthread -lrt msr.o pci.o cpucounters.o cpucounterstest.o -o pcm.x&lt;BR /&gt;to&lt;BR /&gt;$(CC) $(OPT) -lpthread -lrt msr.o pci.o cpucounters.o cpucounterstest.o -o pcm.x -lpthread -lrt&lt;BR /&gt;&lt;BR /&gt;Don't delete the starting tab.&lt;BR /&gt;As you can see, '-lpthread -lrt' is already on the compile line but some linkers require the libraries to be specified last.Some linkersare single pass linkers so the order in which .o files and libraries are specified matters.&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Pat&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2012 23:26:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773751#M230</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2012-04-11T23:26:24Z</dc:date>
    </item>
    <item>
      <title>PCM Installation issue  Kernel3</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773752#M231</link>
      <description>Hi Pat,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply, but it's the same story even with this change,&lt;BR /&gt;I even did the change for all the rules that had some libreary in it.&lt;BR /&gt;&lt;BR /&gt;The gcc version in the new Ubuntu is:&lt;BR /&gt;&lt;BR /&gt;gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) &lt;BR /&gt;&lt;BR /&gt;in the old system where i could install PCM the gcc version was 4.5.5&lt;BR /&gt;&lt;BR /&gt;I guess it should be something related to the linker ! But don`t know what.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;RSH&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2012 00:30:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773752#M231</guid>
      <dc:creator>raoufeh</dc:creator>
      <dc:date>2012-04-12T00:30:55Z</dc:date>
    </item>
    <item>
      <title>PCM Installation issue  Kernel3</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773753#M232</link>
      <description>Can you try:&lt;BR /&gt;make LDFLAGS="-Wl,--no-as-needed"</description>
      <pubDate>Thu, 12 Apr 2012 00:53:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773753#M232</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2012-04-12T00:53:08Z</dc:date>
    </item>
    <item>
      <title>PCM Installation issue  Kernel3</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773754#M233</link>
      <description>You might have to add &lt;BR /&gt;-Wl,--no-as-needed&lt;BR /&gt;after the '-lrt' in the compile cmds in the Makefile... as in '-lrt -Wl,--no-as-needed'</description>
      <pubDate>Thu, 12 Apr 2012 00:56:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773754#M233</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2012-04-12T00:56:49Z</dc:date>
    </item>
    <item>
      <title>[SOLVED] PCM Installation issue  Kernel3</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773755#M234</link>
      <description>Hi Pat,&lt;BR /&gt;&lt;BR /&gt;Thanks for your helpful reply,&lt;BR /&gt;&lt;BR /&gt;The problem was solved by applying your suggestion to put -lpthread at theend of the line and adding them to the second compile line:&lt;BR /&gt;&lt;BR /&gt;cpucounters.o: msr.h msr.cpp cpucounters.h cpucounters.cpp types.h width_extender.h &lt;BR /&gt; $(CC) $(OPT) -c cpucounters.cpp -lpthread -lrt &lt;BR /&gt;&lt;BR /&gt;I attached the revised makefile.&lt;BR /&gt;&lt;BR /&gt;My linker version was:&lt;BR /&gt;ld -v&lt;BR /&gt;GNU ld (GNU Binutils for Ubuntu) 2.21.53.20110810&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;RSH</description>
      <pubDate>Thu, 12 Apr 2012 15:05:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/PCM-Installation-issue-Kernel3/m-p/773755#M234</guid>
      <dc:creator>raoufeh</dc:creator>
      <dc:date>2012-04-12T15:05:53Z</dc:date>
    </item>
  </channel>
</rss>

