Bug 40274

Summary: armh: "zlib.h: present but cannot be compiled"
Product: Sisyphus Reporter: Michael Shigorin <mike>
Component: synfigstudioAssignee: Andrey Cherepanov <cas>
Status: NEW --- QA Contact: qa-sisyphus
Severity: major    
Priority: P5 CC: cas, glebfm, iv, ldv, sbolshakov
Version: unstableKeywords: regression
Hardware: arm   
OS: Linux   
URL: http://git.altlinux.org/tasks/275530/logs/events.1.1.log

Description Michael Shigorin 2021-06-23 16:04:30 MSK
$ grep zlib /tasks/275530/build/100/armh/srpm.log
<13>Jun 23 12:47:32 rpmi: zlib-devel-1.2.11-alt1 sisyphus+221902.6000.4.1 1590016421 installed

$ grep zlib /tasks/275530/build/100/armh/log
[00:00:44] checking zlib.h usability... no
[00:00:44] checking zlib.h presence... yes
[00:00:44] configure: WARNING: zlib.h: present but cannot be compiled
[00:00:44] configure: WARNING: zlib.h:     check for missing prerequisite headers?
[00:00:44] configure: WARNING: zlib.h: see the Autoconf documentation
[00:00:44] configure: WARNING: zlib.h:     section "Present But Cannot Be Compiled"
[00:00:44] configure: WARNING: zlib.h: proceeding with the compiler's result
[00:00:44] checking for zlib.h... no
[00:00:44] configure: error:  ** You need to install zlib
Comment 1 Dmitry V. Levin 2021-06-23 16:59:43 MSK
$ sed -n '/checking zlib.h usability/,/^$/p' /usr/src/RPM/BUILD/synfigstudio-1.4.1/synfig-core/config.log
configure:23456: checking zlib.h usability
configure:23456: armh-alt-linux-gnueabi-g++ -c -pipe -frecord-gcc-switches -Wall -fomit-frame-pointer -march=armv7-a -mthumb -fpermissive -std=c++11 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -O2 -DNDEBUG -W -pg -fprofile-arcs  conftest.cpp >&5
armh-alt-linux-gnueabi-g++: error: -pg and -fomit-frame-pointer are incompatible
configure:23456: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Synfig Core"
| #define PACKAGE_TARNAME "synfig"
| #define PACKAGE_VERSION "1.4.1"
| #define PACKAGE_STRING "Synfig Core 1.4.1"
| #define PACKAGE_BUGREPORT "https://github.com/synfig/synfig/issues"
| #define PACKAGE_URL ""
| #define PACKAGE "synfig"
| #define VERSION "1.4.1"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define LT_MODULE_EXT ".so"
| #define LT_MODULE_PATH_VAR "LD_LIBRARY_PATH"
| #define LT_DLSEARCH_PATH "/lib:/usr/lib"
| #define HAVE_LIBDL 1
| #define HAVE_DLERROR 1
| #define HAVE_LIBDLLOADER 1
| #define HAVE_ARGZ_H 1
| #define HAVE_ERROR_T 1
| #define HAVE_ARGZ_ADD 1
| #define HAVE_ARGZ_APPEND 1
| #define HAVE_ARGZ_COUNT 1
| #define HAVE_ARGZ_CREATE_SEP 1
| #define HAVE_ARGZ_INSERT 1
| #define HAVE_ARGZ_NEXT 1
| #define HAVE_ARGZ_STRINGIFY 1
| #define HAVE_WORKING_ARGZ 1
| #define HAVE_PRELOADED_SYMBOLS 1
| #define HAVE_LTDL 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_CLOSEDIR 1
| #define HAVE_OPENDIR 1
| #define HAVE_READDIR 1
| #define HAVE_STRLCAT 1
| #define HAVE_STRLCPY 1
| #define LT_LIBEXT "a"
| #define LT_LIBPREFIX "lib"
| #define LT_SCOPE extern
| #define WITH_LIBAVCODEC /**/
| #define WITH_FONTCONFIG /**/
| #define GETTEXT_PACKAGE "synfig"
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <zlib.h>
configure:23456: result: no
configure:23456: checking zlib.h presence
configure:23456: armh-alt-linux-gnueabi-g++ -E  conftest.cpp
configure:23456: $? = 0
configure:23456: result: yes
configure:23456: WARNING: zlib.h: present but cannot be compiled
configure:23456: WARNING: zlib.h:     check for missing prerequisite headers?
configure:23456: WARNING: zlib.h: see the Autoconf documentation
configure:23456: WARNING: zlib.h:     section "Present But Cannot Be Compiled"
configure:23456: WARNING: zlib.h: proceeding with the compiler's result
configure:23456: checking for zlib.h
configure:23456: result: no
configure:23464: error:  ** You need to install zlib

JFYI:
$ sed -n '/ifarch/,/^$/p' synfigstudio.spec
%ifarch %e2k
# -lgcov not there yet...
find -name subs.m4 | xargs sed -i 's, -pg,,;s, -fprofile-arcs,,'
%endif