Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [buildroot 0001542]: arm gcc-4.1.2 + oabi + soft floats fails to build
@ 2007-10-19  8:19 bugs at busybox.net
  2007-10-19 18:37 ` Ivan Kuten
  0 siblings, 1 reply; 6+ messages in thread
From: bugs at busybox.net @ 2007-10-19  8:19 UTC (permalink / raw)
  To: buildroot


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1542 
====================================================================== 
Reported By:                hmoffatt
Assigned To:                buildroot
====================================================================== 
Project:                    buildroot
Issue ID:                   1542
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             10-19-2007 01:19 PDT
Last Modified:              10-19-2007 01:19 PDT
====================================================================== 
Summary:                    arm gcc-4.1.2 + oabi + soft floats fails to build
Description: 
gcc 4.1.2 fails to build for OABI with soft floats enabled, with references
to missing float functions.

The patch I supplied for gcc-4.2.1 works as-is for 4.1.2 also.
So copying toolchain/gcc/4.2.1/910-soft-float.patch to toolchain/gcc/4.1.2
will fix this.

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-19-07 01:19  hmoffatt       New Issue                                    
10-19-07 01:19  hmoffatt       Status                   new => assigned     
10-19-07 01:19  hmoffatt       Assigned To               => buildroot       
======================================================================

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

* [Buildroot] [buildroot 0001542]: arm gcc-4.1.2 + oabi + soft floats fails to build
  2007-10-19  8:19 [Buildroot] [buildroot 0001542]: arm gcc-4.1.2 + oabi + soft floats fails to build bugs at busybox.net
@ 2007-10-19 18:37 ` Ivan Kuten
  2007-10-19 19:14   ` Ulf Samuelsson
  2007-10-20  1:03   ` Hamish Moffatt
  0 siblings, 2 replies; 6+ messages in thread
From: Ivan Kuten @ 2007-10-19 18:37 UTC (permalink / raw)
  To: buildroot

> Summary:                    arm gcc-4.1.2 + oabi + soft floats fails to build
> Description: 
> gcc 4.1.2 fails to build for OABI with soft floats enabled, with references
> to missing float functions.
> 
> The patch I supplied for gcc-4.2.1 works as-is for 4.1.2 also.
> So copying toolchain/gcc/4.2.1/910-soft-float.patch to toolchain/gcc/4.1.2
> will fix this.
> 

Hi Hamish,

I tried to apply your patch 910-soft-float.patch

BR2_ARM_TYPE="ARM920T"
BR2_ARM_OABI=y
# BR2_ARM_EABI is not set
BR2_ARCH="arm"
..
BR2_GCC_VERSION_4_1_2=y
..
BR2_GCC_VERSION="4.1.2"
BR2_SOFT_FLOAT=y

It compiled successfully but

