Message ID | 1404988617-10992-1-git-send-email-kaszak@gmail.com |
---|---|
State | Accepted |
Headers | show |
On 10/07/14 12:36, Karoly Kasza wrote: > Debian renamed the 32bit compatibility packages. > > Signed-off-by: Karoly Kasza <kaszak@gmail.com> > --- > support/dependencies/dependencies.sh | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh > index 255a07b..399bc06 100755 > --- a/support/dependencies/dependencies.sh > +++ b/support/dependencies/dependencies.sh > @@ -205,8 +205,8 @@ if grep -q ^BR2_HOSTARCH_NEEDS_IA32_LIBS=y $BR2_CONFIG ; then > echo "Your Buildroot configuration uses pre-built tools for the x86 architecture," > echo "but your build machine uses the x86-64 architecture without the 32 bits compatibility" > echo "library." > - echo "If you're running a Debian/Ubuntu distribution, install the libc6:i386," > - echo "libstdc++6:i386, and zlib1g:i386 packages." > + echo "If you're running a Debian/Ubuntu distribution, install the libc6-i386," > + echo "lib32stdc++6, and lib32z1 packages." Are you sure? With e.g. a sourcery toolchain, I get (on a Debian sid): bash 98826$ ldd host/opt/ext-toolchain/bin/i686-pc-linux-gnu-gcc linux-gate.so.1 (0xf776e000) libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xf76eb000) libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xf7540000) /lib/ld-linux.so.2 (0xf776f000) /lib/i386-linux-gnu/* is part of the libc6:i386 package. Regards, Arnout > echo "For other distributions, refer to the documentation on how to install the 32 bits" > echo "compatibility libraries." > exit 1 >
Hi, Yes, I'm pretty sure. You can still use a multiarch apt after some setup, but normally it's easier to just install the 32bit things from the 64bit repos. root@debian:~# cat /etc/debian_version 7.6 root@debian:~# uname -a Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u1 x86_64 GNU/Linux root@debian:~# apt-cache search libc6:i386 root@debian:~# apt-cache search libc6-i386 libc6-i386 - Embedded GNU C Library: 32-bit shared libraries for AMD64 root@debian:~# apt-get install libc6:i386 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libc6 root@debian:~# apt-get install libc6-i386 Reading package lists... Done Building dependency tree Reading state information... Done libc6-i386 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. BR Karoly On Fri, Jul 11, 2014 at 7:39 AM, Arnout Vandecappelle <arnout@mind.be> wrote: > On 10/07/14 12:36, Karoly Kasza wrote: > > Debian renamed the 32bit compatibility packages. > > > > Signed-off-by: Karoly Kasza <kaszak@gmail.com> > > --- > > support/dependencies/dependencies.sh | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/support/dependencies/dependencies.sh > b/support/dependencies/dependencies.sh > > index 255a07b..399bc06 100755 > > --- a/support/dependencies/dependencies.sh > > +++ b/support/dependencies/dependencies.sh > > @@ -205,8 +205,8 @@ if grep -q ^BR2_HOSTARCH_NEEDS_IA32_LIBS=y > $BR2_CONFIG ; then > > echo "Your Buildroot configuration uses pre-built tools > for the x86 architecture," > > echo "but your build machine uses the x86-64 architecture > without the 32 bits compatibility" > > echo "library." > > - echo "If you're running a Debian/Ubuntu distribution, > install the libc6:i386," > > - echo "libstdc++6:i386, and zlib1g:i386 packages." > > + echo "If you're running a Debian/Ubuntu distribution, > install the libc6-i386," > > + echo "lib32stdc++6, and lib32z1 packages." > > Are you sure? With e.g. a sourcery toolchain, I get (on a Debian sid): > > bash 98826$ ldd host/opt/ext-toolchain/bin/i686-pc-linux-gnu-gcc > linux-gate.so.1 (0xf776e000) > libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xf76eb000) > libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xf7540000) > /lib/ld-linux.so.2 (0xf776f000) > > /lib/i386-linux-gnu/* is part of the libc6:i386 package. > > > Regards, > Arnout > > > echo "For other distributions, refer to the documentation > on how to install the 32 bits" > > echo "compatibility libraries." > > exit 1 > > > > > -- > Arnout Vandecappelle arnout at mind be > Senior Embedded Software Architect +32-16-286500 > Essensium/Mind http://www.mind.be > G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven > LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle > GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F >
Hi Karoly, [Please don't top-post, but reply in-line.] On 14/07/14 12:21, Károly Kasza wrote: > Hi, > > Yes, I'm pretty sure. You can still use a multiarch apt after some setup, but > normally it's easier to just install the 32bit things from the 64bit repos. OK, now I see. So I guess the multiarch version takes precedence when you have both. We should probably mention both options the, i.e.: [snip] > > echo "Your Buildroot configuration uses pre-built tools for the x86 architecture," > > echo "but your build machine uses the x86-64 architecture without the 32 bits compatibility" > > echo "library." > > - echo "If you're running a Debian/Ubuntu distribution, install the libc6:i386," > > - echo "libstdc++6:i386, and zlib1g:i386 packages." > > + echo "If you're running a Debian/Ubuntu distribution, install the libc6-i386," > > + echo "lib32stdc++6, and lib32z1 packages." echo "If you're running a Debian/Ubuntu distribution, install the libc6-386," echo "lib32stcd++6, and lib32z1 packages (or alternatively libc6:i386," echo "libstdc++6:i386, and zlib1g:i386)." Regards, Arnout [snip]
> > > [Please don't top-post, but reply in-line.] > [...] > > > OK, now I see. So I guess the multiarch version takes precedence when you > have > both. > I'm not sure about that, but I'm pretty sure that multiarch does not come by default, you have to set it up first. > > We should probably mention both options the, i.e.: > > echo "If you're running a Debian/Ubuntu distribution, install the > libc6-386," > echo "lib32stcd++6, and lib32z1 packages (or alternatively libc6:i386," > echo "libstdc++6:i386, and zlib1g:i386)." > > Agreed. Maybe mention that multiarch requires setting up, with "dpkg --add-architecture <arch>". BR Karoly
Dear Karoly Kasza, On Thu, 10 Jul 2014 12:36:57 +0200, Karoly Kasza wrote: > Debian renamed the 32bit compatibility packages. > > Signed-off-by: Karoly Kasza <kaszak@gmail.com> > --- > support/dependencies/dependencies.sh | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) I've implemented Arnout's proposal and committed the patch. Thanks, Thomas
diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh index 255a07b..399bc06 100755 --- a/support/dependencies/dependencies.sh +++ b/support/dependencies/dependencies.sh @@ -205,8 +205,8 @@ if grep -q ^BR2_HOSTARCH_NEEDS_IA32_LIBS=y $BR2_CONFIG ; then echo "Your Buildroot configuration uses pre-built tools for the x86 architecture," echo "but your build machine uses the x86-64 architecture without the 32 bits compatibility" echo "library." - echo "If you're running a Debian/Ubuntu distribution, install the libc6:i386," - echo "libstdc++6:i386, and zlib1g:i386 packages." + echo "If you're running a Debian/Ubuntu distribution, install the libc6-i386," + echo "lib32stdc++6, and lib32z1 packages." echo "For other distributions, refer to the documentation on how to install the 32 bits" echo "compatibility libraries." exit 1
Debian renamed the 32bit compatibility packages. Signed-off-by: Karoly Kasza <kaszak@gmail.com> --- support/dependencies/dependencies.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)