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)

misiak 2012-06-14 16:05

Re: gcc-4.6 and Fremantle, WIP
 
I will quote my post from Meecolay development thread, as marmistrz said it may be useful to you:
Quote:

Originally Posted by misiak (Post 1221878)
They even compared libc ! you can see there are 8 problems and 25 warnings in columns "Backward binary compatibility problems"! If we fix them, stock calendar app should work with newer libc:D

The site I'm talking about is http://linuxtesting.org/compatibilit...at_report.html . The report with problems for libc.so.6 is accessible here: http://linuxtesting.org/compatibilit..._Risk_Problems (if you click at "+" signs near functions, you will see the exact explanations of differences). This may explain why new libc crashes some apps ;)

szopin 2012-06-14 21:57

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by Android_808 (Post 1219403)
Something tells me that someone has already done something like this. I can't remember the exact page I found but this may be helpful:

https://wiki.mozilla.org/ReferencePl...ing/Nokia_N900

This just runs flash.py with standard images:

At this point you need to obtain the following files:

* moz-n900-vNN.ubi - mozilla custom firmware
* RX-51_2009SE_1.2009.41-1.VANILLA_PR_EMMC_MR0_ARM.bin
* RX-51_2009SE_2.2009.51-1_PR_COMBINED_MR0_ARM.bin

Except for OSX specific moz... it still flashes standard bins, or maybe I missed something. Still would be nice to create flashable images for exchange (full images, here try thumb2 CSSU with KP51testing and full SDK chroot, wait, use this Ubuntu12 with full -dev libs... hope this is not a dream)

Fabry 2012-06-18 23:25

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by Hurrian (Post 1219394)
Side note - GCC 4.7.0 is available. Anyone up to try that?

UbuntuArm 12.10 (Alpha) which uses GCC 4.7.x is faster then UbuntuArm 12.04 which uses GCC 4.6.x

http://www.phoronix.com/scan.php?pag...210_arm1&num=1

Not all performance increments are due only to newer GCC version, but surely the newer GCC plays a big role

Side note - GCC 4.7.1 with 100+ bug fixes is available

marmistrz 2012-06-19 16:26

Re: gcc-4.6 and Fremantle, WIP
 
I compiled newer libdsme0.2.0, for compatibility with meego.
Can anyone test it?

If there are any problems, you can try commenting out maemo-optify from debian/rules and recompiling it.

It's here: http://marmistrz.net63.net/public/dsme/

Mentalist Traceur 2012-06-20 05:40

Re: gcc-4.6 and Fremantle, WIP
 
Wow, finally caught up on this thread after my mostly-absense from TMO, and I am fascinated by how much progress has been made so far.

You know, on the one hand, I am disappointed with my failure to get involved in this, on the other hand, it seems like the entire endeavor of getting newer gcc, libc, etc, onto the N900 let alone getting to the point of succesfully replacing the older ones completely, is way out of my league.

I just want you all working on this to know I appreciate your work on this matter. If any of you take donations let me know, and in the meantime if/when I can, I will attempt to jump into this and contribute.

AapoRantalainen 2012-06-20 11:49

Re: gcc-4.6 and Fremantle, WIP
 
First testing of gcc-4.7.1. I don't have debs yet. I have only tested: 'gcc --version'.

Run on scratchbox1:
Code:

wget http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/gcc-4.7_4.7.1-1.diff.gz
wget http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/gcc-4.7_4.7.1.orig.tar.gz

gunzip gcc-4.7_4.7.1-1.diff.gz
tar xvf gcc-4.7_4.7.1.orig.tar.gz

mv gcc-4.7-4.7.1.orig gcc-4.7-4.7.1
patch -p 0 < gcc-4.7_4.7.1-1.diff
cd gcc-4.7-4.7.1/

---

#change distrelease
sed -i 's/:= sid/:= fremantle/g' debian/rules.defs

#no multiarch
sed -i 's/with_multiarch_lib := yes/with_multiarch_lib := no/g' debian/rules.defs
sed -i 's/multiarch_stage1 := yes/multiarch_stage1 := no/g' debian/rules.defs

#do not use gcc-4.4
sed -i 's/gcc-4.4/gcc/g' debian/rules2

#lower some build dependencies
sed -i 's/AUTO_BUILD_DEP += autoconf2.64, automake (>= 1:1.11), automake (<< 1:1.12),/AUTO_BUILD_DEP += autoconf, automake (>= 1:1.10), automake (<< 1:1.12),/g' debian/rules.conf

sed -i 's/make (>= 3.81)/make (>= 3.81) | make-3.81/g' debian/control.m4
sed -i 's/bison (>= 1:2.3)/bison (>= 1:2.3) | bison-2.4/g' debian/control.m4
sed -i 's/g++-4.4/g++/g' debian/control.m4

sed -i 's/autoconf2.64/autoconf/g' debian/control
sed -i 's/automake (>= 1:1.11)/automake/g' debian/control

#lower versions of documentation tools (and drop gsfonts-x11)
sed -i 's/doxygen (>= 1.7.2)/doxygen (>= 1.5.1)/g' debian/rules.conf
sed -i 's/gsfonts-x11, //g' debian/rules.conf
sed -i 's/doxygen (>= 1.7.2)/doxygen (>= 1.5.1)/g' debian/control
sed -i 's/gsfonts-x11, //g' debian/control

#lower some dependency-libraries
sed -i 's/GMP_BUILD_DEP = libgmp-dev (>= 2:5.0.1~),/GMP_BUILD_DEP = libgmp3-dev,/g' debian/rules.conf
sed -i 's/MPFR_BUILD_DEP = libmpfr-dev (>= 3.0.0-9~),/MPFR_BUILD_DEP = libmpfr-dev,/g' debian/rules.conf
sed -i 's/libelfg0-dev (>= 0.8.12),/libelfg0-dev,/g' debian/rules.conf

sed -i 's/libgmp-dev (>= 2:5.0.1~)/libgmp3-dev/g' debian/control
sed -i 's/libmpfr-dev (>= 3.0.0-9~)/libmpfr-dev/g' debian/control
sed -i 's/libelfg0-dev (>= 0.8.12)/libelfg0-dev/g' debian/control


#remove multilib
sed -i 's/GCC_MULTILIB_BUILD_DEP = g++-multilib \[\$(multilib_archs)\]/GCC_MULTILIB_BUILD_DEP =/g' debian/rules.conf


#lower dependencies on part2
sed -i 's/dpkg-dev (>= 1.16.0~ubuntu4)/dpkg-dev/g' debian/rules.conf
sed -i 's/dpkg-dev (>= 1.16.0~ubuntu4)/dpkg-dev/g' debian/control

sed -i 's/debhelper (>= 5.0.62)/debhelper/g' debian/control

#lower dependency of libc6
sed -i 's/libc6-dev (>= 2.13-5)/libc6-dev/g' debian/control
sed -i 's/libc_ver := 2.11/libc_ver := 2.5/g' debian/rules.conf
sed -i 's/libc6-dev (>= 2.13-31) \[armel armhf\]/libc6-dev [armel armhf]/g' debian/control
sed -i 's/libc6-dev (>= 2.13-31) \[armel armhf\]/libc6-dev [armel armhf]/g' debian/rules.conf

#do not use gnu-unique-object (GLIBC 2.11 or above)
sed -i 's/CONFARGS += --enable-gnu-unique-object/CONFARGS += --disable-gnu-unique-object/g' debian/rules2


#  This bug is marked invalid on upstream: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52218
#  and it is fixed on newer libc: http://sourceware.org/ml/libc-ports/2012-02/msg00079.htlibml

#add block to one existing/used patch-file
echo "
--- a/src/libgo/runtime/proc.c  2012-06-20 14:03:10.721499031 +0300
+++ b/src/libgo/runtime/proc.c  2012-06-20 14:03:41.421651325 +0300
@@ -111,7 +111,15 @@
 
 # else
 
-#  error unknown case for SETCONTEXT_CLOBBERS_TLS
+static inline void
+initcontext(void)
+{
+}
+
+static inline void
+fixcontext(ucontext_t *c __attribute__ ((unused)))
+{
+}
 
 # endif
" >> debian/patches/libgo-fix-arm.diff


#build
fakeroot dpkg-buildpackage


marmistrz 2012-06-20 13:21

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by Mentalist Traceur (Post 1224499)
Wow, finally caught up on this thread after my mostly-absense from TMO, and I am fascinated by how much progress has been made so far.

You know, on the one hand, I am disappointed with my failure to get involved in this, on the other hand, it seems like the entire endeavor of getting newer gcc, libc, etc, onto the N900 let alone getting to the point of succesfully replacing the older ones completely, is way out of my league.

I just want you all working on this to know I appreciate your work on this matter. If any of you take donations let me know, and in the meantime if/when I can, I will attempt to jump into this and contribute.

For donation link, look at my signature.
There'll be some more dsme packages, now I'm waiting whether the maintainer of libbme from gitorious adds debian/*
I'm uploading newer libiphb, the same link as here: http://talk.maemo.org/showpost.php?p...&postcount=114

zeq 2012-06-25 11:58

Re: gcc-4.6 and Fremantle, WIP
 
I've built scratchbox toolchains for the Maemo5 SDK based on Linaro 4.6/7-2012.06, they're available here:

http://www.snewbury.org.uk//maemo/li...armv7a.tar.bz2
and
http://www.snewbury.org.uk//maemo/li...armv7a.tar.bz2

Just unpack into "/scratchbox/compilers", and they'll appear in the list when setting up a target.

zeq 2012-06-26 06:54

Re: gcc-4.6 and Fremantle, WIP
 
Mainline gcc-4.6.3 is now also available at the same location.

marmistrz 2012-06-26 18:12

Re: gcc-4.6 and Fremantle, WIP
 
I'm trying to compile glib 2.28 from Harmattan, but the autotools are detected as too old, even though I installed automake1.10-autoconf264 and autoconf2.64.
What am I doing wrong?


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

vBulletin® Version 3.8.8