[Debichem-devel] Bug#1087499: inchi: fails to build
Sudip Mukherjee
sudipm.mukherjee at gmail.com
Thu Nov 14 11:53:35 GMT 2024
Source: inchi
Version: 1.07.1+dfsg-4
Severity: wishlist
X-Debbugs-Cc: sudipm.mukherjee at gmail.com
Dear Maintainer,
The build of 'inchi' failed in Ubuntu with the error:
# Building inchi_main builds shared library too
dh_auto_build -- -C INCHI-1-SRC/INCHI_API/demos/inchi_main/gcc SHARED_LINK_PARM=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro
make -j4 "INSTALL=install --strip-program=true" -C INCHI-1-SRC/INCHI_API/demos/inchi_main/gcc SHARED_LINK_PARM=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro
make[2]: Entering directory '/<<PKGBUILDDIR>>/INCHI-1-SRC/INCHI_API/demos/inchi_main/gcc'
make[2]: lto=auto: No such file or directory
make[2]: fat-lto-objects: No such file or directory
make[2]: *** No rule to make target 'fat-lto-objects'. Stop.
make[2]: Leaving directory '/<<PKGBUILDDIR>>/INCHI-1-SRC/INCHI_API/demos/inchi_main/gcc'
dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" -C INCHI-1-SRC/INCHI_API/demos/inchi_main/gcc SHARED_LINK_PARM=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro returned exit code 2
This diff was added to fix the FTBFS:
diff -Nru inchi-1.07.1+dfsg/debian/rules inchi-1.07.1+dfsg/debian/rules
--- inchi-1.07.1+dfsg/debian/rules 2024-09-24 06:59:00.000000000 +0000
+++ inchi-1.07.1+dfsg/debian/rules 2024-11-13 19:36:46.000000000 +0000
@@ -15,8 +15,8 @@
mkdir --parents INCHI-1-SRC/INCHI_API/bin/Linux
mkdir --parents INCHI-1-SRC/INCHI_EXE/bin/Linux
# Building inchi_main builds shared library too
- dh_auto_build -- -C INCHI-1-SRC/INCHI_API/demos/inchi_main/gcc SHARED_LINK_PARM=$(SHARED_LINK_PARM)
- dh_auto_build -- -C INCHI-1-SRC/INCHI_EXE/inchi-1/gcc SHARED_LINK_PARM=$(SHARED_LINK_PARM)
+ dh_auto_build -- -C INCHI-1-SRC/INCHI_API/demos/inchi_main/gcc SHARED_LINK_PARM="$(SHARED_LINK_PARM)"
+ dh_auto_build -- -C INCHI-1-SRC/INCHI_EXE/inchi-1/gcc SHARED_LINK_PARM="$(SHARED_LINK_PARM)"
execute_after_dh_install:
find INCHI-1-SRC/INCHI_API/bin/Linux -name 'libinchi.so.*' \
--
Regards
Sudip
More information about the Debichem-devel
mailing list