LINUX.ORG.RU

Не собирается zlib

 , ,


0

1

Доброго времени суток ЛОР. Имеется chroot с arm gentoo-й для архитектуры процессора armv7a.
Проблема следующего характера при сборке вышеупомянутого пакета:

build.log

 * Package:    sys-libs/zlib-1.2.11-r2
 * Repository: gentoo
 * Maintainer: base-system@gentoo.org
 * USE:        arm elibc_glibc kernel_linux split-usr userland_GNU
 * FEATURES:   preserve-libs userpriv
>>> Unpacking source...
>>> Unpacking zlib-1.2.11.tar.gz to /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work
>>> Source unpacked in /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work
>>> Preparing source in /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11 ...
 * Applying zlib-1.2.11-fix-deflateParams-usage.patch ...                                                                                                                                                                             [ ok ]
 * Applying zlib-1.2.11-minizip-drop-crypt-header.patch ...                                                                                                                                                                           [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11 ...
 * .arm: running multilib-minimal_abi_src_configure
/var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/configure --shared --prefix=/usr --libdir=/usr/lib --uname=linux
Using ar
Checking for armv7a-unknown-linux-gnueabihf-gcc...
Checking for shared library support...
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.11 with cc.
Checking for size_t... Yes.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11 ...
 * .arm: running multilib-minimal_abi_src_compile
make -j5
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -I. -I/var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/ -c -o example.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/test/example.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o adler32.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/adler32.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o crc32.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/crc32.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o deflate.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/deflate.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o infback.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/infback.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o inffast.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/inffast.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o inflate.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/inflate.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o inftrees.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/inftrees.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o trees.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/trees.c 
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o zutil.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/zutil.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o compress.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/compress.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o uncompr.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/uncompr.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o gzclose.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/gzclose.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o gzlib.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/gzlib.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o gzread.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/gzread.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -include zconf.h -c -o gzwrite.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/gzwrite.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -I. -I/var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/ -c -o minigzip.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/test/minigzip.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -I. -I/var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/ -D_FILE_OFFSET_BITS=64 -c -o example64.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/test/example.c
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -I. -I/var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/ -D_FILE_OFFSET_BITS=64 -c -o minigzip64.o /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/test/minigzip.c
ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -o example example.o -L. libz.a
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -o minigzip minigzip.o -L. libz.a
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -o minigzip64 minigzip64.o -L. libz.a
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -o example64 example64.o -L. libz.a
>>> Source compiled.
>>> Test phase [not enabled]: sys-libs/zlib-1.2.11-r2

>>> Install sys-libs/zlib-1.2.11-r2 into /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image/
 * .arm: running multilib-minimal_abi_src_install
make -j5 install DESTDIR=/var/tmp/portage/sys-libs/zlib-1.2.11-r2/image/ LDCONFIG=:
rm -f /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/lib/libz.a
cp libz.a /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/lib
chmod 644 /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/lib/libz.a
rm -f /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/share/man/man3/zlib.3
cp /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/zlib.3 /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/share/man/man3
chmod 644 /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/share/man/man3/zlib.3
rm -f /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/lib/pkgconfig/zlib.pc
cp zlib.pc /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/lib/pkgconfig
chmod 644 /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/lib/pkgconfig/zlib.pc
rm -f /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/include/zlib.h /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/include/zconf.h
cp /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/zlib.h zconf.h /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/include
chmod 644 /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/include/zlib.h /var/tmp/portage/sys-libs/zlib-1.2.11-r2/image//usr/include/zconf.h
 * ERROR: sys-libs/zlib-1.2.11-r2::gentoo failed (install phase):
 *   unable to read SONAME from libz.so
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 2765:  Called multilib-minimal_src_install
 *   environment, line 2027:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
 *   environment, line 2234:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 1914:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 1912:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
 *   environment, line  406:  Called multilib-minimal_abi_src_install
 *   environment, line 2017:  Called multilib_src_install
 *   environment, line 2493:  Called gen_usr_ldscript '-a' 'z'
 *   environment, line 1330:  Called die
 * The specific snippet of code:
 *                       [[ -z ${tlib} ]] && die "unable to read SONAME from ${lib}";
 *
 * If you need support, post the output of `emerge --info '=sys-libs/zlib-1.2.11-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/zlib-1.2.11-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/zlib-1.2.11-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/zlib-1.2.11-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11-.arm'
 * S: '/var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11'


emerge --info

Portage 2.3.68 (python 2.7.15-final-0, default/linux/arm/17.0/armv7a, gcc-9.2.0, glibc-2.29-r2, 4.19.82-gentoo armv7l)
=================================================================
System uname: Linux-4.19.82-gentoo-armv7l-Intel-R-_Xeon-R-_CPU_E5440_@_2.83GHz-with-gentoo-2.6
KiB Mem:     3996452 total,   2719804 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 23 Nov 2019 20:15:01 +0000
Head commit of repository gentoo: b17c2c4f8a7fe2808c0f31c8d37ad82f199f5d28
Head commit of repository imax-ua: 10eb96605db30207586775d47d367a0f593fda0d

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/python:          2.7.15::python-kit, 3.7.3::python-kit
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2-r1::core-kit
sys-apps/sandbox:         2.17::core-kit
sys-devel/autoconf:       2.69-r4::core-kit
sys-devel/automake:       1.15.1-r2::core-kit, 1.16.1-r1::core-kit
sys-devel/binutils:       2.31.1-r1::core-kit, 2.32-r1::core-kit
sys-devel/gcc:            7.4.1-r6::core-kit, 9.1.1-r8::core-kit, 9.2.0::core-kit
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::core-kit
sys-devel/make:           4.2.1-r4::core-kit
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync2.ru.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync xattr"
FFLAGS="-O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="https://fastpull-us.funtoo.org"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl arm armv5te armv6 armv6t2 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Очень надеюсь на вашу помощь.

★★★★
$ objdump -x libz.so | grep SONAME

А есть оно? Тут вот пишут такое:

I had this problem for a very long time and kept zlib at 1.2.3. It's bizzare that in such a high-profile distribution, the devs would ignore a bug like this in one of the core system packages. Anyway, here is a workaround:

1. emerge -u zlib, wait for it to exit with the error message
2. cd /var/tmp/portage/sys-libs/zlib-1.2.5-r2/work/zlib-1.2.5
3. rm libz.*
4. make
5. re-run the last gcc command that the above "make" displayed, but with the extra arguments: -Wl,-soname,libz.so.1
e.g.: x86_64-linux-gnu-gcc -shared -march=core2 -O3 -pipe -msse4 -mcx16 -mpopcnt -msahf -fPIC -D_LARGEFILE64_SOURCE=1 -o libz.so.1.2.5 adler32.lo compress.lo crc32.lo deflate.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo uncompr.lo zutil.lo -lc -Wl,-O1 -Wl,--as-needed -Wl,-soname,libz.so.1
6. confirm that the SONAME is set correctly: objdump -x libz.so | grep SONAME
should show: SONAME libz.so.1
7. ebuild /usr/portage/sys-libs/zlib/zlib-1.2.5-r2.ebuild install
8. ebuild /usr/portage/sys-libs/zlib/zlib-1.2.5-r2.ebuild qmerge

Правда там тема с 11-го года.

anonymous
()
Ответ на: комментарий от anonymous

https://forums.gentoo.org/viewtopic-t-825260-start-0.html

Вкратце если, там проблема была в том, что zlib-1.2.5 хитро реагировал на CHOST. Предлагали ставить что-то вроде

With a CHOST of x86_64-unknown-linux-gnu (or whatever it was set to originally), there is no problem.
anonymous
()
Ответ на: комментарий от xaTa
No shared library support; try without defining CC and CFLAGS

Вот это немного напрягает. Только что заметил. Выглядит так, как будто SO не строится совсем.

anonymous
()
Ответ на: комментарий от anonymous

В общем, было бы здорово посмотреть /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/configure.log, там должно что-то быть, с чего он решил, что ‘no shared library support’

В моём случае ему -fPIC не хватило. Если её в CFLAGS добавить, говорит ‘Building shared library libz.so.1.2.11 with cc.’ Но это всё довольно странно выглядит.

anonymous
()
Ответ на: комментарий от anonymous
cat /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11-.arm/configure.log
--------------------
/var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/configure --shared --prefix=/usr --libdir=/usr/lib --uname=linux
Вс ноя 24 18:06:50 -00 2019
Using ar
Checking for armv7a-unknown-linux-gnueabihf-gcc...
=== ztest8447.c ===
extern int getchar();
int hello() {return getchar();}
===
armv7a-unknown-linux-gnueabihf-gcc -c ztest8447.c
/var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/configure: line 182: armv7a-unknown-linux-gnueabihf-gcc: command not found
... using cc

Checking for obsessive-compulsive compiler options...
=== ztest8447.c ===
int foo() { return 0; }
===
cc -c -O2 -pipe -fomit-frame-pointer ztest8447.c

Checking for shared library support...
=== ztest8447.c ===
extern int getchar();
int hello() {return getchar();}
===
cc -w -c -O2 -pipe -fomit-frame-pointer ztest8447.c
gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O2 -pipe -fomit-frame-pointer -o ztest8447.so ztest8447.o
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/9.2.0/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: cannot open linker script file zlib.map: No such file or directory
collect2: error: ld returned 1 exit status
(exit code 1)
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.11 with cc.

=== ztest8447.c ===
#include <stdio.h>
#include <stdlib.h>
size_t dummy = 0;
===
cc -c -O2 -pipe -fomit-frame-pointer ztest8447.c
Checking for size_t... Yes.


=== ztest8447.c ===
#include <sys/types.h>
off64_t dummy = 0;
===
cc -c -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 ztest8447.c
Checking for off64_t... Yes.
Checking for fseeko... Yes.

=== ztest8447.c ===
#include <string.h>
#include <errno.h>
int main() { return strlen(strerror(errno)); }
===
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -o ztest8447 ztest8447.c
Checking for strerror... Yes.

=== ztest8447.c ===
#include <unistd.h>
int main() { return 0; }
===
cc -c -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 ztest8447.c
Checking for unistd.h... Yes.

=== ztest8447.c ===
#include <stdarg.h>
int main() { return 0; }
===
cc -c -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 ztest8447.c
Checking for stdarg.h... Yes.

=== ztest8447.c ===
#include <stdio.h>
#include <stdarg.h>
#include "zconf.h"
int main()
{
#ifndef STDC
  choke me
#endif
  return 0;
}
===
cc -c -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 ztest8447.c
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().

=== ztest8447.c ===
#include <stdio.h>
#include <stdarg.h>
int mytest(const char *fmt, ...)
{
  char buf[20];
  va_list ap;
  va_start(ap, fmt);
  vsnprintf(buf, sizeof(buf), fmt, ap);
  va_end(ap);
  return 0;
}
int main()
{
  return (mytest("Hello%d\n", 1));
}
===
cc -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 -o ztest8447 ztest8447.c
Checking for vsnprintf() in stdio.h... Yes.

=== ztest8447.c ===
#include <stdio.h>
#include <stdarg.h>
int mytest(const char *fmt, ...)
{
  int n;
  char buf[20];
  va_list ap;
  va_start(ap, fmt);
  n = vsnprintf(buf, sizeof(buf), fmt, ap);
  va_end(ap);
  return n;
}
int main()
{
  return (mytest("Hello%d\n", 1));
}
===
cc -c -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1 ztest8447.c
Checking for return value of vsnprintf()... Yes.

ALL = static all64
AR = ar
ARFLAGS = rc
CC = cc
CFLAGS = -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1
CPP = cc -E
EXE =
LDCONFIG = ldconfig
LDFLAGS = -Wl,-O1 -Wl,--as-needed
LDSHARED = cc
LDSHAREDLIBC = -lc
OBJC = $(OBJZ) $(OBJG)
PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG)
RANLIB = ranlib
SFLAGS = -O2 -pipe -fomit-frame-pointer -D_LARGEFILE64_SOURCE=1
SHAREDLIB =
SHAREDLIBM =
SHAREDLIBV =
STATICLIB = libz.a
TEST = all teststatic test64
VER = 1.2.11
Z_U4 =
SRCDIR = /var/tmp/portage/sys-libs/zlib-1.2.11-r2/work/zlib-1.2.11/
exec_prefix = ${prefix}
includedir = ${prefix}/include
libdir = /usr/lib
mandir = ${prefix}/share/man
prefix = /usr
sharedlibdir = ${libdir}
uname = linux
--------------------

UPD
И все таки решил проблему подменой правильного CHOST он должен был быть такой armv7a-hardfloat-linux-gnueabi

xaTa ★★★★
() автор топика
Последнее исправление: xaTa (всего исправлений: 1)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.