Your message dated Sun, 23 Apr 2017 02:49:38 +0000
with message-id <[email protected]>
and subject line Bug#831896: fixed in imms 3.1.0~svn301-4
has caused the Debian Bug report #831896,
regarding imms FTBFS: for mips64el: linking 32-bit code with 64-bit code
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
831896: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831896
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: imms
Version: 3.1.0~svn301-3.2
Severity: important
Tags: sid + patch
Justification: FTBFS
User: [email protected]
Usertags: mips-patch


Package imms FTBFS for mips64el with an error:

> g++ immsd.o socketserver.o libimmscore.a libmodel.a  `pkg-config glib-2.0 
> --libs` -L. -lXss -lXext -lX11 -lsqlite3 -lz  -lpcre -ltorch -ltag 
> -L/usr/X11R6/lib -Wl,-z,relro -L/usr/X11R6/> lib -o  immsd> 
> /usr/bin/ld: libmodel.a(svm-similarity-data.o): warning: linking abicalls 
> files with non-abicalls files> 
> /usr/bin/ld: libmodel.a(svm-similarity-data.o): linking 32-bit code with 
> 64-bit code

svm-similarity-data.o is created using objcopy and do not contain flags 
information:
>  $ readelf -h build/svm-similarity-data.o  | grep Flags
>  Flags:                             0x0

Similar issue is recently noticed for kvmtool:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=827525

Here is also possible to create svm-similarity-data.o using xdd and g++.
Needed changes are included in use-xdd-for-svm_similarity.patch.

Using this patch I was able to build imms for mips64el.
The patch is tested on mipsel, i386, amd64.

