Project

General

Profile

Bug #5949

TVHeadend is FTBFS on Ubuntu Groovy on s390x

Added by Michael Marley about 4 years ago. Updated almost 3 years ago.

Status:
Fixed
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 about 4 years ago

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

what show

./configure

#3

Updated by saen acro about 4 years 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 about 4 years ago

I am the maintainer of that repo, silly!

#5

Updated by Flole Systems about 4 years 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 about 4 years 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.

#7

Updated by Flole Systems over 3 years ago

  • Status changed from Accepted to Fixed

This should be fixed now.

#8

Updated by Michael Marley over 3 years ago

Sorry it took me so long to come back and look at this, but it looks like it is still FTBFS on s390x with the same error message. Here's the complete build log: https://launchpadlibrarian.net/528853684/buildlog_ubuntu-hirsute-s390x.tvheadend_4.3.0~pre+202103191825-0~built202103200958~gitdbaa0f850~ubuntu21.04.1_BUILDING.txt.gz.

#9

Updated by Flole Systems almost 3 years ago

Fixed in #6f3b31043d89324c6b406286c1561ca0a213ba48

Also available in: Atom PDF