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

Bug#957380: istgt: ftbfs with GCC-10



Package: src:istgt
Version: 0.4~20111008-3
Severity: normal
Tags: sid bullseye
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-10

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/istgt_0.4~20111008-3_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-10/porting_to.html

[...]
 4632 |    int mdlen, mt, dsp, bdlen;
      |        ^~~~~
istgt_lu_tape.c:4679:19: warning: variable ‘dsp’ set but not used [-Wunused-but-set-variable]
 4679 |    int mdlen, mt, dsp, bdlen;
      |                   ^~~
istgt_lu_tape.c:4679:15: warning: variable ‘mt’ set but not used [-Wunused-but-set-variable]
 4679 |    int mdlen, mt, dsp, bdlen;
      |               ^~
istgt_lu_tape.c:4679:8: warning: variable ‘mdlen’ set but not used [-Wunused-but-set-variable]
 4679 |    int mdlen, mt, dsp, bdlen;
      |        ^~~~~
istgt_lu_tape.c:5138:16: warning: variable ‘partition’ set but not used [-Wunused-but-set-variable]
 5138 |    int bt, cp, partition;
      |                ^~~~~~~~~
istgt_lu_tape.c:5138:8: warning: variable ‘bt’ set but not used [-Wunused-but-set-variable]
 5138 |    int bt, cp, partition;
      |        ^~
istgt_lu_tape.c:5304:13: warning: variable ‘rest’ set but not used [-Wunused-but-set-variable]
 5304 |    uint64_t rest;
      |             ^~~~
gcc -DHAVE_CONFIG_H -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I. -c -o istgt_lu_pass.o istgt_lu_pass.c
gcc -DHAVE_CONFIG_H -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I. -c -o istgt_lu_ctl.o istgt_lu_ctl.c
istgt_lu_ctl.c: In function ‘istgt_uctl_cmd_refresh’:
istgt_lu_ctl.c:974:8: warning: variable ‘arg’ set but not used [-Wunused-but-set-variable]
  974 |  char *arg;
      |        ^~~
istgt_lu_ctl.c: In function ‘istgt_uctl_cmd_reset’:
istgt_lu_ctl.c:1079:19: warning: variable ‘llp’ set but not used [-Wunused-but-set-variable]
 1079 |  ISTGT_LU_LUN_Ptr llp;
      |                   ^~~
gcc -DHAVE_CONFIG_H -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I. -c -o istgt_log.o istgt_log.c
gcc -DHAVE_CONFIG_H -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I. -c -o istgt_conf.o istgt_conf.c
gcc -DHAVE_CONFIG_H -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I. -c -o istgt_sock.o istgt_sock.c
gcc -DHAVE_CONFIG_H -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I. -c -o istgt_misc.o istgt_misc.c
istgt_misc.c: In function ‘istgt_yield’:
istgt_misc.c:597:2: warning: implicit declaration of function ‘pthread_yield’; did you mean ‘pthread_kill’? [-Wimplicit-function-declaration]
  597 |  pthread_yield();
      |  ^~~~~~~~~~~~~
      |  pthread_kill
