Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228119 - Gcc 4.3.1 fails to apply patch gcc-4.0.2-softfloat.patch
Summary: Gcc 4.3.1 fails to apply patch gcc-4.0.2-softfloat.patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Other
: Highest enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 246295 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-18 17:28 UTC by Vladimir Smirnov (RETIRED)
Modified: 2008-12-04 00:53 UTC (History)
7 users (show)

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


Attachments
Suggested fix (gcc-4.3.1-softfloat.patch,2.73 KB, text/plain)
2008-06-18 17:30 UTC, Vladimir Smirnov (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Smirnov (RETIRED) gentoo-dev 2008-06-18 17:28:10 UTC
Fails to apply when creating cross-compiler for armv5te-softfloat-linux-gnu
Comment 1 Vladimir Smirnov (RETIRED) gentoo-dev 2008-06-18 17:30:04 UTC
Created attachment 157473 [details]
Suggested fix

Should work.
Comment 2 SpanKY gentoo-dev 2008-06-19 00:51:27 UTC
i'm not going to update the softfloat patch until someone actually verifies the resulting toolchain works ... and i dont just mean "it compiled"
Comment 3 Vladimir Smirnov (RETIRED) gentoo-dev 2008-06-19 15:08:07 UTC
what kind of tests should I perform?
Will compilation and booting of kernel be enough?
Comment 4 SpanKY gentoo-dev 2008-06-21 04:10:56 UTC
building of a kernel would have no bearing at all.  floating point is never used in the kernel.  you would have to build up a userland with the toolchain and boot it and have it work.
Comment 5 Manuel Lauss 2008-08-25 12:25:17 UTC
In the meantine, could you please make it dependent on ARM only?  I'm constantly
tripping over this while building MIPS softfloat toolchains
Comment 6 Damien Thébault 2008-10-13 06:56:39 UTC
I used this patch to build armv-based systems (OpenMoko), and it's working nicely.
Comment 7 Sven 'sleipnir' Rebhan 2008-11-04 19:35:48 UTC
I used a toolchain with this bug for building a whole system (kernel+glibc+X+enlightenment) using a armv4tl toolchain including this patch
and can confirm it works like a charm.

Please apply!
Comment 8 Sven 'sleipnir' Rebhan 2008-11-04 19:36:59 UTC
(In reply to comment #7)
s/with this bug/with this patch/
Comment 9 SpanKY gentoo-dev 2008-11-10 17:03:52 UTC
*** Bug 246295 has been marked as a duplicate of this bug. ***
Comment 10 Alexey Shvetsov archtester gentoo-dev 2008-11-11 08:50:01 UTC
this works for 4.3.2 
and i'm been able to build full rootfs for armv4t and iwmmxt cpus
Comment 11 Robert Piasek (RETIRED) gentoo-dev 2008-11-26 11:22:45 UTC
any update on this one? It seems quite a few of use are using this patch without any problems.

Anyway you should remove the current patch or change it to use this one. Please do not leave known broken packages in portage tree.
Comment 12 Jacob Godserv 2008-11-26 13:54:40 UTC
The gentoo-arm-pandora project is using this patch. We'll report to you guys in a few months if our tests are successful on the real hardware, if that's what you need to continue. (We're currently waiting for the hardware to ship.)
Comment 13 Robert Piasek (RETIRED) gentoo-dev 2008-11-26 21:09:46 UTC
(In reply to comment #12)
> The gentoo-arm-pandora project is using this patch. We'll report to you guys in
> a few months if our tests are successful on the real hardware, if that's what
> you need to continue. (We're currently waiting for the hardware to ship.)
> 

1) Pandora is based on ARM® Cortex™-A8 (1) - which is ARMv7 (2)
2) as ARMv7 it's got hardware floating point unit (3)

So I don't know what "real" hardware are you talking about ... 
We are testing it on real hardware - CPU based on armv4


(1) http://openpandora.org/
(2) http://www.arm.com/products/CPUs/ARM_Cortex-A8.html
(3) http://www.arm.com/products/CPUs/architecture.html
Comment 14 Jacob Godserv 2008-11-29 16:30:00 UTC
Sorry, didn't mean to offend. I haven't heard anyone say "software works fine on <devicename>" yet, so if that is needed, I'm willing to help out. That's all.
Comment 15 Robert Piasek (RETIRED) gentoo-dev 2008-11-29 23:17:39 UTC
(In reply to comment #14)
> Sorry, didn't mean to offend. I haven't heard anyone say "software works fine
> on <devicename>" yet, so if that is needed, I'm willing to help out. That's
> all.
> 

Oh, I hope I didn't sound too harsh. I'm sorry if I did!

Of course you didn't offend me.

There are few people who are using this patch in on real hardware (comment 6, 7, 10).
This patch is very similar to current softfloat patch (4.0.2).

Comment 16 solar (RETIRED) gentoo-dev 2008-12-04 00:53:02 UTC
I needed this patch to build for a beagle.

cross-armv7a-softfloat-linux-gnueabi/binutils-2.18-r4
cross-armv7a-softfloat-linux-gnueabi/gcc-4.3.2
cross-armv7a-softfloat-linux-gnueabi/glibc-2.8_p20080602
cross-armv7a-softfloat-linux-gnueabi/linux-headers-2.6.27-r2

Working like a charm. Merged patch in gcc-4.3.2.. Thanks.