История изменений
Исправление xaTa, (текущая версия) :
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, :
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
--------------------