Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] AVR32  build broken.
@ 2007-09-27  0:53 Ulf Samuelsson
  2007-09-27  1:11 ` [Buildroot] Endianness problem Leonid
  2007-09-27 22:12 ` [Buildroot] AVR32 build broken Bernhard Fischer
  0 siblings, 2 replies; 6+ messages in thread
From: Ulf Samuelsson @ 2007-09-27  0:53 UTC (permalink / raw)
  To: buildroot

The atngw100small also fails with the following error:

configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[2]: *** [configure-target-libiberty] Fel 1
make[2]: *** Inv?ntar oavslutade jobb...
make[1]: *** [all] Fel 2

This is the same error you get when you try to build the ARM with
softfloat.
Since the AVR32 does not have an FPU, this is always softfloat.

There is something screwed up with the linking process
when using the current trunk.

Not all libraries are found, so gcc configure
cannot link and this sets some flags resulting in the error above.

The ARM softfloat patch was trying to overcome the fact
that libgcc.a is not used/found by the uClibc build.
It allows uClibc build to complete, but gcc-final
still bombs out on the linking process
because crt1.o is not found.
Then the GCC_NO_EXECUTABLES is set, and 
when tested for this later, the build is terminated.

crt1.o is an x86 thing and should not affect arm or avr32
but it certainly does.

Have tried to find a workaround, but failed so far.

Until a solution is found, the www.ateml.no/buildroot
seems the way to go.
Once a solution is found, then ARM softfloat will probably 
work as well.

Using the external toolchain option would be one alternative.

BR
Ulf Samuelsson

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

* [Buildroot] Endianness problem
  2007-09-27  0:53 [Buildroot] AVR32 build broken Ulf Samuelsson
@ 2007-09-27  1:11 ` Leonid
  2007-09-27 22:12 ` [Buildroot] AVR32 build broken Bernhard Fischer
  1 sibling, 0 replies; 6+ messages in thread
From: Leonid @ 2007-09-27  1:11 UTC (permalink / raw)
  To: buildroot

Hi:

I am compiling buildroot for generic arm on i386 PC (see .config file
attached). uClibc compilation fails:

.............................
  LD libuClibc-0.9.29.so
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld:
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_udivsi3.o): compiled for a little endian
system and target is big endian
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld: failed to merge target specific data of file
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_udivsi3.o)
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld:
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_divsi3.o): compiled for a little endian
system and target is big endian
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld: failed to merge target specific data of file
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_divsi3.o)
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld:
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_umodsi3.o): compiled for a little endian
system and target is big endian
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld: failed to merge target specific data of file
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_umodsi3.o)
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld:
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_modsi3.o): compiled for a little endian
system and target is big endian
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld: failed to merge target specific data of file
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_modsi3.o)
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld:
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_dvmd_lnx.o): compiled for a little endian
system and target is big endian
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld: failed to merge target specific data of file
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_dvmd_lnx.o)
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld:
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_muldi3.o): compiled for a little endian
system and target is big endian
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld: failed to merge target specific data of file
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_muldi3.o)
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld:
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_divdi3.o): compiled for a little endian
system and target is big endian
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld: failed to merge target specific data of file
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_divdi3.o)
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld:
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_moddi3.o): compiled for a little endian
system and target is big endian
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld: failed to merge target specific data of file
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_moddi3.o)
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld:
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_clz.o): compiled for a little endian
system and target is big endian
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld: failed to merge target specific data of file
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/lib/gcc/ar
m-linux-uclibc/4.1.2/libgcc.a(_clz.o)
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld: BFD 2.17 assertion fail
/home/leonid/LM150/software/linux/rootfs/buildroot-atmel/toolchain_build
_arm_small/binutils-2.17/bfd/elf32-arm.c:3740
/home/leonid/LM150/software/linux/rootfs/arm-gcc-4.1.2-uclibc/bin/arm-li
nux-uclibc-ld: BFD 2.17 assertion fail
/home/leonid/LM150/software/linux/rootfs/buildroot-atmel/toolchain_build
_arm_small/binutils-2.17/bfd/elf32-arm.c:3740
make[2]: *** [lib/libc.so] Error 1
make[1]: *** [lib/libc.so.0] Error 2
make[1]: Leaving directory
`/home/leonid/LM150/software/linux/rootfs/buildroot-atmel/toolchain_buil
d_arm_small/uClibc-0.9.29'
make: ***
[/home/leonid/LM150/software/linux/rootfs/buildroot-atmel/toolchain_buil
d_arm_small/uClibc-0.9.29/lib/libc.a] Error 2

What can be a reason?

Thanks,

Leonid.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dot_config
Type: application/octet-stream
Size: 17589 bytes
Desc: dot_config
Url : http://busybox.net/lists/buildroot/attachments/20070926/2358b8be/attachment-0001.obj 

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

* [Buildroot] AVR32  build broken.
  2007-09-27  0:53 [Buildroot] AVR32 build broken Ulf Samuelsson
  2007-09-27  1:11 ` [Buildroot] Endianness problem Leonid
