[crosstool-ng/crosstool-ng] in multilib config, 32bit binaries override the 64bit ones

郑 祎 yzheng@techyauld.com
Mon Nov 5 09:07:00 GMT 2018


for example: iconv, gencat, getconf

and some other binaries:

[brock_zheng@crosstool-ng-1.23.0-474-gd19c46f8-x86_64-gcc8.2.0-gnueabihf-0-on-x86_64 17:06:41]$ file x86_64-unknown-linux-gnu/sysroot/usr/bin/*
x86_64-unknown-linux-gnu/sysroot/usr/bin/captoinfo:       symbolic link to tic
x86_64-unknown-linux-gnu/sysroot/usr/bin/catchsegv:       POSIX shell script, ASCII text executable
x86_64-unknown-linux-gnu/sysroot/usr/bin/clear:           ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=200edfaa88b7bcfd8e214238c0020baa1cb330ef, stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/gencat:          ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=b06b92365cc2008bc0e21c88ade32bcf1f3864ca, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/getconf:         ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=860f4271012cb63328cb2c1175ce1ab3725b3a25, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/getent:          ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=ca4bbd314f969b7f80f09ef9379b928a9c0da2f0, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/iconv:           ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=0be6d38c3bf9279ebff5d8afbb8466039ebd6ea4, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/infocmp:         ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=bde1e0779f7f9fb845f99b0bc63fcddc5209baee, stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/infotocap:       symbolic link to tic
x86_64-unknown-linux-gnu/sysroot/usr/bin/ldd:             Bourne-Again shell script, ASCII text executable
x86_64-unknown-linux-gnu/sysroot/usr/bin/lddlibc4:        ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=74a9a00c6ffe7aec0de6099850c5896035912aff, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/locale:          ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=51bb968f7aa94e2dba0cafb5e1fec85faceb41f6, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/localedef:       ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=1aeff7457624355f39982eb8a777176ae39b140f, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/makedb:          ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=1b053971ca438dd433d46e268bb135abf7501b24, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/mtrace:          Perl script text executable
x86_64-unknown-linux-gnu/sysroot/usr/bin/ncurses6-config: Bourne-Again shell script, ASCII text executable
x86_64-unknown-linux-gnu/sysroot/usr/bin/pcprofiledump:   ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=9ce164a80e42413e31a56aa6fd8cccf2e9e662e5, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/pldd:            ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=7d51737d534779d2f6fa535d952790bcd20ee088, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/reset:           symbolic link to tset
x86_64-unknown-linux-gnu/sysroot/usr/bin/rpcgen:          ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=31ab71eb385be081549d2a6bf2455a8b4fe57faf, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/sotruss:         Bourne-Again shell script, ASCII text executable
x86_64-unknown-linux-gnu/sysroot/usr/bin/sprof:           ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=40393803e18fd7060e97f708d560dbe99bfff04b, with debug_info, not stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/tabs:            ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=655bf3e969836f6196994ec8c0fcfb276637af84, stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/tic:             ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=1e00a4dce27fe562813f670b047e0661e8269e7c, stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/toe:             ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=2be19ac0a2c83fe63e5577a266c35e7df45f6776, stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/tput:            ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=ca2cbde3eee69c581adf608f44caf7326e77655d, stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/tset:            ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=60d55311d68c4a45bcb3c361d1b634ef8fb832c9, stripped
x86_64-unknown-linux-gnu/sysroot/usr/bin/tzselect:        Bourne-Again shell script, ASCII text executable
x86_64-unknown-linux-gnu/sysroot/usr/bin/xmlwf:           ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.14.71, BuildID[sha1]=140aae58850c079db8abb62117becfcecffc052b, with debug_info, not stripped


any idea about that?

iconv by default searches /usr/lib/gconv, which contains 64bit shared libs.
I know 'GCONV_PATH' environ can fixup the failure of iconv.......


-- 
Brock Zheng <yzheng@techyauld.com>
郑 祎

北京中科è
¾è¶Šç§‘技发展有限å
¬å¸
北京市海淀区东北旺西路8号中å
³æ‘软件园21号楼启明星辰大厦二层å
­åŒºï¼ˆé‚®ç¼–:100094)




More information about the crossgcc mailing list