Regards,
Dejan
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 imms (3.1.0~svn301-3.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * debian/control: Tighten audacious-dev in Build-Depends to (>= 3.6).
   * debian/patches/audacious-3.6.patch: Upstream patch to port imms to
     Audacious 3.6+ (Closes: #807843)
Author: Sebastian Ramacher <[email protected]>
Bug-Debian: http://bugs.debian.org/807843

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- imms-3.1.0~svn301.orig/model/model.cc
+++ imms-3.1.0~svn301/model/model.cc
@@ -57,8 +57,8 @@ static const int num_hidden = 25;
 static const int num_outputs = 2;
 static const int stdv = 12;
 
-extern char _binary____data_svm_similarity_start;
-extern char _binary____data_svm_similarity_end;
+extern char ___data_svm_similarity;
+extern char ___data_svm_similarity_len;
 
 class XFileModeSetter {
 public:
@@ -104,10 +105,7 @@ public:
         }
         else
         {
-            static const size_t data_size = &_binary____data_svm_similarity_end
-                - &_binary____data_svm_similarity_start;
-            model.reset(new MemoryXFile(
-                        &_binary____data_svm_similarity_start, data_size));
+            model.reset(new MemoryXFile(&___data_svm_similarity, ___data_svm_similarity_len));
         }
         normalizer.load(model.get());
         svm.loadXFile(model.get());
--- imms-3.1.0~svn301.orig/rules.mk
+++ imms-3.1.0~svn301/rules.mk
@@ -37,7 +37,7 @@ link = $(CXX) $(filter-out %.a,$1) $(fil
             -shared -Wl,-z,defs,-soname,$@ -o $@
 
 %-data.o: %
-	$(OBJCOPY) -I binary -O $(OBJCOPYTARGET) -B $(OBJCOPYARCH) --rename-section .data=.rodata,alloc,load,readonly,data,contents $< $@
+	xxd -i $< | $(CXX) -c -x c - -o $@
 
 # macros that expand to the object files in the given directories
 objects=$(sort $(notdir $(foreach type,c cc,$(call objects_$(type),$1))))

--- End Message ---
--- Begin Message ---
Source: imms
Source-Version: 3.1.0~svn301-4

We believe that the bug you reported is fixed in the latest version of
imms, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Beckmann <[email protected]> (supplier of updated imms package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 23 Apr 2017 04:07:44 +0200
Source: imms
Binary: imms-common imms-audacious
Architecture: source
Version: 3.1.0~svn301-4
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <[email protected]>
Changed-By: Andreas Beckmann <[email protected]>
Description:
 imms-audacious - Unobtrusive, automatic, and learning audacious playlist 
manager
 imms-common - Unobtrusive, automatic, and learning playlist manager
Closes: 831101 831896
Changes:
 imms (3.1.0~svn301-4) unstable; urgency=medium
 .
   * QA upload.
   * Set Maintainer to Debian QA Group.  (See: #809233)
   * use-xxd-for-svm_similarity.patch: New, fix FTBFS on mips64el, thanks to
     Dejan Latinovic.  (Closes: #831896)
   * gcc6.patch: New, fix FTBFS with GCC 6 by undefining min/max macros after
     including torch headers.  (Closes: #831101)
Checksums-Sha1:
 e85a06f1d73463aa83d9596f26f3d3f40d6e8fec 2043 imms_3.1.0~svn301-4.dsc
 8c996e8fd32a0bcbcd577a8c3588d4663be0039c 17828 
imms_3.1.0~svn301-4.debian.tar.xz
 478c2d5bb8bd968c0c19d566aa69f5f05e750944 12505 
imms_3.1.0~svn301-4_source.buildinfo
Checksums-Sha256:
 66d38ff0ba7b9284b754728da083c5f0bd3b8b12c896218957e4f02ca2e4e887 2043 
imms_3.1.0~svn301-4.dsc
 762a8273d9785de3908885a65d5375967261bbd4cc016f6965e5169fbc3fff00 17828 
imms_3.1.0~svn301-4.debian.tar.xz
 fecad210d37b44b076ae7370a45b70a63a20b075a24172679784e039a0a98b21 12505 
imms_3.1.0~svn301-4_source.buildinfo
Files:
 7ddac9e0264102e4244fa0d87babdcc0 2043 utils optional imms_3.1.0~svn301-4.dsc
 7bed6cdba6d11a6f75ca9972eaa30c7b 17828 utils optional 
imms_3.1.0~svn301-4.debian.tar.xz
 4b5b715e6775cbe8f3a28e80fff7e6be 12505 utils optional 
imms_3.1.0~svn301-4_source.buildinfo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJY/A4OAAoJEF+zP5NZ6e0IDhIP/jtYxw/wtgI6hXyV5PJvBLvV
keA2p51ghXeyYKd7vnUIoukbr+MUXSqMlWHaQwv7RrU0I7+2+K14+eLl9QbzW/bo
MYidII+OZt/0ErVLCnOo0xok2LxnSdb2HaPtJOUl5yzWyD3uG91s7UDcrn7bTsFk
TcWyORdaKG7y/i9uzDxUVVcXeeTDGwInWPS+ffX6NHbTgEJN7wT6QcxH+MB7en8n
dvBLHTkm0K1iHtxf1PeC0m3nTkLgxq/Pb/8dSL7LILiZ6BOhutBFkgX5cbuhSgLW
VAWDNKjBLqRvAzsQy0xypfsxfNgR4xiZ1On7luy7dH9b96jXgu3RobM/L7Km8M8V
36qIi18lXCyQNbXUq7lRaK3ni8EboZXYm845gttx4MFgT8o/qLX6ngv4wiz3WGAF
qdzGn1Wr3S/ZUH8XkBEyn9e48eXwUNJ2M+mW2CoOnOrVO9CoJgNG/vcoDHbMAuql
WAYagRrm7CkR1NeoBgOF/W9yw2UsG7X+aY9I2PCKTJMTTyvusshWk3nXtnnyNxJC
ZxR9Ly6B4mMsxvN/mqir2BVhC4YulWcQ9KcRvsixkzpXFRv/NCfo7ICjRNlmILrv
GqiZUsh/xrApOnOwc7bNc/ZzrxNDnaK9tzDs4bdeySdrV2UmBW5LQLrpkmL6R16e
qiY+l0cCbrCT8gIFxXyS
=WT83
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to