<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="======================================================================
ERROR: test_improvement (test_quadpack.TestCtypesQuad)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/usr/lib64/python3.4/site-packages/numpy/testing/decorators.py&quot;, line 146, in skipper_func
    return f(*args, **kwargs)
  File &quot;/var/tmp/portage/sci-libs/scipy-0.16.0/work/scipy-0.16.0-python3_4/build/test/lib/scipy/integrate/tests/test_quadpack.py&quot;, line 42, in setUp
    self.lib = ctypes.CDLL(file)
  File &quot;/usr/lib64/python3.4/ctypes/__init__.py&quot;, line 351, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/lib64/libm.so: invalid ELF header

======================================================================
ERROR: test_typical (test_quadpack.TestCtypesQuad)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/usr/lib64/python3.4/site-packages/numpy/testing/decorators.py&quot;, line 146, in skipper_func
    return f(*args, **kwargs)
  File &quot;/var/tmp/portage/sci-libs/scipy-0.16.0/work/scipy-0.16.0-python3_4/build/test/lib/scipy/integrate/tests/test_quadpack.py&quot;, line 42, in setUp
    self.lib = ctypes.CDLL(file)
  File &quot;/usr/lib64/python3.4/ctypes/__init__.py&quot;, line 351, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/lib64/libm.so: invalid ELF header"><pre class="notranslate"><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span>
<span class="pl-v">ERROR</span>: <span class="pl-en">test_improvement</span> (<span class="pl-s1">test_quadpack</span>.<span class="pl-v">TestCtypesQuad</span>)
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
  <span class="pl-v">File</span> <span class="pl-s">"/usr/lib64/python3.4/site-packages/numpy/testing/decorators.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">146</span>, <span class="pl-s1">in</span> <span class="pl-s1">skipper_func</span>
    <span class="pl-k">return</span> <span class="pl-en">f</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/var/tmp/portage/sci-libs/scipy-0.16.0/work/scipy-0.16.0-python3_4/build/test/lib/scipy/integrate/tests/test_quadpack.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">42</span>, <span class="pl-s1">in</span> <span class="pl-s1">setUp</span>
    <span class="pl-s1">self</span>.<span class="pl-s1">lib</span> <span class="pl-c1">=</span> <span class="pl-s1">ctypes</span>.<span class="pl-v">CDLL</span>(<span class="pl-s1">file</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/usr/lib64/python3.4/ctypes/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">351</span>, <span class="pl-s1">in</span> <span class="pl-s1">__init__</span>
    <span class="pl-s1">self</span>.<span class="pl-s1">_handle</span> <span class="pl-c1">=</span> <span class="pl-en">_dlopen</span>(<span class="pl-s1">self</span>.<span class="pl-s1">_name</span>, <span class="pl-s1">mode</span>)
<span class="pl-v">OSError</span>: <span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">lib64</span><span class="pl-c1">/</span><span class="pl-s1">libm</span>.<span class="pl-s1">so</span>: <span class="pl-s1">invalid</span> <span class="pl-v">ELF</span> <span class="pl-s1">header</span>

<span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span>
<span class="pl-v">ERROR</span>: <span class="pl-en">test_typical</span> (<span class="pl-s1">test_quadpack</span>.<span class="pl-v">TestCtypesQuad</span>)
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
  <span class="pl-v">File</span> <span class="pl-s">"/usr/lib64/python3.4/site-packages/numpy/testing/decorators.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">146</span>, <span class="pl-s1">in</span> <span class="pl-s1">skipper_func</span>
    <span class="pl-k">return</span> <span class="pl-en">f</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/var/tmp/portage/sci-libs/scipy-0.16.0/work/scipy-0.16.0-python3_4/build/test/lib/scipy/integrate/tests/test_quadpack.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">42</span>, <span class="pl-s1">in</span> <span class="pl-s1">setUp</span>
    <span class="pl-s1">self</span>.<span class="pl-s1">lib</span> <span class="pl-c1">=</span> <span class="pl-s1">ctypes</span>.<span class="pl-v">CDLL</span>(<span class="pl-s1">file</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/usr/lib64/python3.4/ctypes/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">351</span>, <span class="pl-s1">in</span> <span class="pl-s1">__init__</span>
    <span class="pl-s1">self</span>.<span class="pl-s1">_handle</span> <span class="pl-c1">=</span> <span class="pl-en">_dlopen</span>(<span class="pl-s1">self</span>.<span class="pl-s1">_name</span>, <span class="pl-s1">mode</span>)
<span class="pl-v">OSError</span>: <span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">lib64</span><span class="pl-c1">/</span><span class="pl-s1">libm</span>.<span class="pl-s1">so</span>: <span class="pl-s1">invalid</span> <span class="pl-v">ELF</span> <span class="pl-s1">header</span></pre></div>
<p dir="auto">This is with glibc-2.22 on Gentoo Linux</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/* GNU ld script
*/
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib64/libm.so.6  AS_NEEDED ( /lib64/libmvec.so.1 ) )"><pre class="notranslate"><code class="notranslate">/* GNU ld script
*/
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib64/libm.so.6  AS_NEEDED ( /lib64/libmvec.so.1 ) )
</code></pre></div>
<p dir="auto">On Fedora Rawhide (F24):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: test_typical (test_quadpack.TestCtypesQuad)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/usr/lib64/python2.7/site-packages/numpy/testing/decorators.py&quot;, line 146, in skipper_func
    return f(*args, **kwargs)
  File &quot;/builddir/build/BUILDROOT/scipy-0.16.0-1.fc24.x86_64/usr/lib64/python2.7/site-packages/scipy/integrate/tests/test_quadpack.py&quot;, line 42, in setUp
    self.lib = ctypes.CDLL(file)
  File &quot;/usr/lib64/python2.7/ctypes/__init__.py&quot;, line 360, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /lib64/libm.so: invalid ELF header"><pre class="notranslate"><code class="notranslate">ERROR: test_typical (test_quadpack.TestCtypesQuad)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/numpy/testing/decorators.py", line 146, in skipper_func
    return f(*args, **kwargs)
  File "/builddir/build/BUILDROOT/scipy-0.16.0-1.fc24.x86_64/usr/lib64/python2.7/site-packages/scipy/integrate/tests/test_quadpack.py", line 42, in setUp
    self.lib = ctypes.CDLL(file)
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 360, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /lib64/libm.so: invalid ELF header
</code></pre></div>
<p dir="auto">This is because libm.so is a GNU ld script:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# cat /usr/lib64/libm.so
/* GNU ld script
*/
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib64/libm.so.6  AS_NEEDED ( /lib64/libmvec.so.1 ) )"><pre class="notranslate"><code class="notranslate"># cat /usr/lib64/libm.so
/* GNU ld script
*/
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib64/libm.so.6  AS_NEEDED ( /lib64/libmvec.so.1 ) )
</code></pre></div>