Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274677 - crossdev --taget sparc-softfloat-linux-gnu fails (gcc:4.4.0 headers:2.6.27-r2 glibc:2.9_p20081201-r2)
Summary: crossdev --taget sparc-softfloat-linux-gnu fails (gcc:4.4.0 headers:2.6.27-r2...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-19 09:12 UTC by Sergey Mironov
Modified: 2009-06-22 14:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
cross-sparc-softfloat-linux-gnu-info.log (cross-sparc-softfloat-linux-gnu-info.log,11.21 KB, text/plain)
2009-06-19 09:14 UTC, Sergey Mironov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Mironov 2009-06-19 09:12:40 UTC
crossdev --taget sparc-softfloat-linux-gnu 

fails during building (linking) of glibc. 

Reproducible: Always

Steps to Reproduce:
1. emerge crossdev
2. crossdev --taget sparc-softfloat-linux-gnu 


Actual Results:  
glibc fails to build. The problem is

Expected Results:  
No errors.

tenten / # crossdev  --target sparc-softfloat-linux-gnu
--------------------------------------------------------------------------------------------------------------------
* Host Portage ARCH:     x86
* Target Portage ARCH:   sparc
* Target System:         sparc-softfloat-linux-gnu
* Stage:                 4 (C/C++ compiler)

* binutils:              binutils-[latest]
* gcc:                   gcc-[latest]
* headers:               linux-headers-[latest]
* libc:                  glibc-[latest]

* PORTDIR_OVERLAY:       /usr/local/portage
* PORT_LOGDIR:           /var/log/portage
* PKGDIR:                /usr/portage/packages/cross/sparc-softfloat-linux-gnu
* PORTAGE_TMPDIR:        /var/tmp/cross/sparc-softfloat-linux-gnu
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -
* Forcing the latest versions of {binutils,gcc}-config/gnuconfig...                                           [ ok ]
* Log: /var/log/portage/cross-sparc-softfloat-linux-gnu-binutils.log
* Emerging cross-binutils...                                                                                  [ ok ]
* Log: /var/log/portage/cross-sparc-softfloat-linux-gnu-linux-headers-quick.log
* Emerging cross-linux-headers-quick...                                                                       [ ok ]
* Log: /var/log/portage/cross-sparc-softfloat-linux-gnu-glibc-headers.log
* Emerging cross-glibc-headers...                                                                             [ ok ]
* Log: /var/log/portage/cross-sparc-softfloat-linux-gnu-gcc-stage1.log
* Emerging cross-gcc-stage1...                                                                                [ ok ]
* Log: /var/log/portage/cross-sparc-softfloat-linux-gnu-linux-headers.log
* Emerging cross-linux-headers...                                                                             [ ok ]
* Log: /var/log/portage/cross-sparc-softfloat-linux-gnu-glibc.log
* Emerging cross-glibc...

* glibc failed :(
* If you file a bug, please attach the following logfiles:
* /var/log/portage/cross-sparc-softfloat-linux-gnu-info.log
* /var/log/portage/cross-sparc-softfloat-linux-gnu-glibc.log
Comment 1 Sergey Mironov 2009-06-19 09:14:44 UTC
Created attachment 195149 [details]
cross-sparc-softfloat-linux-gnu-info.log
Comment 2 Sergey Mironov 2009-06-19 09:20:15 UTC
cross-sparc-softfloat-linux-gnu-glibc.log URL:

http://store.ierton.homelinux.net/tmp/cross-sparc-softfloat-linux-gnu-glibc.log
Comment 3 Sergey Mironov 2009-06-19 09:25:16 UTC
Here is examples of glibc buid error messages:

/var/tmp/cross/sparc-softfloat-linux-gnu/portage/cross-sparc-softfloat-linux-gnu/glibc-2.9_p20081201-r2/work/build-default-sparc-softfloat-linux-gnu-nptl/libc_pic.os: In function `modfl@GLIBC_2.0':
(.text+0x1657c): undefined reference to `__subdf3'

/var/tmp/cross/sparc-softfloat-linux-gnu/portage/cross-sparc-softfloat-linux-gnu/glibc-2.9_p20081201-r2/work/build-default-sparc-softfloat-linux-gnu-nptl/libc_pic.os: In function `scalbn':
(.text+0x1672c): undefined reference to `__muldf3'
Comment 4 Sergey Mironov 2009-06-22 14:42:24 UTC
I received an answer from Raúl Porcel via gentoo-embedded mailing list:

AFAIK gnueabi is only for ppc and ARM. Also softfloat(specifying it on
the CHOST on gentoo) is for arm only.

http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/SPARC-Options.html#SPARC-Options
You'll need to use -mno-fpu on the CFLAGS. And again, the -softfloat-
thing on the CHOST is gentoo-specific and only applies to ARM.

So i'm closing a bug.