<?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 Undefined reference to sync_fetch_and_add_4 in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793563#M407</link>
    <description>&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;I'm using gcc 4.6.1.&lt;/P&gt;&lt;P&gt;I #define'edTBB_USE_GCC_BUILTINS 0 but I'm still getting those errors. And this is so frustrating because I've already had this working. Unfortunately I've reinstalled Windows and since then I cannot compile it. Previously (in the old Windows installation) I've had the same problem but then I remember I've defined in c++config.h this&lt;/P&gt;&lt;PRE&gt;#define _GLIBCXX_ATOMIC_BUILTINS_4&lt;BR /&gt;&lt;BR /&gt;and it went through. (without this I was getting error c:\...\include\tbb\tbb_exception.h:340: error: 'exception_ptr' in namespace 'std' does not name a type)&lt;BR /&gt;&lt;BR /&gt;But now it seems to be stack on this not defined reference to sync_fetch_and_add_4 and it seems that there is no way to overcome it.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;P.S. The Windows system is same, the qt is same there are just reinstalled.&lt;BR /&gt;&lt;BR /&gt;Also, I've env vars set to:&lt;BR /&gt;INCLUDE = C:\Downloads\libraries\tbb40_297oss\include\tbb&lt;BR /&gt;LIB =  C:\Downloads\libraries\tbb40_297oss\build\windows_ia32_gcc_mingw_debug&lt;BR /&gt;PATH= C:\Downloads\libraries\tbb40_297oss\build\windows_ia32_gcc_mingw_debug&lt;BR /&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 10 Mar 2012 10:01:05 GMT</pubDate>
    <dc:creator>smallb</dc:creator>
    <dc:date>2012-03-10T10:01:05Z</dc:date>
    <item>
      <title>Undefined reference to sync_fetch_and_add_4</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793561#M405</link>
      <description>&lt;P&gt;Guys, I've build tbb with gcc 4.6.1 and when I'm trying to compile project in Qt where I've included tbb.h and parallel_for I'm getting following errors: &lt;/P&gt;&lt;P&gt;c:\\mingw32\\bin\\..\\lib\\gcc\\mingw32\\4.6.1\\include\\c++\\ext\\atomicity.h:48: error: undefined reference to `__sync_fetch_and_add_4'&lt;/P&gt;&lt;P&gt;Does anyone knows what to do about it?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 19:06:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793561#M405</guid>
      <dc:creator>smallb</dc:creator>
      <dc:date>2012-03-09T19:06:52Z</dc:date>
    </item>
    <item>
      <title>Undefined reference to sync_fetch_and_add_4</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793562#M406</link>
      <description>&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Which gcc distribution do you use?&lt;/DIV&gt;Could you try to set a define TBB_USE_GCC_BUILTINS=0&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;--Vladimir&lt;/DIV&gt;</description>
      <pubDate>Sat, 10 Mar 2012 06:50:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793562#M406</guid>
      <dc:creator>Vladimir_P_1234567890</dc:creator>
      <dc:date>2012-03-10T06:50:28Z</dc:date>
    </item>
    <item>
      <title>Undefined reference to sync_fetch_and_add_4</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793563#M407</link>
      <description>&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;I'm using gcc 4.6.1.&lt;/P&gt;&lt;P&gt;I #define'edTBB_USE_GCC_BUILTINS 0 but I'm still getting those errors. And this is so frustrating because I've already had this working. Unfortunately I've reinstalled Windows and since then I cannot compile it. Previously (in the old Windows installation) I've had the same problem but then I remember I've defined in c++config.h this&lt;/P&gt;&lt;PRE&gt;#define _GLIBCXX_ATOMIC_BUILTINS_4&lt;BR /&gt;&lt;BR /&gt;and it went through. (without this I was getting error c:\...\include\tbb\tbb_exception.h:340: error: 'exception_ptr' in namespace 'std' does not name a type)&lt;BR /&gt;&lt;BR /&gt;But now it seems to be stack on this not defined reference to sync_fetch_and_add_4 and it seems that there is no way to overcome it.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;P.S. The Windows system is same, the qt is same there are just reinstalled.&lt;BR /&gt;&lt;BR /&gt;Also, I've env vars set to:&lt;BR /&gt;INCLUDE = C:\Downloads\libraries\tbb40_297oss\include\tbb&lt;BR /&gt;LIB =  C:\Downloads\libraries\tbb40_297oss\build\windows_ia32_gcc_mingw_debug&lt;BR /&gt;PATH= C:\Downloads\libraries\tbb40_297oss\build\windows_ia32_gcc_mingw_debug&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Mar 2012 10:01:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793563#M407</guid>
      <dc:creator>smallb</dc:creator>
      <dc:date>2012-03-10T10:01:05Z</dc:date>
    </item>
    <item>
      <title>Undefined reference to sync_fetch_and_add_4</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793564#M408</link>
      <description>&lt;P&gt;smallb, &lt;BR /&gt;
&lt;BR /&gt;
adding CXXFLAGS="-march=i686" to the make command most likely will
help. &lt;BR /&gt;
i.e. &lt;BR /&gt;
make compiler=gcc CXXFLAGS="-march=i686"&lt;BR /&gt;
&lt;BR /&gt;
PS: asking at TBB devoted forum
(http://software.intel.com/en-us/forums/intel-threading-building-blocks/) will
most likely increase chances of getting help :)&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2012 13:55:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793564#M408</guid>
      <dc:creator>Anton_P_Intel</dc:creator>
      <dc:date>2012-03-11T13:55:48Z</dc:date>
    </item>
    <item>
      <title>Undefined reference to sync_fetch_and_add_4</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793565#M409</link>
      <description>march=i686 would be the minimum architecture to enable use of that instruction, assuming you use the 32-bit compiler. You would probably want a choice more appropriate to your CPU, if it supports SSE2 or SSE3. If you used the 64-bit compiler previously, you wouldn't encounter such an issue, as the default architecture would be opteron SSE2.</description>
      <pubDate>Sun, 11 Mar 2012 14:02:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793565#M409</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2012-03-11T14:02:49Z</dc:date>
    </item>
    <item>
      <title>Undefined reference to sync_fetch_and_add_4</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793566#M410</link>
      <description>&lt;P&gt;Hi Anton,&lt;BR /&gt;Thank you for your reply. I'm affraid that it didn't help unfortunately. &lt;BR /&gt;At the end I fixed that but:&lt;/P&gt;&lt;P&gt;this was terrible (3 days, 2 full system reinstallations, numberous reinstallations of boost (I had to because I'm using it in my project), numerous different reinstallation of tbb (with different options)), in the end I had to:&lt;/P&gt;&lt;P&gt;a) add in ORIGINAL header from tbb (tbb_exception)#include &lt;BITS&gt;&lt;/BITS&gt;&lt;/P&gt;&lt;P&gt;b) in exception_ptr.h had to #define _GLIBCXX_ATOMIC_BUILTINS_4&lt;BR /&gt;&lt;BR /&gt;and this fortunately works.&lt;BR /&gt;&lt;BR /&gt;Thank you and all people who tried to help me.&lt;BR /&gt;Thank you and regards.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2012 18:08:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Undefined-reference-to-sync-fetch-and-add-4/m-p/793566#M410</guid>
      <dc:creator>smallb</dc:creator>
      <dc:date>2012-03-11T18:08:27Z</dc:date>
    </item>
  </channel>
</rss>

