All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
@ 2014-07-03  9:05 Marco Pastorelli
  2014-07-03  9:20 ` Baruch Siach
  0 siblings, 1 reply; 12+ messages in thread
From: Marco Pastorelli @ 2014-07-03  9:05 UTC (permalink / raw)
  To: buildroot

Hi everybody,

I'm using buildroot 2014.05 to compile a BSP for a beaglebone. I'm using
linaro toolchain 2014.02

If I compile with ubuntu 12.04LTS everything works fine.
When I compile exactly the same project with another PC running ubuntu
14.04LTS I run into this error:

>>> toolchain-external undefined Configuring
Incorrect ABI setting: EABIhf selected, but toolchain is incompatible

Does anybody knows which could be the problem?

Thanks!
Marco.

PS: hereafter the main config keys

BR2_HAVE_DOT_CONFIG=y
BR2_HOSTARCH_NEEDS_IA32_LIBS=y

BR2_arm=y
BR2_ARCH="arm"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_ARCH="armv7-a"
BR2_GCC_TARGET_ABI="aapcs-linux"
BR2_GCC_TARGET_CPU="cortex-a8"
BR2_GCC_TARGET_FPU="vfpv3-d16"
BR2_GCC_TARGET_FLOAT_ABI="hard"
BR2_GCC_TARGET_MODE="arm"
BR2_ARM_CPU_HAS_NEON=y
BR2_ARM_CPU_HAS_VFPV2=y
BR2_ARM_CPU_HAS_VFPV3=y
BR2_ARM_CPU_HAS_THUMB2=y
BR2_cortex_a8=y
BR2_ARM_EABIHF=y
BR2_ARM_FPU_VFPV3D16=y
BR2_ARM_INSTRUCTIONS_ARM_CHOICE=y
BR2_ARM_INSTRUCTIONS_ARM=y

BR2_TOOLCHAIN=y
BR2_TOOLCHAIN_USES_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_LINARO_2014_02=y

BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
BR2_TOOLCHAIN_EXTERNAL_PREFIX="arm-linux-gnueabihf"
BR2_TOOLCHAIN_EXTERNAL_GLIBC=y
BR2_LARGEFILE=y
BR2_INET_IPV6=y
BR2_TOOLCHAIN_HAS_GCC_BUG_58854=y
BR2_TOOLCHAIN_HAS_NATIVE_RPC=y
BR2_USE_WCHAR=y
BR2_ENABLE_LOCALE=y
BR2_INSTALL_LIBSTDCPP=y
BR2_TOOLCHAIN_HAS_THREADS=y
BR2_TOOLCHAIN_HAS_THREADS_DEBUG=y
BR2_TOOLCHAIN_HAS_THREADS_NPTL=y
BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS=y
BR2_TOOLCHAIN_HAS_SSP=y
BR2_GENERATE_LOCALE=""
BR2_USE_MMU=y
BR2_TARGET_OPTIMIZATION="-pipe"
BR2_TARGET_LDFLAGS=""
BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0=y
BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1=y
BR2_TOOLCHAIN_HEADERS_AT_LEAST="3.1"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140703/cbd38fd4/attachment.html>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
  2014-07-03  9:05 [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS Marco Pastorelli
@ 2014-07-03  9:20 ` Baruch Siach
  2014-07-03  9:24   ` Baruch Siach
  0 siblings, 1 reply; 12+ messages in thread
From: Baruch Siach @ 2014-07-03  9:20 UTC (permalink / raw)
  To: buildroot

Hi Marco,

On Thu, Jul 03, 2014 at 11:05:02AM +0200, Marco Pastorelli wrote:
> I'm using buildroot 2014.05 to compile a BSP for a beaglebone. I'm using
> linaro toolchain 2014.02
> 
> If I compile with ubuntu 12.04LTS everything works fine.
> When I compile exactly the same project with another PC running ubuntu
> 14.04LTS I run into this error:
> 
> >>> toolchain-external undefined Configuring
> Incorrect ABI setting: EABIhf selected, but toolchain is incompatible
> 
> Does anybody knows which could be the problem?

What is the output of:

echo 'int main(void) {}' | arm-linux-gnueabihf-gcc -x c -o /dev/null

on the problematic machine?

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
  2014-07-03  9:20 ` Baruch Siach
@ 2014-07-03  9:24   ` Baruch Siach
  2014-07-03  9:33     ` Thomas Petazzoni
  0 siblings, 1 reply; 12+ messages in thread
From: Baruch Siach @ 2014-07-03  9:24 UTC (permalink / raw)
  To: buildroot

Hi Marco,

On Thu, Jul 03, 2014 at 12:20:10PM +0300, Baruch Siach wrote:
> On Thu, Jul 03, 2014 at 11:05:02AM +0200, Marco Pastorelli wrote:
> > I'm using buildroot 2014.05 to compile a BSP for a beaglebone. I'm using
> > linaro toolchain 2014.02
> > 
> > If I compile with ubuntu 12.04LTS everything works fine.
> > When I compile exactly the same project with another PC running ubuntu
> > 14.04LTS I run into this error:
> > 
> > >>> toolchain-external undefined Configuring
> > Incorrect ABI setting: EABIhf selected, but toolchain is incompatible
> > 
> > Does anybody knows which could be the problem?
> 
> What is the output of:
> 
> echo 'int main(void) {}' | arm-linux-gnueabihf-gcc -x c -o /dev/null
>
> on the problematic machine?

Forgot a dash. The command should be:

echo 'int main(void) {}' | arm-linux-gnueabihf-gcc -x c -o /dev/null -

baurch


-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
  2014-07-03  9:24   ` Baruch Siach
@ 2014-07-03  9:33     ` Thomas Petazzoni
  2014-07-03 14:27       ` Marco Pastorelli
  0 siblings, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2014-07-03  9:33 UTC (permalink / raw)
  To: buildroot

Dear Baruch Siach,

On Thu, 3 Jul 2014 12:24:20 +0300, Baruch Siach wrote:

> > What is the output of:
> > 
> > echo 'int main(void) {}' | arm-linux-gnueabihf-gcc -x c -o /dev/null
> >
> > on the problematic machine?
> 
> Forgot a dash. The command should be:
> 
> echo 'int main(void) {}' | arm-linux-gnueabihf-gcc -x c -o /dev/null -

You should maybe indicate that this has to be done with the
arm-linux-gnueabihf-gcc compiler downloaded and installed by Buildroot,
so:

	./output/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
  2014-07-03  9:33     ` Thomas Petazzoni
@ 2014-07-03 14:27       ` Marco Pastorelli
  2014-07-03 14:32         ` Baruch Siach
  2014-07-03 14:42         ` Thomas Petazzoni
  0 siblings, 2 replies; 12+ messages in thread
From: Marco Pastorelli @ 2014-07-03 14:27 UTC (permalink / raw)
  To: buildroot

Thanks guys for the valuable help!

here's the output:

$ echo 'int main(void) {}' |
./output/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc -x c -o
/dev/null -
/mnt/ocz-vector/projects/bb-buildroot-2014.05/output/host/opt/ext-toolchain/bin/../libexec/gcc/arm-linux-gnueabihf/4.8.3/cc1:
error while loading shared libraries: libz.so.1: cannot open shared object
file: No such file or directory

Marco.


2014-07-03 11:33 GMT+02:00 Thomas Petazzoni <
thomas.petazzoni@free-electrons.com>:

> Dear Baruch Siach,
>
> On Thu, 3 Jul 2014 12:24:20 +0300, Baruch Siach wrote:
>
> > > What is the output of:
> > >
> > > echo 'int main(void) {}' | arm-linux-gnueabihf-gcc -x c -o /dev/null
> > >
> > > on the problematic machine?
> >
> > Forgot a dash. The command should be:
> >
> > echo 'int main(void) {}' | arm-linux-gnueabihf-gcc -x c -o /dev/null -
>
> You should maybe indicate that this has to be done with the
> arm-linux-gnueabihf-gcc compiler downloaded and installed by Buildroot,
> so:
>
>         ./output/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140703/442da3bf/attachment.html>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
  2014-07-03 14:27       ` Marco Pastorelli
@ 2014-07-03 14:32         ` Baruch Siach
  2014-07-03 14:42         ` Thomas Petazzoni
  1 sibling, 0 replies; 12+ messages in thread
From: Baruch Siach @ 2014-07-03 14:32 UTC (permalink / raw)
  To: buildroot

Hi Marco,

On Thu, Jul 03, 2014 at 04:27:14PM +0200, Marco Pastorelli wrote:
> Thanks guys for the valuable help!
> 
> here's the output:
> 
> $ echo 'int main(void) {}' |
> ./output/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc -x c -o
> /dev/null -
> /mnt/ocz-vector/projects/bb-buildroot-2014.05/output/host/opt/ext-toolchain/bin/../libexec/gcc/arm-linux-gnueabihf/4.8.3/cc1:
> error while loading shared libraries: libz.so.1: cannot open shared object
> file: No such file or directory

I guess your host lacks a 32bit version of libz. Try installing the ia32-libs 
package.

baruch

> 2014-07-03 11:33 GMT+02:00 Thomas Petazzoni <
> thomas.petazzoni at free-electrons.com>:
> > On Thu, 3 Jul 2014 12:24:20 +0300, Baruch Siach wrote:
> >
> > > > What is the output of:
> > > >
> > > > echo 'int main(void) {}' | arm-linux-gnueabihf-gcc -x c -o /dev/null
> > > >
> > > > on the problematic machine?
> > >
> > > Forgot a dash. The command should be:
> > >
> > > echo 'int main(void) {}' | arm-linux-gnueabihf-gcc -x c -o /dev/null -
> >
> > You should maybe indicate that this has to be done with the
> > arm-linux-gnueabihf-gcc compiler downloaded and installed by Buildroot,
> > so:
> >
> >         ./output/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
  2014-07-03 14:27       ` Marco Pastorelli
  2014-07-03 14:32         ` Baruch Siach
@ 2014-07-03 14:42         ` Thomas Petazzoni
  2014-07-03 14:54           ` Baruch Siach
  1 sibling, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2014-07-03 14:42 UTC (permalink / raw)
  To: buildroot

Dear Marco Pastorelli,

On Thu, 3 Jul 2014 16:27:14 +0200, Marco Pastorelli wrote:

> here's the output:
> 
> $ echo 'int main(void) {}' |
> ./output/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc -x c -o
> /dev/null -
> /mnt/ocz-vector/projects/bb-buildroot-2014.05/output/host/opt/ext-toolchain/bin/../libexec/gcc/arm-linux-gnueabihf/4.8.3/cc1:
> error while loading shared libraries: libz.so.1: cannot open shared object
> file: No such file or directory

apt-get install zlib1g:i386

is what you need.

I think we need to add a check for this to tell the user in a clearer
way.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
  2014-07-03 14:42         ` Thomas Petazzoni
@ 2014-07-03 14:54           ` Baruch Siach
  2014-07-03 14:57             ` Thomas Petazzoni
  0 siblings, 1 reply; 12+ messages in thread
From: Baruch Siach @ 2014-07-03 14:54 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Thu, Jul 03, 2014 at 04:42:06PM +0200, Thomas Petazzoni wrote:
> On Thu, 3 Jul 2014 16:27:14 +0200, Marco Pastorelli wrote:
> 
> > here's the output:
> > 
> > $ echo 'int main(void) {}' |
> > ./output/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc -x c -o
> > /dev/null -
> > /mnt/ocz-vector/projects/bb-buildroot-2014.05/output/host/opt/ext-toolchain/bin/../libexec/gcc/arm-linux-gnueabihf/4.8.3/cc1:
> > error while loading shared libraries: libz.so.1: cannot open shared object
> > file: No such file or directory
> 
> apt-get install zlib1g:i386
> 
> is what you need.

I'm afraid Ubuntu 10.04 was not multi-arch enabled. That's why I suggested 
ia32-libs instead.

> I think we need to add a check for this to tell the user in a clearer
> way.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
  2014-07-03 14:54           ` Baruch Siach
@ 2014-07-03 14:57             ` Thomas Petazzoni
  2014-07-03 15:09               ` Baruch Siach
  0 siblings, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2014-07-03 14:57 UTC (permalink / raw)
  To: buildroot

Dear Baruch Siach,

On Thu, 3 Jul 2014 17:54:01 +0300, Baruch Siach wrote:

> > > 
> > > $ echo 'int main(void) {}' |
> > > ./output/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc -x c -o
> > > /dev/null -
> > > /mnt/ocz-vector/projects/bb-buildroot-2014.05/output/host/opt/ext-toolchain/bin/../libexec/gcc/arm-linux-gnueabihf/4.8.3/cc1:
> > > error while loading shared libraries: libz.so.1: cannot open shared object
> > > file: No such file or directory
> > 
> > apt-get install zlib1g:i386
> > 
> > is what you need.
> 
> I'm afraid Ubuntu 10.04 was not multi-arch enabled. That's why I suggested 
> ia32-libs instead.

Marco reported using 14.04 LTS.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
  2014-07-03 14:57             ` Thomas Petazzoni
@ 2014-07-03 15:09               ` Baruch Siach
  2014-07-03 16:06                 ` Marco Pastorelli
  2014-07-03 16:19                 ` Thomas Petazzoni
  0 siblings, 2 replies; 12+ messages in thread
From: Baruch Siach @ 2014-07-03 15:09 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Thu, Jul 03, 2014 at 04:57:50PM +0200, Thomas Petazzoni wrote:
> On Thu, 3 Jul 2014 17:54:01 +0300, Baruch Siach wrote:
> > > > $ echo 'int main(void) {}' |
> > > > ./output/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc -x c -o
> > > > /dev/null -
> > > > /mnt/ocz-vector/projects/bb-buildroot-2014.05/output/host/opt/ext-toolchain/bin/../libexec/gcc/arm-linux-gnueabihf/4.8.3/cc1:
> > > > error while loading shared libraries: libz.so.1: cannot open shared object
> > > > file: No such file or directory
> > > 
> > > apt-get install zlib1g:i386
> > > 
> > > is what you need.
> > 
> > I'm afraid Ubuntu 10.04 was not multi-arch enabled. That's why I suggested 
> > ia32-libs instead.
> 
> Marco reported using 14.04 LTS.

Right, of course. Sorry for the noise.

Related to this: why do we redirect stderr of the compiler invocation to 
/dev/null in check_arm_abi? We are not interested in the output itself as we 
only check whether the compiler runs successfully. When the test succeeds it 
should not output anything. Whereas in the failing case the output is very 
interesting.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
  2014-07-03 15:09               ` Baruch Siach
@ 2014-07-03 16:06                 ` Marco Pastorelli
  2014-07-03 16:19                 ` Thomas Petazzoni
  1 sibling, 0 replies; 12+ messages in thread
From: Marco Pastorelli @ 2014-07-03 16:06 UTC (permalink / raw)
  To: buildroot

Baurch, Thomas,

the problem is fixed, thank you so much!

Marco.

2014-07-03 17:09 GMT+02:00 Baruch Siach <baruch@tkos.co.il>:

> Hi Thomas,
>
> On Thu, Jul 03, 2014 at 04:57:50PM +0200, Thomas Petazzoni wrote:
> > On Thu, 3 Jul 2014 17:54:01 +0300, Baruch Siach wrote:
> > > > > $ echo 'int main(void) {}' |
> > > > > ./output/host/opt/ext-toolchain/bin/arm-linux-gnueabihf-gcc -x c -o
> > > > > /dev/null -
> > > > >
> /mnt/ocz-vector/projects/bb-buildroot-2014.05/output/host/opt/ext-toolchain/bin/../libexec/gcc/arm-linux-gnueabihf/4.8.3/cc1:
> > > > > error while loading shared libraries: libz.so.1: cannot open
> shared object
> > > > > file: No such file or directory
> > > >
> > > > apt-get install zlib1g:i386
> > > >
> > > > is what you need.
> > >
> > > I'm afraid Ubuntu 10.04 was not multi-arch enabled. That's why I
> suggested
> > > ia32-libs instead.
> >
> > Marco reported using 14.04 LTS.
>
> Right, of course. Sorry for the noise.
>
> Related to this: why do we redirect stderr of the compiler invocation to
> /dev/null in check_arm_abi? We are not interested in the output itself as
> we
> only check whether the compiler runs successfully. When the test succeeds
> it
> should not output anything. Whereas in the failing case the output is very
> interesting.
>
> baruch
>
> --
>      http://baruch.siach.name/blog/                  ~. .~   Tk Open
> Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140703/bd1fadea/attachment.html>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS
  2014-07-03 15:09               ` Baruch Siach
  2014-07-03 16:06                 ` Marco Pastorelli
@ 2014-07-03 16:19                 ` Thomas Petazzoni
  1 sibling, 0 replies; 12+ messages in thread
From: Thomas Petazzoni @ 2014-07-03 16:19 UTC (permalink / raw)
  To: buildroot

Dear Baruch Siach,

On Thu, 3 Jul 2014 18:09:14 +0300, Baruch Siach wrote:

> Related to this: why do we redirect stderr of the compiler invocation to 
> /dev/null in check_arm_abi? We are not interested in the output itself as we 
> only check whether the compiler runs successfully. When the test succeeds it 
> should not output anything. Whereas in the failing case the output is very 
> interesting.

Indeed, would make sense to not redirect stderr to give more clue to
the user about what's going on.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-07-03 16:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-03  9:05 [Buildroot] Incorrect ABI setting on ubuntu 14.04LTS Marco Pastorelli
2014-07-03  9:20 ` Baruch Siach
2014-07-03  9:24   ` Baruch Siach
2014-07-03  9:33     ` Thomas Petazzoni
2014-07-03 14:27       ` Marco Pastorelli
2014-07-03 14:32         ` Baruch Siach
2014-07-03 14:42         ` Thomas Petazzoni
2014-07-03 14:54           ` Baruch Siach
2014-07-03 14:57             ` Thomas Petazzoni
2014-07-03 15:09               ` Baruch Siach
2014-07-03 16:06                 ` Marco Pastorelli
2014-07-03 16:19                 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.