<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">On 4/18/2019 1:11 PM, Even Rouault
wrote:<br>
</div>
<blockquote type="cite" cite="mid:2700336.eAqFur8UrD@even-i700">
<pre class="moz-quote-pre" wrap="">On jeudi 18 avril 2019 12:38:43 CEST Fengting Chen wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">In my case, this didn't work.
1. When I ran the GDAL build, I always use "make clean" to clean the old
build. And I did run scripts/setdevenv.sh before running the test.
/>which gdalinfo//
///scratch/gdal/gdal/gdal/apps/gdalinfo//
/
/>gdalinfo --version//
//GDAL 2.5.0dev-94f370c-dirty, released 2019/04/01/
2. gdalinfo and gdaltranslate are working without error. Only pytest failed:
/E ImportError: /scratch/gdal/gdal/gdal/.libs/libgdal.so.20: undefined
symbol: _Z17CPLHaveRuntimeAVXv/
3. I checked libgdal.so.so, it is missing that symbol:
/>nm /scratch/gdal/gdal/gdal/.libs/libgdal.so.20 |grep
_Z17CPLHaveRuntimeAVXv//
// U _Z17CPLHaveRuntimeAVXv/
It seems that my manual test of gdalinfo and gdal_translate didn't use
that symbol. Anyone know which library that symbol came from?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
It comes from GDAL in port/cpl_cpu_features.h/.cpp . I did some change in that
area a few weeks ago. There's some subtelty to inline it or not, depending on
the compiler, etc, but everything works fine on environments tested by
continuous integration.
What is your compiler and compiler version ?
Hum, what surprises me is that in a previous post you mentionned having built
--without-libtool, but here you link agains a libtool build. If you indeed use
a non-libtool build, you need to remove the /scratch/gdal/gdal/gdal/.libs
directory
</pre>
</blockquote>
<p>Not sure how you find out I used libtool build. In my configure
option, I did specify "--without-libtool". <br>
</p>
<p>Here is the output from configure about compiler and libtool: <br>
</p>
<p> <i> C compiler: gcc -DHAVE_AVX_AT_COMPILE_TIME
-DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2
-fPIC</i><i><br>
</i><i> C++ compiler: g++ -std=c++11
-DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME
-DHAVE_SSE_AT_COMPILE_TIME -g -O2 -fPIC</i><i><br>
</i><i> C++14 support: no</i><i><br>
</i><i><br>
</i><i> LIBTOOL support: no</i><br>
</p>
<p>-Fengting<br>
</p>
<p><br>
</p>
<blockquote type="cite" cite="mid:2700336.eAqFur8UrD@even-i700">
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
</body>
</html>