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

Bug#957960: wraplinux: ftbfs with GCC-10



Package: src:wraplinux
Version: 1.7-9
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/wraplinux_1.7-9_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 getopt_long... yes
checking for a sed that does not truncate output... /bin/sed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
configure: creating ./config.status
config.status: creating MCONFIG
config.status: creating config.h
configure: WARNING: unrecognized options: --disable-silent-rules, --disable-maintainer-mode, --disable-dependency-tracking
   dh_auto_build
	make -j4
make[1]: Entering directory '/<<PKGBUILDDIR>>'
echo "#define WRAPLINUX_VERSION \"1.7\"" > version.h
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -Wcast-align -pipe -c -o linux.o linux.c
gcc -m32 -W -Wall -I. -g -Os -march=i386 -mregparm=3 -fPIE -ffreestanding -c -o reloc/reloc_linux.o reloc/reloc_linux.c
gcc -m32 -W -Wall -I. -g -Os -march=i386 -mregparm=3 -fPIE -ffreestanding -c -D__ASSEMBLY__ -o reloc/a20.o reloc/a20.S
gcc -m32 -W -Wall -I. -g -Os -march=i386 -mregparm=3 -fPIE -ffreestanding -c -D__ASSEMBLY__ -o reloc/memmove.o reloc/memmove.S
gcc -m32 -W -Wall -I. -g -Os -march=i386 -mregparm=3 -fPIE -ffreestanding -c -D__ASSEMBLY__ -o reloc/reloc_init.o reloc/reloc_init.S
gcc -m32 -W -Wall -I. -g -Os -march=i386 -mregparm=3 -fPIE -ffreestanding -c -D__ASSEMBLY__ -o highmove/highmove.o highmove/highmove.S
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -Wcast-align -pipe -c -o elf.o elf.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -Wcast-align -pipe -c -o nbi.o nbi.c
linux.c: In function ‘wrap_kernel’:
linux.c:161:13: warning: taking address of packed member of ‘struct setup_header’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  161 |  if (rdle32(&hdr->header) != LINUX_MAGIC)
      |             ^~~~~~~~~~~~
linux.c:164:22: warning: taking address of packed member of ‘struct setup_header’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  164 |   setup_ver = rdle16(&hdr->version);
      |                      ^~~~~~~~~~~~~
linux.c:180:23: warning: taking address of packed member of ‘struct setup_header’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  180 |   initrd_max = rdle32(&hdr->initrd_addr_max);
      |                       ^~~~~~~~~~~~~~~~~~~~~
linux.c:207:15: warning: taking address of packed member of ‘struct setup_header’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  207 |   wrle16(vga, &hdr->vid_mode);
      |               ^~~~~~~~~~~~~~
linux.c:284:24: warning: taking address of packed member of ‘struct setup_header’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  284 |   wrle32(scmd.address, &hdr->cmd_line_ptr);
      |                        ^~~~~~~~~~~~~~~~~~
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -Wcast-align -pipe -c -o segment.o segment.c
linux.c:292:47: warning: taking address of packed member of ‘struct setup_header’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  292 |   wrle16(scmd.address - ssup.address - 0x200, &hdr->heap_end_ptr);
      |                                               ^~~~~~~~~~~~~~~~~~
linux.c:378:22: warning: taking address of packed member of ‘struct setup_header’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  378 |   wrle32(initrd_len, &hdr->ramdisk_size);
      |                      ^~~~~~~~~~~~~~~~~~
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -Wcast-align -pipe -c -o mapfile.o mapfile.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -Wcast-align -pipe -c -o cwrite.o cwrite.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -Wcast-align -pipe -c -o xmalloc.o xmalloc.c
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -Wcast-align -pipe -c -o main.o main.c
ld -m elf_i386  -T reloc/reloc.ld \
	-o reloc/reloc.elf reloc/reloc_linux.o reloc/a20.o reloc/memmove.o reloc/reloc_init.o
ld -m elf_i386  -T reloc/reloc.ld \
	-o highmove/highmove.elf  highmove/highmove.o
objcopy -O binary reloc/reloc.elf reloc/reloc.bin
objcopy -O binary highmove/highmove.elf highmove/highmove.bin
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -Wcast-align -pipe -c -o reloc.o reloc.S
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -Wcast-align -pipe -c -o highmove.o highmove.S
gcc -Wl,-z,relro -o wraplinux main.o linux.o reloc.o highmove.o elf.o nbi.o segment.o mapfile.o cwrite.o xmalloc.o
/usr/bin/ld: linux.o:./wraplinux.h:34: multiple definition of `opt'; main.o:./wraplinux.h:34: first defined here
/usr/bin/ld: elf.o:./wraplinux.h:34: multiple definition of `opt'; main.o:./wraplinux.h:34: first defined here
/usr/bin/ld: nbi.o:./wraplinux.h:34: multiple definition of `opt'; main.o:./wraplinux.h:34: first defined here
/usr/bin/ld: segment.o:./wraplinux.h:34: multiple definition of `opt'; main.o:./wraplinux.h:34: first defined here
/usr/bin/ld: mapfile.o:./wraplinux.h:34: multiple definition of `opt'; main.o:./wraplinux.h:34: first defined here
/usr/bin/ld: cwrite.o:./wraplinux.h:34: multiple definition of `opt'; main.o:./wraplinux.h:34: first defined here
/usr/bin/ld: xmalloc.o:./wraplinux.h:34: multiple definition of `opt'; main.o:./wraplinux.h:34: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:59: wraplinux] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:4: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: