Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
arm-softfloat-linux-uclibc, any updated stage3 ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Tue Dec 29, 2009 12:14 pm    Post subject: arm-softfloat-linux-uclibc, any updated stage3 ? Reply with quote

hi
i need it for an embedded project

there is an old 2005 stage3, which is not pretty able to emerge things in order to make itself updated with the current portage tree, is there any modern (2007-2008) arm-softfloat-linux-uclibc-stage3 ?

regards
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Tue Dec 29, 2009 10:51 pm    Post subject: Reply with quote

--

Last edited by 96140 on Wed Sep 11, 2013 8:03 am; edited 1 time in total
Back to top
View user's profile Send private message
armin76
Developer
Developer


Joined: 24 Apr 2006
Posts: 173

PostPosted: Wed Dec 30, 2009 11:18 am    Post subject: Reply with quote

Nope there isn't
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Dec 30, 2009 1:18 pm    Post subject: Reply with quote

why not ?

how to produce it ?

I have an arm-v5-littleendian machine here, so i could chroot into the 2005-uclibc stage3 and arrange and native compile an upgrade from the 2005 uclibc stage3 to 2009's one

it's an amazing work!

yesterday i compiled gcc-4.1.2 (from gcc-3.4.4), uclibc, and a bit of devchain tools

i am in a trouble about digests, also a lot of ebuilds are not understood for the old portage's tool. I can't emerge bash, python, etc ... so i'd better look for and old portage tree and emerge things progressively ...

that's an amazing work !

any other good idea ?

also, anybody find this uclibc-stage3-2009 is useful for any project ?
Back to top
View user's profile Send private message
sera
Developer
Developer


Joined: 29 Feb 2008
Posts: 1006
Location: CET

PostPosted: Wed Dec 30, 2009 4:28 pm    Post subject: Reply with quote

If you want to upgrade from the old stage3, first upgrade portage to the latest stable.
You might need to "emerge portage --no-deps" first or use some other trickery.

But actually I would setup a cross emerge environment.
A good starting point for documentation is: http://gentoo.mindzoo.de/
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Dec 30, 2009 6:18 pm    Post subject: Reply with quote

sera wrote:
If you want to upgrade from the old stage3, first upgrade portage to the latest stable.


that is the problem ! it's not so easy!
Back to top
View user's profile Send private message
sera
Developer
Developer


Joined: 29 Feb 2008
Posts: 1006
Location: CET

PostPosted: Wed Dec 30, 2009 6:58 pm    Post subject: Reply with quote

I know and it won't be the only problematic update.

What's the issue? Is it the same as: http://forums.gentoo.org/viewtopic-p-5578709.html#5578709
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Thu Dec 31, 2009 10:15 pm    Post subject: Reply with quote

the problem is --nodep can't solve the problem: the old portage (emerge stuff, 2005) is not able to understand the modern portage tree (ebuilds), so --nodep is useless
Back to top
View user's profile Send private message
sera
Developer
Developer


Joined: 29 Feb 2008
Posts: 1006
Location: CET

PostPosted: Fri Jan 01, 2010 12:40 am    Post subject: Reply with quote

I assume you see the EAPI not supported message. (You have not even told us that much.)

Portage itself is EAPI 0 and therefore there is no way your portage from 2005 couldn't understand the ebuild of the current stable portage. You are running into issues with dependencies which can be avoided one or the other way.

Anyway look into cross emerge. It should be worth it.
Back to top
View user's profile Send private message
gubacsek
n00b
n00b


Joined: 19 Mar 2009
Posts: 13

PostPosted: Fri Sep 10, 2010 5:43 pm    Post subject: arm uclibc stage3 Reply with quote

Hi!

I'm trying to find an arm-unkown-linux-uclibc stage 3, because i would like to compile stuff for my andriod phone. I'm looking for it since 2 weeks now, without success. The only stage i found is that one from 2005, and after chrooting i couldn't update portage, just like in the post above.
I tryed to build the environment with uclibc's buildroot, but ... hmm... that is a huge mess for me. I know, that there are arm stages for gentoo, but all of them are built against glibc. I need uclibc, because (i was told) i can only compile static libraries with that. (with the glibc stage i couldn't compile ncurses as static, but that would be very important)

So if somebody could please help me, i would really appreciate it. You guys are probably able to build a stage3 for me, or explain how to use dynamic libraries, if the library paths are different (eg. /lib is /system/lib, /usr/lib is /system/usr/lib...).

Thanks in advance!
Back to top
View user's profile Send private message
armin76
Developer
Developer


Joined: 24 Apr 2006
Posts: 173

PostPosted: Sun Sep 12, 2010 5:27 pm    Post subject: Reply with quote

Gentoo's uclibc support on arm is a bit broken, so its impossible to build newer stage3's...sorry.
Back to top
View user's profile Send private message
gubacsek
n00b
n00b


Joined: 19 Mar 2009
Posts: 13

PostPosted: Mon Sep 13, 2010 6:13 am    Post subject: Reply with quote

armin76 wrote:
Gentoo's uclibc support on arm is a bit broken, so its impossible to build newer stage3's...sorry.



Well, this would at least explain why i couldn't do it :)
I'm really sad to hear this though.

Do you think i have any chance with the shared libs, and LD_LIBRARY_PATH stuff? My first try failed....
Back to top
View user's profile Send private message
lost-distance
n00b
n00b


Joined: 10 Apr 2003
Posts: 65

PostPosted: Sat Feb 26, 2011 2:45 pm    Post subject: Reply with quote

armin76 wrote:
Gentoo's uclibc support on arm is a bit broken, so its impossible to build newer stage3's...sorry.


I have succeeded in building arm-softfloat-linux-uclibc from the current gcc-4.4.4-r2 sources, after hacking one of its patch files.

I am not claiming that this is an authoritative fix, but it works for me.

New file /usr/portage/sys-devel/gcc/files/4.4.4/gcc-4.4.4-softfloat.patch:

Code:
--- gcc-4.4.4/gcc/config/arm/linux-elf.h        2011-02-12 17:59:07.806579464 +0000
+++ gcc-4.4.4/gcc/config/arm/linux-elf.h        2011-02-12 17:55:12.862579464 +0000
@@ -28,7 +28,7 @@
 #define TARGET_VERSION  fputs (" (ARM GNU/Linux with ELF)", stderr);
 
 #undef  TARGET_DEFAULT_FLOAT_ABI
-#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
+#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT
 
 /* TARGET_BIG_ENDIAN_DEFAULT is set in
    config.gcc for big endian configurations.  */
@@ -51,7 +51,7 @@
 
 #undef  MULTILIB_DEFAULTS
 #define MULTILIB_DEFAULTS \
-       { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
+       { "marm", "mlittle-endian", "msoft-float", "mno-thumb-interwork" }
 
 /* Now we define the strings used to build the spec file.  */
 #undef  LIB_SPEC
@@ -60,7 +60,7 @@
    %{shared:-lc} \
    %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
 
-#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
+#define LIBGCC_SPEC "-lgcc"
 
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
 
--- gcc-4.4.4/gcc/config/arm/t-linux    2011-02-12 21:24:45.802579464 +0000
+++ gcc-4.4.4/gcc/config/arm/t-linux    2011-02-12 21:26:48.014579464 +0000
@@ -4,7 +4,10 @@
 
 LIB1ASMSRC = arm/lib1funcs.asm
 LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
-       _arm_addsubdf3 _arm_addsubsf3
+       _arm_addsubdf3 _arm_addsubsf3 _arm_cmpdf2 _arm_cmpsf2 \
+       _arm_fixdfsi _arm_fixsfsi _arm_fixunsdfsi _arm_fixunssfsi \
+       _arm_muldivdf3 _arm_muldivsf3 _arm_negdf2 _arm_negsf2 \
+       _arm_truncdfsf2 _arm_unorddf2 _arm_unordsf2
 
 # MULTILIB_OPTIONS = mhard-float/msoft-float
 # MULTILIB_DIRNAMES = hard-float soft-float


Patch for file /usr/portage/sys-devel/gcc/gcc-4.4.4-r2.ebuild:

Code:
--- gcc-4.4.4-r2.ebuild 2011-02-13 05:01:25.000000000 +0000
+++ gcc-4.4.4-r2.ebuild 2011-02-26 14:36:24.451427001 +0000
@@ -78,7 +78,7 @@
 
        [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
 
-       [[ ${CTARGET} == *-softfloat-* ]] && epatch "${FILESDIR}"/4.4.0/gcc-4.4.0-softfloat.patch
+       [[ ${CTARGET} == *-softfloat-* ]] && epatch "${FILESDIR}"/4.4.4/gcc-4.4.4-softfloat.patch
 }
 
 pkg_setup() {
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum