2017-01-03

Slitaz64 -- cross-compile VS native-compile


cross-compile VS native-compile
>Do you used "uclibc-cross-compiler-x86_64" or do you compile
>using native x64 toolchain?

Never used uclibc-cross-compiler-x86_64

1. slitaz-x86_64-2014 (glibc-2.13): cross-compile
http://forum.slitaz.org/topic/slitaz-50-release-date/page/2#post-29501
root@slitaz:~# uname -a
Linux slitaz 3.2.53-slitaz #1 SMP Wed Jan 1 18:22:13 UTC 2014 x86_64 GNU/Linux
[ 0.000000] Linux version 3.2.53-slitaz (root@slitaz) (gcc version 4.6.3 (SliTaz) ) #1 SMP Wed Jan 1 18:22:13 UTC 2014
root@slitaz:~# file /lib/libc-2.13.so
/lib/libc-2.13.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped

2. slitaz-x86_64-2016 (glibc-2.19): native-compile
http://forum.slitaz.org/topic/slitaz-x86_64#post-43349
tux@slitaz:~$ uname -a
Linux slitaz 3.16.36-slitaz64 #2 SMP Mon Sep 12 07:26:30 UTC 2016 x86_64 GNU/Linux
tux@slitaz:~$ file /lib64/libc-2.19.so
/lib64/libc-2.19.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.30, stripped
Compiled by GNU CC version 4.9.2.
Compiled on a Linux 3.16.36 system on 2016-09-08.
http://forum.slitaz.org/topic/slitaz-x86_64#post-43358
root@slitaz:/home/tux# gcc -v
Target: x86_64-slitaz-linux
--build=x86_64-slitaz-linux --host=x86_64-slitaz-linux
root@slitaz:/home/tux# cat /usr/share/doc/slitaz/toolchain.txt
SliTaz GNU/Linux toolchain
================================================================================
Build date : 2016-09-03
Architecture : x86_64
Build system : x86_64-slitaz-linux
Host system : x86_64-slitaz-linux

3. Docker-Tag
http://forum.slitaz.org/topic/slitaz-x86_64/page/2#post-43544
tux@slitaz:~$ docker run -it slitaz/slitaz-base:2.13
root@09ae98ea7ee0:/# /lib64/libc.so.6
GNU C Library stable release version 2.13, by Roland McGrath et al.
Compiled by GNU CC version 4.6.3.
Compiled on a Linux 3.2.14 system on 2013-12-28.
tux@slitaz:~$ docker run -it slitaz/slitaz-base:2.19
root@2b3c5287b346:/# /lib64/libc.so.6
GNU C Library (GNU libc) stable release version 2.19, by Roland McGrath et al.
Compiled by GNU CC version 4.9.2.
Compiled on a Linux 3.16.36 system on 2016-09-08.