bugGNU tar - Bugs: bug #58853, Gnu tar master (from today) does...

 
 

bug #58853: Gnu tar master (from today) does not build with gcc 8.3.0

Submitter:  Dan Stromberg <strombrg>
Submitted:  Wed 29 Jul 2020 11:42:54 PM UTC
Votes: 20
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Wed 29 Jul 2020 11:42:54 PM UTC, original submission:  

I am attempting to build gnu tar master using gcc 8.3.0, and I'm getting the following errors:

  CC       rtapelib.o
In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:33,
                 from /usr/include/netinet/in.h:23,
                 from /usr/include/netdb.h:27,
                 from rtapelib.c:59:
/usr/include/x86_64-linux-gnu/bits/socket.h: In function '__cmsg_nxthdr':
/usr/include/x86_64-linux-gnu/bits/socket.h:315:12: error: cast increases required alignment of target type [-Werror=cast-align]
   __cmsg = (struct cmsghdr ) ((unsigned char ) __cmsg
            ^
rtapelib.c: In function 'rmt_ioctl__':
rtapelib.c:675:18: error: cast increases required alignment of target type [-Werror=cast-align]
  uintmax_t u = (((struct mtop *) argument)->mt_count < 0
                  ^
rtapelib.c:676:27: error: cast increases required alignment of target type [-Werror=cast-align]
          ? - (uintmax_t) ((struct mtop *) argument)->mt_count
                           ^
rtapelib.c:677:25: error: cast increases required alignment of target type [-Werror=cast-align]
          : (uintmax_t) ((struct mtop *) argument)->mt_count);
                         ^
rtapelib.c:684:7: error: cast increases required alignment of target type [-Werror=cast-align]
  if (((struct mtop *) argument)->mt_count < 0)
       ^
rtapelib.c:690:5: error: cast increases required alignment of target type [-Werror=cast-align]
    ((struct mtop *) argument)->mt_op, p);
     ^
rtapelib.c:735:7: error: cast increases required alignment of target type [-Werror=cast-align]
  if (((struct mtget *) argument)->MTIO_CHECK_FIELD < 256)
       ^
cc1: all warnings being treated as errors
make[3]: * [Makefile:1368: rtapelib.o] Error 1
make[3]: Leaving directory '/home/dstromberg/src/gnu-tar/tar/lib'
make[2]: * [Makefile:1305: all] Error 2
make[2]: Leaving directory '/home/dstromberg/src/gnu-tar/tar/lib'
make[1]: * [Makefile:1409: all-recursive] Error 1
make[1]: Leaving directory '/home/dstromberg/src/gnu-tar/tar'
make: * [Makefile:1349: all] Error 2
above cmd output done    2020 Wed Jul 29 04:39:26 PM PDT
dstromberg@zareason-strata7440:~/src/gnu-tar/tar x86_64-pc-linux-gnu 9190

$ gcc -v
below cmd output started 2020 Wed Jul 29 04:39:28 PM PDT
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share ... gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6)
above cmd output done    2020 Wed Jul 29 04:39:28 PM PDT
dstromberg@zareason-strata7440:~/src/gnu-tar/tar x86_64-pc-linux-gnu 9190

$ cat /etc/debian_version
below cmd output started 2020 Wed Jul 29 04:39:37 PM PDT
10.4

I'm not sure how to proceed.  Any suggestions?

Thanks!

Dan Stromberg <strombrg>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by alexeicolin (Voted in favor of this item)
  • -email is unavailable- added by strombrg (Submitted the item)
  • -email is unavailable- added by strombrg
  •  

    Votes

    There are 20 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-12-23 alexeicolin Carbon-Copy- Added alexeicolin
    2020-07-29 strombrg Carbon-Copy- Added strombrg

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code