Bug#997262: saga: FTBFS: ld: cannot find -lopencv_core

Lucas Nussbaum lucas at debian.org
Sat Oct 23 20:24:40 BST 2021


Source: saga
Version: 7.3.0+dfsg-5
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> cc1: warning: command-line option '-fno-rtti' is valid for C++/D/ObjC++ but not for C
> configure:9848: $? = 0
> configure:9861: result: no
> configure:10225: checking for gcc option to produce PIC
> configure:10233: result: -fPIC -DPIC
> configure:10241: checking if gcc PIC flag -fPIC -DPIC works
> configure:10260: gcc -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPIC -DPIC conftest.c >&5
> configure:10264: $? = 0
> configure:10277: result: yes
> configure:10306: checking if gcc static flag -static works
> configure:10335: result: yes
> configure:10350: checking if gcc supports -c -o file.o
> configure:10372: gcc -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o out/conftest2.o conftest.c >&5
> configure:10376: $? = 0
> configure:10398: result: yes
> configure:10406: checking if gcc supports -c -o file.o
> configure:10454: result: yes
> configure:10487: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
> configure:11757: result: yes
> configure:11794: checking whether -lc should be explicitly linked in
> configure:11803: gcc -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 conftest.c >&5
> configure:11806: $? = 0
> configure:11821: gcc -shared  -fPIC -DPIC conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /bin/grep  -lc  \>/dev/null 2\>\&1
> configure:11824: $? = 0
> configure:11838: result: no
> configure:11998: checking dynamic linker characteristics
> configure:12580: gcc -o conftest -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,-rpath -Wl,/foo conftest.c  >&5
> configure:12580: $? = 0
> configure:12831: result: GNU/Linux ld.so
> configure:12953: checking how to hardcode library paths into programs
> configure:12978: result: immediate
> configure:13530: checking whether stripping libraries is possible
> configure:13535: result: yes
> configure:13570: checking if libtool supports shared libraries
> configure:13572: result: yes
> configure:13575: checking whether to build shared libraries
> configure:13600: result: yes
> configure:13603: checking whether to build static libraries
> configure:13607: result: yes
> configure:13630: checking how to run the C++ preprocessor
> configure:13652: g++ -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.cpp
> configure:13652: $? = 0
> configure:13667: g++ -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.cpp
> conftest.cpp:23:10: fatal error: ac_nonexistent.h: No such file or directory
>    23 | #include <ac_nonexistent.h>
>       |          ^~~~~~~~~~~~~~~~~~
> compilation terminated.
> configure:13667: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "saga"
> | #define PACKAGE_TARNAME "saga"
> | #define PACKAGE_VERSION "7.3.0"
> | #define PACKAGE_STRING "saga 7.3.0"
> | #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
> | #define PACKAGE_URL ""
> | #define PACKAGE "saga"
> | #define VERSION "7.3.0"
> | #define HAVE_STDIO_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_UNISTD_H 1
> | #define STDC_HEADERS 1
> | #define HAVE_DLFCN_H 1
> | #define LT_OBJDIR ".libs/"
> | /* end confdefs.h.  */
> | #include <ac_nonexistent.h>
> configure:13694: result: g++ -E
> configure:13708: g++ -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.cpp
> configure:13708: $? = 0
> configure:13723: g++ -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.cpp
> conftest.cpp:23:10: fatal error: ac_nonexistent.h: No such file or directory
>    23 | #include <ac_nonexistent.h>
>       |          ^~~~~~~~~~~~~~~~~~
> compilation terminated.
> configure:13723: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "saga"
> | #define PACKAGE_TARNAME "saga"
> | #define PACKAGE_VERSION "7.3.0"
> | #define PACKAGE_STRING "saga 7.3.0"
> | #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
> | #define PACKAGE_URL ""
> | #define PACKAGE "saga"
> | #define VERSION "7.3.0"
> | #define HAVE_STDIO_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_UNISTD_H 1
> | #define STDC_HEADERS 1
> | #define HAVE_DLFCN_H 1
> | #define LT_OBJDIR ".libs/"
> | /* end confdefs.h.  */
> | #include <ac_nonexistent.h>
> configure:13888: checking for ld used by g++
> configure:13956: result: /usr/bin/ld -m elf_x86_64
> configure:13963: checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld
> configure:13979: result: yes
> configure:14034: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
> configure:15111: result: yes
> configure:15147: g++ -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 conftest.cpp >&5
> configure:15150: $? = 0
> configure:15631: checking for g++ option to produce PIC
> configure:15639: result: -fPIC -DPIC
> configure:15647: checking if g++ PIC flag -fPIC -DPIC works
> configure:15666: g++ -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPIC -DPIC conftest.cpp >&5
> configure:15670: $? = 0
> configure:15683: result: yes
> configure:15706: checking if g++ static flag -static works
> configure:15735: result: yes
> configure:15747: checking if g++ supports -c -o file.o
> configure:15769: g++ -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o out/conftest2.o conftest.cpp >&5
> configure:15773: $? = 0
> configure:15795: result: yes
> configure:15800: checking if g++ supports -c -o file.o
> configure:15848: result: yes
> configure:15878: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
> configure:15921: result: yes
> configure:16063: checking dynamic linker characteristics
> configure:16823: result: GNU/Linux ld.so
> configure:16888: checking how to hardcode library paths into programs
> configure:16913: result: immediate
> configure:16976: checking for cvGetRows in -lopencv_core
> configure:16999: gcc -o conftest -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now conftest.c -lopencv_core   >&5
> /usr/bin/ld: cannot find -lopencv_core
> collect2: error: ld returned 1 exit status


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/saga_7.3.0+dfsg-5_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-grass-devel mailing list