@ 2007-09-27 22:12 ` Bernhard Fischer
  2007-09-27 23:29   ` Ulf Samuelsson
  2007-09-28  6:53   ` Ulf Samuelsson
  1 sibling, 2 replies; 6+ messages in thread
From: Bernhard Fischer @ 2007-09-27 22:12 UTC (permalink / raw)
  To: buildroot

On Thu, Sep 27, 2007 at 02:53:26AM +0200, Ulf Samuelsson wrote:
>The atngw100small also fails with the following error:
>
>configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
>make[2]: *** [configure-target-libiberty] Fel 1
>make[2]: *** Inv?ntar oavslutade jobb...
>make[1]: *** [all] Fel 2
>
>This is the same error you get when you try to build the ARM with
>softfloat.

I cannot reproduce this. I've double-checked that the sample arm926t
(integrator CP, IIRC) builds and works fine with and without softfloat
(after deleting that wrong uClibc-0.9.29-soft-fp.patch, of course).

Can you reproduce this error with the provided defconfig in
target/device/ARM/integrator_whatever ?

>Since the AVR32 does not have an FPU, this is always softfloat.
>
>There is something screwed up with the linking process
>when using the current trunk.

We'll track it down.
>
>Not all libraries are found, so gcc configure
>cannot link and this sets some flags resulting in the error above.
>
>The ARM softfloat patch was trying to overcome the fact
>that libgcc.a is not used/found by the uClibc build.

This is not really an accurate approach i'd say (but i didn't look
closely), but i take it that you're aware of this.

Thanks,

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

* [Buildroot] AVR32  build broken.
  2007-09-27 22:12 ` [Buildroot] AVR32 build broken Bernhard Fischer
@ 2007-09-27 23:29   ` Ulf Samuelsson
  2007-09-28  6:53   ` Ulf Samuelsson
  1 sibling, 0 replies; 6+ messages in thread
From: Ulf Samuelsson @ 2007-09-27 23:29 UTC (permalink / raw)
  To: buildroot

fre 2007-09-28 klockan 00:12 +0200 skrev Bernhard Fischer:
> On Thu, Sep 27, 2007 at 02:53:26AM +0200, Ulf Samuelsson wrote:
> >The atngw100small also fails with the following error:
> >
> >configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
> >make[2]: *** [configure-target-libiberty] Fel 1
> >make[2]: *** Inv?ntar oavslutade jobb...
> >make[1]: *** [all] Fel 2
> >
> >This is the same error you get when you try to build the ARM with
> >softfloat.
> 
> I cannot reproduce this. I've double-checked that the sample arm926t
> (integrator CP, IIRC) builds and works fine with and without softfloat
> (after deleting that wrong uClibc-0.9.29-soft-fp.patch, of course).
> 
> Can you reproduce this error with the provided defconfig in
> target/device/ARM/integrator_whatever ?
> 
> >Since the AVR32 does not have an FPU, this is always softfloat.
> >
> >There is something screwed up with the linking process
> >when using the current trunk.
> 
> We'll track it down.
> >
> >Not all libraries are found, so gcc configure
> >cannot link and this sets some flags resulting in the error above.
> >
> >The ARM softfloat patch was trying to overcome the fact
> >that libgcc.a is not used/found by the uClibc build.
> 
> This is not really an accurate approach i'd say (but i didn't look
> closely), but i take it that you're aware of this.

uCLibc compiles with this, but not without this.
The compile does not complete so it does not make 
any sense to keep it.

I will try the integrator and see what is the difference.
Maybe it is related to the host?

BR
Ulf Samuelsson



> Thanks,

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

* [Buildroot] AVR32  build broken.
  2007-09-27 22:12 ` [Buildroot] AVR32 build broken Bernhard Fischer
  2007-09-27 23:29   ` Ulf Samuelsson