istgt_misc.c:597:2: warning: nested extern declaration of ‘pthread_yield’ [-Wnested-externs]
gcc -DHAVE_CONFIG_H -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I. -c -o istgt_queue.o istgt_queue.c
gcc -DHAVE_CONFIG_H -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I. -c -o istgt_crc32c.o istgt_crc32c.c
gcc -DHAVE_CONFIG_H -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I. -c -o istgt_md5.o istgt_md5.c
gcc -Wl,-z,relro -o istgt istgt.o istgt_iscsi.o istgt_iscsi_param.o istgt_lu.o istgt_lu_disk.o istgt_lu_dvd.o istgt_lu_tape.o istgt_lu_pass.o istgt_lu_ctl.o istgt_log.o istgt_conf.o istgt_sock.o istgt_misc.o istgt_queue.o istgt_crc32c.o istgt_md5.o -lcrypto -lpthread 
/usr/bin/ld: istgt_iscsi.o:./src/istgt_lu.h:282: multiple definition of `ISTGT_LU_TASK_TYPE'; istgt.o:./src/istgt_lu.h:282: first defined here
/usr/bin/ld: istgt_iscsi.o:./src/istgt_lu.h:277: multiple definition of `ISTGT_LU_TASK_RESULT'; istgt.o:./src/istgt_lu.h:277: first defined here
/usr/bin/ld: istgt_iscsi_param.o:./src/istgt_lu.h:282: multiple definition of `ISTGT_LU_TASK_TYPE'; istgt.o:./src/istgt_lu.h:282: first defined here
/usr/bin/ld: istgt_iscsi_param.o:./src/istgt_lu.h:277: multiple definition of `ISTGT_LU_TASK_RESULT'; istgt.o:./src/istgt_lu.h:277: first defined here
/usr/bin/ld: istgt_lu.o:./src/istgt_lu.h:282: multiple definition of `ISTGT_LU_TASK_TYPE'; istgt.o:./src/istgt_lu.h:282: first defined here
/usr/bin/ld: istgt_lu.o:./src/istgt_lu.h:277: multiple definition of `ISTGT_LU_TASK_RESULT'; istgt.o:./src/istgt_lu.h:277: first defined here
/usr/bin/ld: istgt_lu_disk.o:./src/istgt_lu.h:282: multiple definition of `ISTGT_LU_TASK_TYPE'; istgt.o:./src/istgt_lu.h:282: first defined here
/usr/bin/ld: istgt_lu_disk.o:./src/istgt_lu.h:277: multiple definition of `ISTGT_LU_TASK_RESULT'; istgt.o:./src/istgt_lu.h:277: first defined here
/usr/bin/ld: istgt_lu_dvd.o:./src/istgt_lu.h:282: multiple definition of `ISTGT_LU_TASK_TYPE'; istgt.o:./src/istgt_lu.h:282: first defined here
/usr/bin/ld: istgt_lu_dvd.o:./src/istgt_lu.h:277: multiple definition of `ISTGT_LU_TASK_RESULT'; istgt.o:./src/istgt_lu.h:277: first defined here
/usr/bin/ld: istgt_lu_tape.o:./src/istgt_lu.h:282: multiple definition of `ISTGT_LU_TASK_TYPE'; istgt.o:./src/istgt_lu.h:282: first defined here
/usr/bin/ld: istgt_lu_tape.o:./src/istgt_lu.h:277: multiple definition of `ISTGT_LU_TASK_RESULT'; istgt.o:./src/istgt_lu.h:277: first defined here
/usr/bin/ld: istgt_lu_pass.o:./src/istgt_lu.h:282: multiple definition of `ISTGT_LU_TASK_TYPE'; istgt.o:./src/istgt_lu.h:282: first defined here
/usr/bin/ld: istgt_lu_pass.o:./src/istgt_lu.h:277: multiple definition of `ISTGT_LU_TASK_RESULT'; istgt.o:./src/istgt_lu.h:277: first defined here
/usr/bin/ld: istgt_lu_ctl.o:./src/istgt_lu.h:282: multiple definition of `ISTGT_LU_TASK_TYPE'; istgt.o:./src/istgt_lu.h:282: first defined here
/usr/bin/ld: istgt_lu_ctl.o:./src/istgt_lu.h:277: multiple definition of `ISTGT_LU_TASK_RESULT'; istgt.o:./src/istgt_lu.h:277: first defined here
/usr/bin/ld: istgt_crc32c.o:./src/istgt_lu.h:282: multiple definition of `ISTGT_LU_TASK_TYPE'; istgt.o:./src/istgt_lu.h:282: first defined here
/usr/bin/ld: istgt_crc32c.o:./src/istgt_lu.h:277: multiple definition of `ISTGT_LU_TASK_RESULT'; istgt.o:./src/istgt_lu.h:277: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:80: istgt] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:38: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:8: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: