help-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-tar] TAR cross-compile error (arm-linux-gnueabi)


From: Michele Bucca
Subject: [Help-tar] TAR cross-compile error (arm-linux-gnueabi)
Date: Mon, 26 Nov 2018 03:34:10 +0100

Hello, I'm having trouble cross-compiling TAR-1.30. I would like to
get a static tar executable so that I can Copy it to my phone and use
it to extract tar archives from the terminal (busybox tar does not
work very well sometimes).

Here is the configure command that I used:

./configure --prefix=/home/michele/tmp/arm-bin/install/
--host=arm-linux-gnueabi CFLAGS="-Os -g0" CXXFLAGS="-Os -g0"
LDFLAGS="-s -static"

and here is the error:

C       areadlink-with-size.o
In file included from
/home/michele/x-tools/arm-linux-gnueabi/arm-linux-gnueabi/include/stdlib.h:1014,
                 from ./stdlib.h:36,
                 from areadlink-with-size.c:28:
/home/michele/x-tools/arm-linux-gnueabi/arm-linux-gnueabi/include/bits/stdlib.h:
In function ‘wctomb’:
/home/michele/x-tools/arm-linux-gnueabi/arm-linux-gnueabi/include/bits/stdlib.h:90:3:
error: #error "Assumed value of MB_LEN_MAX wrong"
 # error "Assumed value of MB_LEN_MAX wrong"
   ^~~~~
Makefile:1897: set di istruzioni per l'obiettivo
"areadlink-with-size.o" non riuscito
make[4]: *** [areadlink-with-size.o] Errore 1
make[4]: uscita dalla directory "/home/michele/tmp/arm-bin/tar-1.30/gnu"
Makefile:1922: set di istruzioni per l'obiettivo "all-recursive" non riuscito
make[3]: *** [all-recursive] Errore 1
make[3]: uscita dalla directory "/home/michele/tmp/arm-bin/tar-1.30/gnu"
Makefile:1583: set di istruzioni per l'obiettivo "all" non riuscito
make[2]: *** [all] Errore 2
make[2]: uscita dalla directory "/home/michele/tmp/arm-bin/tar-1.30/gnu"
Makefile:1388: set di istruzioni per l'obiettivo "all-recursive" non riuscito
make[1]: *** [all-recursive] Errore 1
make[1]: uscita dalla directory "/home/michele/tmp/arm-bin/tar-1.30"
Makefile:1327: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2

I'm using gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
as native compiler.

These are the info on my cross-compiler (built manually):

COLLECT_GCC=arm-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/home/michele/x-tools/arm-linux-gnueabi/libexec/gcc/arm-linux-gnueabi/8.2.0/lto-wrapper
Target: arm-linux-gnueabi
Configured with: ../configure --target=arm-linux-gnueabi
--prefix=/home/michele/x-tools/arm-linux-gnueabi/
--enable-languages=c,c++ --disable-libsanitizer --disable-multilib
--disable-libmpx
Thread model: posix
gcc version 8.2.0 (GCC)

Cross Binutils 2.31.1
and Glibc 2.28 compiled with: ../configure --host=arm-linux-gnueabi
--prefix=/home/michele/tmp/arm/install/arm-linux-gnueabi
--enable-obsolete-rpc --disable-werror --disable-debug
--enable-add-ons=no libc_cv_c_cleanup=yes libc_cv_forced_unwind=yes


otherwise it would fail because of a warning being treated as an error
while compiling op-2.h

Can someone help me with this? The toolchain can cross-compile some
complex packages such as:

- binutils
- gmp
- mpfr
- mpc
- gcc
- glibc (disable werror)
- busybox
- xz

but it fails with this one. What can I do?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]