maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   gcc-4.6 and Fremantle, WIP (https://talk.maemo.org/showthread.php?t=81861)

szopin 2012-06-04 20:06

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by marmistrz (Post 1216853)
Can you try whether it boots with kernel-power, then if yes, without kp and with CSSU?

With CSSU and without KP? Is that even possible... not sure, but iirc KP was installed as part of CSSU which made people compliment the latter for >7days uptime and few other things. GCC/++ 4.6 installs fine with latest kp, gonna check CSSU next, but your libc(6) and libc-bin(is this even for anything) seem to have serious issues alone at this time. Keep it up guys, this looks extremely promising.

marmistrz 2012-06-04 21:44

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by szopin (Post 1217451)
With CSSU and without KP? Is that even possible... not sure, but iirc KP was installed as part of CSSU which made people compliment the latter for >7days uptime and few other things. GCC/++ 4.6 installs fine with latest kp, gonna check CSSU next, but your libc(6) and libc-bin(is this even for anything) seem to have serious issues alone at this time. Keep it up guys, this looks extremely promising.

thx for testing

The best way out now would be making it work in other path, e.g. /opt/meecolay/lib.
But this one gives seg fault.
What may cause this?

On the way from home I had a bit free time and I realized that newer libc6 is required by libaegis-crypto. some Apps wont work without it, e.g. forum-tmo

PS. I'm not at home so my internet access is limited.

szopin 2012-06-04 22:04

Re: gcc-4.6 and Fremantle, WIP
 
Critical bins/libs (lib(stdc++)c, libglib... all pretty much are) might expect to be placed in static dirs. Segfaulting when accessing ../etc which is not in /opt/../ could be a thing. Same for optifying -dev packages, good luck building something on multilayered symbolic links. Please try incorporating thumb errata when building libc(6) in any case. If that is an option of course

marmistrz 2012-06-07 18:43

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by szopin (Post 1217510)
Critical bins/libs (lib(stdc++)c, libglib... all pretty much are) might expect to be placed in static dirs. Segfaulting when accessing ../etc which is not in /opt/../ could be a thing. Same for optifying -dev packages, good luck building something on multilayered symbolic links. Please try incorporating thumb errata when building libc(6) in any case. If that is an option of course

Sorry, but what is a thumb errata? I haven't heard about something like this?

Hurrian 2012-06-08 01:09

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by marmistrz (Post 1219102)
Sorry, but what is a thumb errata? I haven't heard about something like this?

It's faults in the CPU design that have workarounds in software published by the manufacturer.

Temporal 2012-06-08 06:36

Re: gcc-4.6 and Fremantle, WIP
 
Before installing gcc4.6 I had 20mb of rootfs space.
After, just 2mb. Apt-clean got me back to 9mb, but this didn't cut for me.

Is it ok? I mean, should it use 10mb of rootfs space?

marmistrz 2012-06-08 09:03

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by Hurrian (Post 1219215)
It's faults in the CPU design that have workarounds in software published by the manufacturer.

OK, thx.
Could you give some practical examples?

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

By the way, I think I know what may be the problem in runtime!
There was an option
Code:

-mfloat-abi=hard and VFP
Is there some code at all that won't run properly without that option??

Btw. I'll try compiling with gcc4.6, as this was compiled with gcc4.2. This may cause problems too.

ivgalvez 2012-06-08 09:41

Re: gcc-4.6 and Fremantle, WIP
 
Thumb2 is an extension on ARM architecture that basically allows binaries and libraries to be smaller.

Our TI processor has a bug that didn't allow Thumb2 compiled binaries to run properly (they crash). To avoid that, a workaround (the errata) must be introduced in the kernel.

freemangordon is now leading an effort to build CSSU with community kernel with Thumb2 enabled.

Until then, you won't be able to use any Thumb2 binary in Fremantle.

To build properly in Fremantle, you need to deactivate hardfp and thumb2 in compiler flags.

AapoRantalainen 2012-06-08 10:15

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by Temporal (Post 1219292)
Before installing gcc4.6 I had 20mb of rootfs space.
After, just 2mb. Apt-clean got me back to 9mb, but this didn't cut for me.

Is it ok? I mean, should it use 10mb of rootfs space?

Compiler is not optified (yet?). It was intended for SDK (scratchbox and autobuilder).

Hurrian 2012-06-08 10:41

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by marmistrz (Post 1219349)
By the way, I think I know what may be the problem in runtime!
There was an option
Code:

-mfloat-abi=hard and VFP
Is there some code at all that won't run properly without that option??

Btw. I'll try compiling with gcc4.6, as this was compiled with gcc4.2. This may cause problems too.

Using this switch will probably result in spontaneous reboots and/or system crashes. IIRC, Fremantle is built with mfloat-abi=softfp.

(Using -mfp=vfp is fine, as the OMAP supports that, and there have been no crashes reported from using the floating point unit. You may want to try -mfp=vfpv3 though, as we also apparently support that)

Side note - GCC 4.7.0 is available. Anyone up to try that?


All times are GMT. The time now is 14:59.

vBulletin® Version 3.8.8