readelf -h build_arm/staging_dir/lib/libuClibc-0.9.29.so
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            ARM
  ABI Version:                       0
  Type:                              DYN (Shared object file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0xa520
  Start of program headers:          52 (bytes into file)
  Start of section headers:          525932 (bytes into file)
  Flags:                             0x202, has entry point, GNU EABI, software FP
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         6
  Size of section headers:           40 (bytes)
  Number of section headers:         23
  Section header string table index: 22


Seems I get anyway EABI not OABI. Can you confirm this?

seems like "arm gcc-4.1.2 + oabi + soft floats fails to build"
should be treated as "arm gcc-4.1.2 + EABI + soft floats fails to build" ?



Best regards,
Ivan
--------------------------------
Embedded Linux engineer,
Promwad Company: http://www.promwad.com/
Homepage : http://www.ivankuten.com/
--------------------------------

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

* [Buildroot] [buildroot 0001542]: arm gcc-4.1.2 + oabi + soft floats fails to build
  2007-10-19 18:37 ` Ivan Kuten
@ 2007-10-19 19:14   ` Ulf Samuelsson
  2007-10-19 20:28     ` Ivan Kuten
  2007-10-20  1:03   ` Hamish Moffatt
  1 sibling, 1 reply; 6+ messages in thread
From: Ulf Samuelsson @ 2007-10-19 19:14 UTC (permalink / raw)
  To: buildroot

----- Original Message ----- 
From: "Ivan Kuten" <ivan.kuten@promwad.com>
To: <hamish@cloud.net.au>
Cc: <buildroot@uclibc.org>
Sent: Friday, October 19, 2007 8:37 PM
Subject: Re: [Buildroot] [buildroot 0001542]: arm gcc-4.1.2 + oabi + soft 
floats fails to build


>> Summary:                    arm gcc-4.1.2 + oabi + soft floats fails to 
>> build
>> Description:
>> gcc 4.1.2 fails to build for OABI with soft floats enabled, with 
>> references
>> to missing float functions.
>>
>> The patch I supplied for gcc-4.2.1 works as-is for 4.1.2 also.
>> So copying toolchain/gcc/4.2.1/910-soft-float.patch to 
>> toolchain/gcc/4.1.2
>> will fix this.
>>
>
> Hi Hamish,
>
> I tried to apply your patch 910-soft-float.patch
>
> BR2_ARM_TYPE="ARM920T"
> BR2_ARM_OABI=y
> # BR2_ARM_EABI is not set
> BR2_ARCH="arm"
> ..
> BR2_GCC_VERSION_4_1_2=y
> ..
> BR2_GCC_VERSION="4.1.2"
> BR2_SOFT_FLOAT=y


> It compiled successfully but
>
> readelf -h build_arm/staging_dir/lib/libuClibc-0.9.29.so
> ELF Header:
>  Magic:   7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00
>  Class:                             ELF32
>  Data:                              2's complement, little endian
>  Version:                           1 (current)
>  OS/ABI:                            ARM
>  ABI Version:                       0
>  Type:                              DYN (Shared object file)
>  Machine:                           ARM
>  Version:                           0x1
>  Entry point address:               0xa520
>  Start of program headers:          52 (bytes into file)
>  Start of section headers:          525932 (bytes into file)
>  Flags:                             0x202, has entry point, GNU EABI, 
> software FP
>  Size of this header:               52 (bytes)
>  Size of program headers:           32 (bytes)
>  Number of program headers:         6
>  Size of section headers:           40 (bytes)
>  Number of section headers:         23
>  Section header string table index: 22
>
>
> Seems I get anyway EABI not OABI. Can you confirm this?

Once you have stored you ".config" the first time, the compiler
will not change OABI/EABI.
It will go for the string "linux-...-eabi" which is probably present in your 
.config

$ grep eabi .config

to check.


Best Regards
Ulf Samuelsson

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

* [Buildroot] [buildroot 0001542]: arm gcc-4.1.2 + oabi + soft floats fails to build
  2007-10-19 19:14   ` Ulf Samuelsson
@ 2007-10-19 20:28     ` Ivan Kuten
  0 siblings, 0 replies; 6+ messages in thread
From: Ivan Kuten @ 2007-10-19 20:28 UTC (permalink / raw)
  To: buildroot

Ulf Samuelsson wrote:
> ----- Original Message ----- 
> From: "Ivan Kuten" <ivan.kuten@promwad.com>
> To: <hamish@cloud.net.au>
> Cc: <buildroot@uclibc.org>
> Sent: Friday, October 19, 2007 8:37 PM
> Subject: Re: [Buildroot] [buildroot 0001542]: arm gcc-4.1.2 + oabi + soft 
> floats fails to build
> 
> 
>>> Summary:                    arm gcc-4.1.2 + oabi + soft floats fails to 
>>> build
>>> Description:
>>> gcc 4.1.2 fails to build for OABI with soft floats enabled, with 
>>> references
>>> to missing float functions.
>>>
>>> The patch I supplied for gcc-4.2.1 works as-is for 4.1.2 also.
>>> So copying toolchain/gcc/4.2.1/910-soft-float.patch to 
>>> toolchain/gcc/4.1.2
>>> will fix this.
>>>
>> Hi Hamish,
>>
>> I tried to apply your patch 910-soft-float.patch
>>
>> BR2_ARM_TYPE="ARM920T"
>> BR2_ARM_OABI=y
>> # BR2_ARM_EABI is not set
>> BR2_ARCH="arm"
>> ..
>> BR2_GCC_VERSION_4_1_2=y
>> ..
>> BR2_GCC_VERSION="4.1.2"
>> BR2_SOFT_FLOAT=y
> 
> 
>> It compiled successfully but
>>
>> readelf -h build_arm/staging_dir/lib/libuClibc-0.9.29.so
>> ELF Header:
>>  Magic:   7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00
>>  Class:                             ELF32
>>  Data:                              2's complement, little endian
>>  Version:                           1 (current)
>>  OS/ABI:                            ARM
>>  ABI Version:                       0
>>  Type:                              DYN (Shared object file)
>>  Machine:                           ARM
>>  Version:                           0x1
>>  Entry point address:               0xa520
>>  Start of program headers:          52 (bytes into file)
>>  Start of section headers:          525932 (bytes into file)
>>  Flags:                             0x202, has entry point, GNU EABI, 
>> software FP
>>  Size of this header:               52 (bytes)
>>  Size of program headers:           32 (bytes)
>>  Number of program headers:         6
>>  Size of section headers:           40 (bytes)
>>  Number of section headers:         23
>>  Section header string table index: 22
>>
>>
>> Seems I get anyway EABI not OABI. Can you confirm this?
> 
> Once you have stored you ".config" the first time, the compiler
> will not change OABI/EABI.
> It will go for the string "linux-...-eabi" which is probably present in your 
> .config
> 
> $ grep eabi .config
> 
> to check.
> 
> 
> Best Regards
> Ulf Samuelsson
> 

Ulf,

I have these - which resemble your "linux-...-eabi" prefix:

BR2_GNU_BUILD_SUFFIX="pc-linux-gnu"
BR2_GNU_TARGET_SUFFIX="linux-uclibc"

and this :

# BR2_ARM_EABI is not set

which is commented out.

No lower case "eabi" at all.


Best regards,
Ivan
--------------------------------
Embedded Linux engineer,
Promwad Company: http://www.promwad.com/
Homepage : http://www.ivankuten.com/
--------------------------------

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

* [Buildroot] [buildroot 0001542]: arm gcc-4.1.2 + oabi + soft floats fails to build
  2007-10-19 18:37 ` Ivan Kuten
  2007-10-19 19:14   ` Ulf Samuelsson
@ 2007-10-20  1:03   ` Hamish Moffatt
  1 sibling, 0 replies; 6+ messages in thread
From: Hamish Moffatt @ 2007-10-20  1:03 UTC (permalink / raw)
  To: buildroot

On Fri, Oct 19, 2007 at 09:37:40PM +0300, Ivan Kuten wrote:
> It compiled successfully but
> 
> readelf -h build_arm/staging_dir/lib/libuClibc-0.9.29.so
> ELF Header:
>   Magic:   7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00
>   Class:                             ELF32
>   Data:                              2's complement, little endian
>   Version:                           1 (current)
>   OS/ABI:                            ARM
>   ABI Version:                       0
>   Type:                              DYN (Shared object file)
>   Machine:                           ARM
>   Version:                           0x1
>   Entry point address:               0xa520
>   Start of program headers:          52 (bytes into file)
>   Start of section headers:          525932 (bytes into file)
>   Flags:                             0x202, has entry point, GNU EABI, software FP
> 
> 
> Seems I get anyway EABI not OABI. Can you confirm this?

Hmm. readelf tells me the same thing, but "objdump -p" says otherwise.

[10:58AM] hamish at bach:staging_dir/usr/lib $ ../bin/armeb-linux-objdump -p libuClibc-0.9.29.so

libuClibc-0.9.29.so:     file format elf32-bigarm

Program Header:
    PHDR off    0x00000034 vaddr 0x00000034 paddr 0x00000034 align 2**2
         filesz 0x000000c0 memsz 0x000000c0 flags r-x
  INTERP off    0x000378f8 vaddr 0x000378f8 paddr 0x000378f8 align 2**3
         filesz 0x00000018 memsz 0x00000018 flags r--
    LOAD off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**15
         filesz 0x00037910 memsz 0x00037910 flags r-x
    LOAD off    0x00037ce4 vaddr 0x0003fce4 paddr 0x0003fce4 align 2**15
         filesz 0x0000067c memsz 0x00004834 flags rw-
 DYNAMIC off    0x00037dd8 vaddr 0x0003fdd8 paddr 0x0003fdd8 align 2**2
         filesz 0x000000b8 memsz 0x000000b8 flags rw-
   RELRO off    0x00037ce4 vaddr 0x0003fce4 paddr 0x0003fce4 align 2**0
         filesz 0x0000031c memsz 0x0000031c flags r--

Dynamic Section:
  NEEDED      ld-uClibc.so.0
  SONAME      libc.so.0
  INIT        0x32f10
  HASH        0xf4
  STRTAB      0x5970
  SYMTAB      0x1930
  STRSZ       0x260d
  SYMENT      0x10
  PLTGOT      0x3fe90
  PLTRELSZ    0x160
  PLTREL      0x11
  JMPREL      0x83a8
  REL         0x7f80
  RELSZ       0x428
  RELENT      0x8
  BIND_NOW    0x0
  FLAGS_1     0x1
  RELCOUNT    0x5b
private flags = 202: [APCS-32] [FPA float format] [software FP] [has entry point]

APCS-32 is OABI, while EABI shows as AAPCS.

readelf tells me EABI for binaries built with an old gcc-3.4.4 too.


Hamish
-- 
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>

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

* [Buildroot] [buildroot 0001542]: arm gcc-4.1.2 + oabi + soft floats fails to build
@ 2007-10-20 18:24 bugs at busybox.net
  0 siblings, 0 replies; 6+ messages in thread
From: bugs at busybox.net @ 2007-10-20 18:24 UTC (permalink / raw)
  To: buildroot


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1542 
====================================================================== 
Reported By:                hmoffatt
Assigned To:                buildroot
====================================================================== 
Project:                    buildroot
Issue ID:                   1542
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             10-19-2007 01:19 PDT
Last Modified:              10-20-2007 11:24 PDT
====================================================================== 
Summary:                    arm gcc-4.1.2 + oabi + soft floats fails to build
Description: 
gcc 4.1.2 fails to build for OABI with soft floats enabled, with references
to missing float functions.

The patch I supplied for gcc-4.2.1 works as-is for 4.1.2 also.
So copying toolchain/gcc/4.2.1/910-soft-float.patch to toolchain/gcc/4.1.2
will fix this.

====================================================================== 

---------------------------------------------------------------------- 
 vanokuten - 10-20-07 11:24  
---------------------------------------------------------------------- 
fixed in svn 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-19-07 01:19  hmoffatt       New Issue                                    
10-19-07 01:19  hmoffatt       Status                   new => assigned     
10-19-07 01:19  hmoffatt       Assigned To               => buildroot       
10-20-07 11:24  vanokuten      Status                   assigned => closed  
10-20-07 11:24  vanokuten      Note Added: 0002851                          
======================================================================

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

end of thread, other threads:[~2007-10-20 18:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19  8:19 [Buildroot] [buildroot 0001542]: arm gcc-4.1.2 + oabi + soft floats fails to build bugs at busybox.net
2007-10-19 18:37 ` Ivan Kuten
2007-10-19 19:14   ` Ulf Samuelsson
2007-10-19 20:28     ` Ivan Kuten
2007-10-20  1:03   ` Hamish Moffatt
  -- strict thread matches above, loose matches on Subject: below --
2007-10-20 18:24 bugs at busybox.net

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