Bug #5949
TVHeadend is FTBFS on Ubuntu Groovy on s390x
0%
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
Updated by saen acro over 4 years ago
Ubuntu Groovy ???
uname -a && lsb_release -a
what show
./configure
Updated by Michael Marley over 4 years ago
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.
Updated by saen acro over 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
Updated by Flole Systems over 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.
Updated by Michael Marley over 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.
Updated by Flole Systems almost 4 years ago
- Status changed from Accepted to Fixed
This should be fixed now.
Updated by Michael Marley almost 4 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.