[Pkg-electronics-devel] Bug#957174: emu8051: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 11:59:31 BST 2020


Package: src:emu8051
Version: 2.0.1-1
Severity: normal
Tags: sid bullseye
User: debian-gcc at 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/emu8051_2.0.1-1_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

[...]
checking for as504... no
checking for asem... no
configure: WARNING: Please install as504 (http://www.vanwal.nl/as504/) or ASEM-51 (http://plit.de/asem-51) to run test suite.
checking for zlib... yes
checking for crc32 in -lz... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/common/Makefile
config.status: creating src/cli/Makefile
config.status: creating src/gtk/Makefile
config.status: creating data/Makefile
config.status: creating doc/Makefile
config.status: creating tests/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --disable-maintainer-mode
   dh_auto_build
	make -j4
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make  all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in src/common
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/common'
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o instructions_8051.o instructions_8051.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o opcodes.o opcodes.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o options.o options.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o log.o log.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o hexfile.o hexfile.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o cpu8051.o cpu8051.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o memory.o memory.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o psw.o psw.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o sfr.o sfr.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o operations.o operations.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o timers.o timers.c
rm -f libemu8051.a
ar cru libemu8051.a instructions_8051.o opcodes.o options.o log.o hexfile.o cpu8051.o memory.o psw.o sfr.o operations.o timers.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libemu8051.a
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/common'
Making all in src/cli
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/cli'
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -I../../src/common -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o parser.o parser.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -I../../src/common -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o scanner.o scanner.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -I../../src/common -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o main.o main.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -I../../src/common -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o menu.o menu.c
gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Wextra -Wformat -Wformat-security -I../.. -I../../src/common -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o keyboard.o keyboard.c
keyboard.c: In function ‘getch’:
keyboard.c:50:2: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   50 |  read(0, &ch, 1);
      |  ^~~~~~~~~~~~~~~
gcc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o emu8051-cli parser.o scanner.o main.o menu.o keyboard.o -lreadline ../../src/common/libemu8051.a 
/usr/bin/ld: menu.o:./src/cli/../../src/common/options.h:23: multiple definition of `options_t'; main.o:./src/cli/../../src/common/options.h:23: first defined here
/usr/bin/ld: ../../src/common/libemu8051.a(options.o):./src/common/options.h:23: multiple definition of `options_t'; main.o:./src/cli/../../src/common/options.h:23: first defined here
/usr/bin/ld: ../../src/common/libemu8051.a(log.o):./src/common/options.h:23: multiple definition of `options_t'; main.o:./src/cli/../../src/common/options.h:23: first defined here
/usr/bin/ld: ../../src/common/libemu8051.a(cpu8051.o):./src/common/options.h:23: multiple definition of `options_t'; main.o:./src/cli/../../src/common/options.h:23: first defined here
/usr/bin/ld: ../../src/common/libemu8051.a(memory.o):./src/common/options.h:23: multiple definition of `options_t'; main.o:./src/cli/../../src/common/options.h:23: first defined here
/usr/bin/ld: ../../src/common/libemu8051.a(sfr.o):./src/common/instructions_8051.h:1052: multiple definition of `opcode_table'; ../../src/common/libemu8051.a(cpu8051.o):./src/common/instructions_8051.h:1052: first defined here
/usr/bin/ld: ../../src/common/libemu8051.a(timers.o):./src/common/instructions_8051.h:1052: multiple definition of `opcode_table'; ../../src/common/libemu8051.a(cpu8051.o):./src/common/instructions_8051.h:1052: first defined here
/usr/bin/ld: ../../src/common/libemu8051.a(timers.o):./src/common/options.h:23: multiple definition of `options_t'; main.o:./src/cli/../../src/common/options.h:23: first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:423: emu8051-cli] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/cli'
make[2]: *** [Makefile:393: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:334: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-electronics-devel mailing list