[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Request for help] mash



Hi,

I was trying to make mash cross-buildable, since this has build-dep on
sphinx, and also a doc package, it makes sense to move that to B-D-I
The patch for changes I did is at the end of this mai

The native build doesn't get affected which is a good sign. However, now
the cross compilation ends with:

g++ -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -std=c++14 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2  -o src/mash/mash.o src/mash/mash.cpp
g++ -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -std=c++14 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2  -o src/mash/Sketch.o src/mash/Sketch.cpp
g++ -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -std=c++14 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2  -o src/mash/sketchParameterSetup.o src/mash/sketchParameterSetup.cpp
g++ -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -std=c++14 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2  -o src/mash/capnp/MinHash.capnp.o src/mash/capnp/MinHash.capnp.c++
g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -std=c++14 -Isrc -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2  -o mash src/mash/Command.o src/mash/CommandBounds.o src/mash/CommandContain.o src/mash/CommandDistance.o src/mash/CommandScreen.o src/mash/CommandTriangle.o src/mash/CommandFind.o src/mash/CommandInfo.o src/mash/CommandPaste.o src/mash/CommandSketch.o src/mash/CommandList.o src/mash/hash.o src/mash/HashList.o src/mash/HashPriorityQueue.o src/mash/HashSet.o src/mash/MinHashHeap.o src/mash/mash.o src/mash/Sketch.o src/mash/sketchParameterSetup.o src/mash/capnp/MinHash.capnp.o -lkj -lcapnp -L/usr/lib -lgsl -lgslcblas -lstdc++ -lz -lm -lpthread -lmurmurhash -Wl,-z,relro -Wl,-z,now
ar -cr libmash.a src/mash/Command.o src/mash/CommandBounds.o src/mash/CommandContain.o src/mash/CommandDistance.o src/mash/CommandScreen.o src/mash/CommandTriangle.o src/mash/CommandFind.o src/mash/CommandInfo.o src/mash/CommandPaste.o src/mash/CommandSketch.o src/mash/CommandList.o src/mash/hash.o src/mash/HashList.o src/mash/HashPriorityQueue.o src/mash/HashSet.o src/mash/MinHashHeap.o src/mash/mash.o src/mash/Sketch.o src/mash/sketchParameterSetup.o src/mash/capnp/MinHash.capnp.o
/usr/bin/ld: cannot find -lkj
/usr/bin/ld: cannot find -lcapnp
/usr/bin/ld: cannot find -lgsl
/usr/bin/ld: cannot find -lgslcblas
/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lmurmurhash
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:36: mash] Error 1
make[1]: *** Waiting for unfinished jobs....
ranlib libmash.a
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j5 returned exit code 2
make: *** [debian/rules:16: build-arch] Error 25
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
--------------------------------------------------------------------------------


I'm not sure what triggers this, since I do not see anything hardcoded -
neither the compiler, nor anything in the rules file. Any help is really
appreciated.

diff --git a/debian/control b/debian/control
index f5c5142..cc7b806 100644
--- a/debian/control
+++ b/debian/control
@@ -8,10 +8,10 @@ Build-Depends: debhelper (>= 12~),
                libcapnp-dev (>= 0.6.1),
                libgsl-dev,
                zlib1g-dev,
-               python3-sphinx,
-               libjs-mathjax,
                asciidoctor,
                libmurmurhash-dev
+Build-Depends-Indep: python3-sphinx,
+                     libjs-mathjax
 Standards-Version: 4.4.0
 Vcs-Browser: https://salsa.debian.org/med-team/mash
 Vcs-Git: https://salsa.debian.org/med-team/mash.git
diff --git a/debian/rules b/debian/rules
index 578b4ca..2d6f586 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,14 +4,16 @@
 export LC_ALL=C.UTF-8
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all

-include /usr/share/dpkg/architecture.mk
+#include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/buildtools.mk
+
 ifeq ($(DEB_HOST_ARCH_BITS),32)
    DEB_CPPFLAGS_MAINT_APPEND = -DARCH_32
 endif
 export DEB_CPPFLAGS_MAINT_APPEND

 %:
-	dh $@ --with sphinxdoc
+	dh $@

 override_dh_auto_clean:
 	dh_auto_clean
@@ -20,8 +22,8 @@ override_dh_auto_clean:
 override_dh_auto_configure:
 	dh_auto_configure --  --with-capnp=/usr --with-gsl=/usr --prefix=$(CURDIR)/debian/tmp/usr

-override_dh_auto_build:
-	dh_auto_build
+override_dh_auto_build-indep:
+	dh_auto_build --indep
 	sphinx-build doc/sphinx $(CURDIR)/debian/sphinxdoc

 override_dh_installman:


Nilesh


Reply to: