Re: [Dorset] 32-bit libs on amd64 Debian
Hi Tim, $ readelf -d /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc Dynamic section at offset 0xb20a4 contains 26 entries: TagType Name/Value 0x0001 (NEEDED) Shared library: [libm.so.6] 0x0001 (NEEDED) Shared library: [libc.so.6] 0x0001 (NEEDED) Shared library: [ld-linux.so.2] BTW, there's also ldd(1) which shows how the file's needs are met. $ ldd /bin/ls linux-vdso.so.1 = (0x7fff873ff000) libselinux.so.1 = /lib/libselinux.so.1 (0x7fbcd78be000) librt.so.1 = /lib/librt.so.1 (0x7fbcd76b6000) libacl.so.1 = /lib/libacl.so.1 (0x7fbcd74ad000) libc.so.6 = /lib/libc.so.6 (0x7fbcd7129000) libdl.so.2 = /lib/libdl.so.2 (0x7fbcd6f25000) /lib64/ld-linux-x86-64.so.2 (0x7fbcd7af8000) libpthread.so.0 = /lib/libpthread.so.0 (0x7fbcd6d07000) libattr.so.1 = /lib/libattr.so.1 (0x7fbcd6b02000) $ Cheers, Ralph. -- Next meeting: Bournemouth, Tuesday, 2015-07-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] 32-bit libs on amd64 Debian
On 01/07/15 12:12, TimA wrote: Hi Trying to get arm embedded cross compiler from https://launchpad.net/gcc-arm-embedded running on a Debian 8 (Jessie) amd64 machine. Compiler is 32-bit: $ file /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, stripped and needs these libs: $ readelf -d /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc Dynamic section at offset 0xb20a4 contains 26 entries: TagType Name/Value 0x0001 (NEEDED) Shared library: [libm.so.6] 0x0001 (NEEDED) Shared library: [libc.so.6] 0x0001 (NEEDED) Shared library: [ld-linux.so.2] So add i386 architecture dpkg --add-architechture i386 apt-get update apt-get install ia32-libs to discover that this package no longer present in Jessie. $ apt-get install libc-bin:i386 apt-get install libc-bin:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: gcc-4.9-base:i386 libattr1:i386 libc6:i386 libc6-i686:i386 libcap2:i386 libgcc1:i386 Suggested packages: glibc-doc:i386 locales:i386 The following packages will be REMOVED: libc-bin The following NEW packages will be installed: gcc-4.9-base:i386 libattr1:i386 libc-bin:i386 libc6:i386 libc6-i686:i386 libcap2:i386 libgcc1:i386 WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! libc-bin 0 upgraded, 7 newly installed, 1 to remove and 0 not upgraded. Need to get 6,610 kB of archives. After this operation, 12.5 MB of additional disk space will be used. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' Don't think I want to go there! So question is what's the correct way to install 32-bit libs multiarch on the latest Debian/Ubuntu? Fixed - should have been: apt-get install libc6 Tim -- Next meeting: Bournemouth, Tuesday, 2015-07-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
[Dorset] 32-bit libs on amd64 Debian
Hi Trying to get arm embedded cross compiler from https://launchpad.net/gcc-arm-embedded running on a Debian 8 (Jessie) amd64 machine. Compiler is 32-bit: $ file /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, stripped and needs these libs: $ readelf -d /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc Dynamic section at offset 0xb20a4 contains 26 entries: TagType Name/Value 0x0001 (NEEDED) Shared library: [libm.so.6] 0x0001 (NEEDED) Shared library: [libc.so.6] 0x0001 (NEEDED) Shared library: [ld-linux.so.2] So add i386 architecture dpkg --add-architechture i386 apt-get update apt-get install ia32-libs to discover that this package no longer present in Jessie. $ apt-get install libc-bin:i386 apt-get install libc-bin:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: gcc-4.9-base:i386 libattr1:i386 libc6:i386 libc6-i686:i386 libcap2:i386 libgcc1:i386 Suggested packages: glibc-doc:i386 locales:i386 The following packages will be REMOVED: libc-bin The following NEW packages will be installed: gcc-4.9-base:i386 libattr1:i386 libc-bin:i386 libc6:i386 libc6-i686:i386 libcap2:i386 libgcc1:i386 WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! libc-bin 0 upgraded, 7 newly installed, 1 to remove and 0 not upgraded. Need to get 6,610 kB of archives. After this operation, 12.5 MB of additional disk space will be used. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' Don't think I want to go there! So question is what's the correct way to install 32-bit libs multiarch on the latest Debian/Ubuntu? Cheers Tim -- Next meeting: Bournemouth, Tuesday, 2015-07-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] 32-bit libs on amd64 Debian
Hi Andrew On 01/07/15 12:34, Andrew Montgomery-Hurrell wrote: Not an answer to your question, but I'm curious, is there a reason you need the 32bit version? Why not just use the 64-bit one they link from that very page? https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded Yes, I saw that but it's a step removed from the base release and I need to get the 32-bit libs installed anyway for other compilers which are not available in 64-bit. Cheers Tim On Wed, 1 Jul 2015 at 12:15 TimA t...@ls83.eclipse.co.uk wrote: Hi Trying to get arm embedded cross compiler from https://launchpad.net/gcc-arm-embedded running on a Debian 8 (Jessie) amd64 machine. Compiler is 32-bit: $ file /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, stripped and needs these libs: $ readelf -d /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc Dynamic section at offset 0xb20a4 contains 26 entries: TagType Name/Value 0x0001 (NEEDED) Shared library: [libm.so.6] 0x0001 (NEEDED) Shared library: [libc.so.6] 0x0001 (NEEDED) Shared library: [ld-linux.so.2] So add i386 architecture dpkg --add-architechture i386 apt-get update apt-get install ia32-libs to discover that this package no longer present in Jessie. $ apt-get install libc-bin:i386 apt-get install libc-bin:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: gcc-4.9-base:i386 libattr1:i386 libc6:i386 libc6-i686:i386 libcap2:i386 libgcc1:i386 Suggested packages: glibc-doc:i386 locales:i386 The following packages will be REMOVED: libc-bin The following NEW packages will be installed: gcc-4.9-base:i386 libattr1:i386 libc-bin:i386 libc6:i386 libc6-i686:i386 libcap2:i386 libgcc1:i386 WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! libc-bin 0 upgraded, 7 newly installed, 1 to remove and 0 not upgraded. Need to get 6,610 kB of archives. After this operation, 12.5 MB of additional disk space will be used. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' Don't think I want to go there! So question is what's the correct way to install 32-bit libs multiarch on the latest Debian/Ubuntu? Cheers Tim -- Next meeting: Bournemouth, Tuesday, 2015-07-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR -- Next meeting: Bournemouth, Tuesday, 2015-07-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR -- Next meeting: Bournemouth, Tuesday, 2015-07-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] 32-bit libs on amd64 Debian
Not an answer to your question, but I'm curious, is there a reason you need the 32bit version? Why not just use the 64-bit one they link from that very page? https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded On Wed, 1 Jul 2015 at 12:15 TimA t...@ls83.eclipse.co.uk wrote: Hi Trying to get arm embedded cross compiler from https://launchpad.net/gcc-arm-embedded running on a Debian 8 (Jessie) amd64 machine. Compiler is 32-bit: $ file /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, stripped and needs these libs: $ readelf -d /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi-gcc Dynamic section at offset 0xb20a4 contains 26 entries: TagType Name/Value 0x0001 (NEEDED) Shared library: [libm.so.6] 0x0001 (NEEDED) Shared library: [libc.so.6] 0x0001 (NEEDED) Shared library: [ld-linux.so.2] So add i386 architecture dpkg --add-architechture i386 apt-get update apt-get install ia32-libs to discover that this package no longer present in Jessie. $ apt-get install libc-bin:i386 apt-get install libc-bin:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: gcc-4.9-base:i386 libattr1:i386 libc6:i386 libc6-i686:i386 libcap2:i386 libgcc1:i386 Suggested packages: glibc-doc:i386 locales:i386 The following packages will be REMOVED: libc-bin The following NEW packages will be installed: gcc-4.9-base:i386 libattr1:i386 libc-bin:i386 libc6:i386 libc6-i686:i386 libcap2:i386 libgcc1:i386 WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! libc-bin 0 upgraded, 7 newly installed, 1 to remove and 0 not upgraded. Need to get 6,610 kB of archives. After this operation, 12.5 MB of additional disk space will be used. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' Don't think I want to go there! So question is what's the correct way to install 32-bit libs multiarch on the latest Debian/Ubuntu? Cheers Tim -- Next meeting: Bournemouth, Tuesday, 2015-07-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR -- Next meeting: Bournemouth, Tuesday, 2015-07-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR