Project

General

Profile

Bug #5949

TVHeadend is FTBFS on Ubuntu Groovy on s390x

Added by Michael Marley 6 days ago. Updated 6 days ago.

Status:
Accepted
Priority:
Normal
Category:
non-x86
Target version:
-
Start date:
2020-09-14
Due date:
% Done:

0%

Estimated time:
Found in version:
all
Affected Versions:

Description

TVHeadend fails to build on Ubuntu Groovy on the s390x architecture with the following error:

src/utils.c: In function ‘rmtree’:
src/utils.c:704:36: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
  704 |     snprintf(buf, sizeof(buf), "%s/%s", path, de.d_name);
      |                                    ^~         ~~~~~~~~~
In file included from /usr/include/stdio.h:866,
                 from /usr/include/openssl/bio.h:16,
                 from /usr/include/openssl/evp.h:16,
                 from src/utils.c:23:
/usr/include/s390x-linux-gnu/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 2 and 4352 bytes into a destination of size 4096
   70 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/utils.c:704:36: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
  704 |     snprintf(buf, sizeof(buf), "%s/%s", path, de.d_name);
      |                                    ^~         ~~~~~~~~~
In file included from /usr/include/stdio.h:866,
                 from /usr/include/openssl/bio.h:16,
                 from /usr/include/openssl/evp.h:16,
                 from src/utils.c:23:
/usr/include/s390x-linux-gnu/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 2 and 4352 bytes into a destination of size 4096
   70 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/utils.c:704:36: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
  704 |     snprintf(buf, sizeof(buf), "%s/%s", path, de.d_name);
      |                                    ^~         ~~~~~~~~~
In file included from /usr/include/stdio.h:866,
                 from /usr/include/openssl/bio.h:16,
                 from /usr/include/openssl/evp.h:16,
                 from src/utils.c:23:
/usr/include/s390x-linux-gnu/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 2 and 4352 bytes into a destination of size 4096
   70 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/utils.c:704:36: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
  704 |     snprintf(buf, sizeof(buf), "%s/%s", path, de.d_name);
      |                                    ^~         ~~~~~~~~~
In file included from /usr/include/stdio.h:866,
                 from /usr/include/openssl/bio.h:16,
                 from /usr/include/openssl/evp.h:16,
                 from src/utils.c:23:
/usr/include/s390x-linux-gnu/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 2 and 4352 bytes into a destination of size 4096
   70 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/utils.c:704:36: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
  704 |     snprintf(buf, sizeof(buf), "%s/%s", path, de.d_name);
      |                                    ^~         ~~~~~~~~~
In file included from /usr/include/stdio.h:866,
                 from /usr/include/openssl/bio.h:16,
                 from /usr/include/openssl/evp.h:16,
                 from src/utils.c:23:
/usr/include/s390x-linux-gnu/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 2 and 4352 bytes into a destination of size 4096
   70 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/utils.c:704:36: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
  704 |     snprintf(buf, sizeof(buf), "%s/%s", path, de.d_name);
      |                                    ^~         ~~~~~~~~~
In file included from /usr/include/stdio.h:866,
                 from /usr/include/openssl/bio.h:16,
                 from /usr/include/openssl/evp.h:16,
                 from src/utils.c:23:
/usr/include/s390x-linux-gnu/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 2 and 4352 bytes into a destination of size 4096
   70 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I do not suspect this issue was due to any recent change in TVHeadend itself, but is likely due to glibc getting upgraded to 2.32 in Ubuntu Groovy.

History

#1

Updated by saen acro 6 days ago

Ubuntu Groovy ???
uname -a && lsb_release -a

what show

./configure

#3

Updated by saen acro 6 days ago

Michael Marley wrote:

Yes, Ubuntu Groovy, due to be released next month as 20.10.

The full build log is at https://launchpad.net/~mamarley/+archive/ubuntu/tvheadend-git/+build/19938133/+files/buildlog_ubuntu-groovy-s390x.tvheadend_4.3.0~pre+202009132304-0~built202009140317~git6b8f014c3~ubuntu20.10.1_BUILDING.txt.gz.

unofficial repo is used, ask maintainer

#4

Updated by Michael Marley 6 days ago

I am the maintainer of that repo, silly!

#5

Updated by Flole Systems 6 days ago

  • Status changed from New to Accepted
  • Assignee set to Michael Marley

Alright, waiting for your PR. It's a gcc issue by the way, new gcc causes this.

#6

Updated by Michael Marley 6 days ago

I do not understand why this error occurs and I don't have a development environment for TVHeadend at the moment, so I would be a poor choice to attempt to fix it.

Also available in: Atom PDF