Bug#605650: atlas: sh4: unresolvable reference to symbol __sdivsi3_i4i

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Thu Dec 2 04:52:00 UTC 2010


Source: atlas
Version: 3.8.3-29
Severity: wishlist
Tags: patch
User: debian-sh4 at superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh at lists.debian.org

Hi,

SH4 of atlas library has problem that unresolvable reference to symbol
__sdivsi3_i4i.

http://buildd.debian-ports.org/fetch.php?pkg=atlas&arch=sh4&ver=3.8.3-29&stamp=1290674899&file=log&as=raw
-----
dh_perl -plibatlas3gf-base
dh_shlibdeps -plibatlas3gf-base  -l
/home/iwamatsu/build-area/atlas/atlas-3.8.3/debian/libatlas3gf-base/usr/lib/atlas-base/:/home/iwamatsu/build-area/atlas/atlas-3.8.3/debian/libatlas3gf-base/usr/lib/at
   las-base/atlas/:
dpkg-shlibdeps: warning:
debian/libatlas3gf-base/usr/lib/atlas-base/libatlas.so.3gf.0 contains
an unresolvable reference to symbol __sdivsi3_i4i: it's probably a
plugin.
dpkg-shlibdeps: warning: 1 similar warning has been skipped (use -v to see it).
-----

This is because libgcc_s.a has __sdivsi3_i4i. This is a specific
problem on Renesas SH.
Therefore, it is revised if libatlas.so.3gf.0 links libgcc_s as follows.

  ld  -shared -soname libatlas.so.3gf -o libatlas.so.3gf.0
--whole-archive libatlas.a --no-whole-archive -lc -lpthread -lm
-L/usr/lib/gcc/sh4-linux-gnu/4.4.5/ -lgcc_s

I made the brief patch which revised this problem.
Could you check this patch?

Best regards,
  Nobuhiro
-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 23_fix_unresolvable_on_sh4.diff
Type: text/x-patch
Size: 558 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20101202/f691fccf/attachment.bin>


More information about the debian-science-maintainers mailing list