<?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 Hi Puneet, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-using-MKL-lib64-crt1-o-In-function-start-text-0x20/m-p/1100181#M23834</link>
    <description>&lt;P&gt;Hi Puneet,&lt;/P&gt;

&lt;P&gt;Could you check the online link tool&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt;,&amp;nbsp;or, run C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_*.*.*\windows\mkl\tools\mkl_link_tool.exe to see if the needed libraries are linked for your application?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2016 01:20:48 GMT</pubDate>
    <dc:creator>Shaojuan_Z_Intel</dc:creator>
    <dc:date>2016-11-30T01:20:48Z</dc:date>
    <item>
      <title>Error using MKL: lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-using-MKL-lib64-crt1-o-In-function-start-text-0x20/m-p/1100180#M23833</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
	I am trying to configure a software with intel MKL 2015.&lt;BR /&gt;
	I had used link lines(inplicit,explicit linking) :&amp;nbsp; -liomp5 -lpthread -lm -ldl , as well as &amp;nbsp;-L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl&lt;BR /&gt;
	and -mkl=parallel , -I${MKLROOT}/include.&lt;BR /&gt;
	&lt;BR /&gt;
	i am currently stuck with following configure error(implicit linking MKL):&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;checking for MKL BLAS
configure:21747: mpiicpc -o conftest -std=c99 -fms-extensions -funsigned-char -pedantic -W -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wunused -Wfloat-equal -fPIC  -mkl=parallel    -D_POSIX_SOURCE -DNDEBUG    -O -Wl,-export-dynamic -L conftest.c   -liomp5 -lpthread -lm -ldl

icpc: command line warning #10006: ignoring unknown option '-Wnested-externs'
icpc: warning #10315: specifying -lm before files may supersede the Intel(R) math library and affect performance
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
configure:21747: $? = 1
configure: failed program was:

..........| #define HAVE_LIBXML_PARSER_H 1
| #define HAVE_LIBXML2 1
| /* end confdefs.h.  */
| #include &amp;lt;mkl_blas.h&amp;gt;
| int
| main ()
| {
|  cblas_ddot(0, 0, 0, 0, 0);
|   ;
|   return 0;
| }
configure:21757: result: no
configure:21979: error: in `/home/user/CODESATURNE/code_saturne-4.0.6':
configure:21981: error: BLAS support is requested, but test for BLAS failed!
See `config.log' for more details&lt;/PRE&gt;

&lt;P&gt;also the logs with explicir MKL linking:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt; mpiicpc -o conftest -std=c99 -fms-extensions -funsigned-char -pedantic -W -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wunused -Wfloat-equal -fPIC  -I/home/soft/intel2015/composer_xe_2015.3.187/mkl/include     -D_POSIX_SOURCE -DNDEBUG    -O -Wl,-export-dynamic -L conftest.c   -L/home/soft/intel2015/composer_xe_2015.3.187/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl   &amp;gt;&amp;amp;5
icpc: command line warning #10006: ignoring unknown option '-fms-extensions'
icpc: command line warning #10006: ignoring unknown option '-Wcast-align'
icpc: command line warning #10006: ignoring unknown option '-Wnested-externs'
icpc: warning #10315: specifying -lm before files may supersede the Intel(R) math library and affect performance
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
configure:21747: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "code_saturne"
| #define PACKAGE_TARNAME "code_saturne"
| #define PACKAGE_VERSION "4.0.6"
| #define PACKAGE_STRING "code_saturne 4.0.6"
| #define PACKAGE_BUGREPORT "saturne-support@edf.fr"
| #define PACKAGE_URL "http://code-saturne.org"
| #define PACKAGE "code_saturne"
| #define VERSION "4.0.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_LONG_LONG 1
| #define HAVE_UNSIGNED_LONG_LONG 1
| #define HAVE_INT32_T 1
| #define HAVE_INT64_T 1
| #define HAVE_UINT32_T 1
| #define HAVE_UINT64_T 1
| #define HAVE_PTRDIFF_T 1
| #define SIZEOF_VOID_P 8
| #define SIZEOF_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_FLOAT 4
| #define SIZEOF_DOUBLE 8
| #define HAVE_LONG_GNUM 1
| #define CS_REVISION "4.0.6"
| #define HAVE_LIBXML_PARSER_H 1
| #define HAVE_LIBXML2 1
| /* end confdefs.h.  */
| #include &amp;lt;mkl_blas.h&amp;gt;
| int
| main ()
| {
|  cblas_ddot(0, 0, 0, 0, 0);
|   ;
|   return 0;
| }
configure:21757: result: no
configure:21979: error: in `/home/user/CODESATURNE/code_saturne-4.0.6':
configure:21981: error: BLAS support is requested, but test for BLAS failed!
See `config.log' for more details&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	Any help/hint will be very useful.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 11:11:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-using-MKL-lib64-crt1-o-In-function-start-text-0x20/m-p/1100180#M23833</guid>
      <dc:creator>psing51</dc:creator>
      <dc:date>2016-11-29T11:11:49Z</dc:date>
    </item>
    <item>
      <title>Hi Puneet,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-using-MKL-lib64-crt1-o-In-function-start-text-0x20/m-p/1100181#M23834</link>
      <description>&lt;P&gt;Hi Puneet,&lt;/P&gt;

&lt;P&gt;Could you check the online link tool&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt;,&amp;nbsp;or, run C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_*.*.*\windows\mkl\tools\mkl_link_tool.exe to see if the needed libraries are linked for your application?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 01:20:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-using-MKL-lib64-crt1-o-In-function-start-text-0x20/m-p/1100181#M23834</guid>
      <dc:creator>Shaojuan_Z_Intel</dc:creator>
      <dc:date>2016-11-30T01:20:48Z</dc:date>
    </item>
  </channel>
</rss>

