Source: simgrid Version: 3.25+dfsg-1 Severity: normal Tags: patch Justification: fails to build from source (but built successfully in the past) User: debian-ri...@lists.debian.org Usertags: riscv64
Dear maintainer, ceph fails to build on riscv64 with the following error: | dh_install | dh_install: warning: Cannot find (any matches for) "usr/lib/libsimgrid-java.so" (tried in ., debian/tmp) | | dh_install: warning: libsimgrid-dev missing files: usr/lib/libsimgrid-java.so | dh_install: error: missing files, aborting | make[1]: *** [debian/rules:89: override_dh_install] Error 25 | make[1]: Leaving directory '/<<BUILDDIR>>/simgrid-3.25+dfsg' | make: *** [debian/rules:39: binary-arch] Error 2 | dpkg-buildpackage: error: fakeroot debian/rules binary-arch subprocess returned exit status 2 The full build log is available there: https://buildd.debian.org/status/fetch.php?pkg=simgrid&arch=riscv64&ver=3.25%2Bdfsg-1&stamp=1583603229&raw=0 The problem is that java support is not enabled on riscv64. After enabling it (as well as ns3 which is also available) I have verified that simgrid builds fine on riscv64. I have attached the patch I have used. Would it be possible to include it in the next upload? Thanks, Aurelien -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.4.0-3-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
diff -Nru simgrid-3.25+dfsg/debian/control simgrid-3.25+dfsg/debian/control --- simgrid-3.25+dfsg/debian/control 2020-02-21 20:31:20.000000000 +0100 +++ simgrid-3.25+dfsg/debian/control 2020-03-08 12:05:31.000000000 +0100 @@ -7,14 +7,14 @@ dh-python, cmake, chrpath, - default-jdk (>= 2:1.7~) [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x], + default-jdk (>= 2:1.7~) [amd64 arm64 armel armhf i386 mips64el mipsel ppc64el riscv64 s390x], # valgrind is missing on armel valgrind [amd64 arm64 armhf i386 mips64el mipsel ppc64el s390x], gfortran, liblua5.3-dev, lua5.3, # Disabled for now: libboost-context-dev. Seems broken on amd64 libboost-dev, - libns3-dev [amd64 arm64 armel armhf i386 mips64el ppc64el s390x], + libns3-dev [amd64 arm64 armel armhf i386 mips64el ppc64el riscv64 s390x], # Needed to build the doc # doxygen, # python3-breathe, @@ -69,7 +69,7 @@ Package: libsimgrid-java Section: java -Architecture: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x +Architecture: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el riscv64 s390x Depends: ${shlibs:Depends}, ${misc:Depends}, libsimgrid3.25 (>= ${source:Version}) #Recommends: simgrid-doc (>= ${source:Version}) Breaks: simgrid (<< 3.11), simgrid-java diff -Nru simgrid-3.25+dfsg/debian/rules simgrid-3.25+dfsg/debian/rules --- simgrid-3.25+dfsg/debian/rules 2020-02-21 20:31:20.000000000 +0100 +++ simgrid-3.25+dfsg/debian/rules 2020-03-08 12:05:53.000000000 +0100 @@ -21,7 +21,7 @@ CFLAGS += -O3 endif -ifneq (,$(findstring $(DEB_HOST_ARCH_CPU),amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x)) +ifneq (,$(findstring $(DEB_HOST_ARCH_CPU),amd64 arm64 armel armhf i386 mips64el mipsel ppc64el riscv64 s390x)) CMAKE_FLAGS += -Denable_java=ON else CMAKE_FLAGS += -Denable_java=OFF