@ 2007-09-28  6:53   ` Ulf Samuelsson
  2007-09-28  7:37     ` Ulf Samuelsson
  1 sibling, 1 reply; 6+ messages in thread
From: Ulf Samuelsson @ 2007-09-28  6:53 UTC (permalink / raw)
  To: buildroot

fre 2007-09-28 klockan 00:12 +0200 skrev Bernhard Fischer:
> On Thu, Sep 27, 2007 at 02:53:26AM +0200, Ulf Samuelsson wrote:
> >The atngw100small also fails with the following error:
> >
> >configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
> >make[2]: *** [configure-target-libiberty] Fel 1
> >make[2]: *** Inv?ntar oavslutade jobb...
> >make[1]: *** [all] Fel 2
> >
> >This is the same error you get when you try to build the ARM with
> >softfloat.
> 
> I cannot reproduce this. I've double-checked that the sample arm926t
> (integrator CP, IIRC) builds and works fine with and without softfloat
> (after deleting that wrong uClibc-0.9.29-soft-fp.patch, of course).
> 

soft-float patch now removed from trunk

> Can you reproduce this error with the provided defconfig in
> target/device/ARM/integrator_whatever ?
> 


OK, Now I have built the integrator stuff as well,
and it builds well with soft-float!
Thanks for the tip.

The immediate difference I could see was
that the integrator is built using "arm926ejs"
instead of using "generic-arm" which I have used so far.
I will try to rebuild the integrator modified for "generic-arm"
and see how it goes.

Best Regards
Ulf Samuelsson

> >Since the AVR32 does not have an FPU, this is always softfloat.
> >
> >There is something screwed up with the linking process
> >when using the current trunk.
> 
> We'll track it down.
> >
> >Not all libraries are found, so gcc configure
> >cannot link and this sets some flags resulting in the error above.
> >
> >The ARM softfloat patch was trying to overcome the fact
> >that libgcc.a is not used/found by the uClibc build.
> 
> This is not really an accurate approach i'd say (but i didn't look
> closely), but i take it that you're aware of this.
> 
> Thanks,

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

* [Buildroot] AVR32  build broken.
  2007-09-28  6:53   ` Ulf Samuelsson
@ 2007-09-28  7:37     ` Ulf Samuelsson
  0 siblings, 0 replies; 6+ messages in thread
From: Ulf Samuelsson @ 2007-09-28  7:37 UTC (permalink / raw)
  To: buildroot

fre 2007-09-28 klockan 08:53 +0200 skrev Ulf Samuelsson:
> fre 2007-09-28 klockan 00:12 +0200 skrev Bernhard Fischer:
> > On Thu, Sep 27, 2007 at 02:53:26AM +0200, Ulf Samuelsson wrote:
> > >The atngw100small also fails with the following error:
> > >
> > >configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
> > >make[2]: *** [configure-target-libiberty] Fel 1
> > >make[2]: *** Inv?ntar oavslutade jobb...
> > >make[1]: *** [all] Fel 2
> > >
> > >This is the same error you get when you try to build the ARM with
> > >softfloat.
> > 
> > I cannot reproduce this. I've double-checked that the sample arm926t
> > (integrator CP, IIRC) builds and works fine with and without softfloat
> > (after deleting that wrong uClibc-0.9.29-soft-fp.patch, of course).
> > 
> 
> soft-float patch now removed from trunk
> 
> > Can you reproduce this error with the provided defconfig in
> > target/device/ARM/integrator_whatever ?
> > 
> 
> 
> OK, Now I have built the integrator stuff as well,
> and it builds well with soft-float!
> Thanks for the tip.
> 
> The immediate difference I could see was
> that the integrator is built using "arm926ejs"
> instead of using "generic-arm" which I have used so far.
> I will try to rebuild the integrator modified for "generic-arm"
> and see how it goes.

Integrator still works with "generic-arm" instead of "arm926ejs"
Next thing to try is EABI instead of OABI.

Best Regards
Ulf Samuelsson

> 
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot

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

end of thread, other threads:[~2007-09-28  7:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-27  0:53 [Buildroot] AVR32 build broken Ulf Samuelsson
2007-09-27  1:11 ` [Buildroot] Endianness problem Leonid
2007-09-27 22:12 ` [Buildroot] AVR32 build broken Bernhard Fischer
2007-09-27 23:29   ` Ulf Samuelsson
2007-09-28  6:53   ` Ulf Samuelsson
2007-09-28  7:37     ` Ulf Samuelsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox