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)

AapoRantalainen 2012-06-26 18:34

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by marmistrz (Post 1227831)
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?

Yes, I have tried and messed with these without deep understanding. I confess these are packages by me. I can't find my sources for them, but I think they have something wrong.

I think you can install automake from extras-devel and it contains /usr/bin/automake-1.10 (1.10.1).

I have used/I'm using autoconf-2.68 copied from my Ubuntu.

Ugly (but working?):
Code:

sudo cp /usr/bin/autoconf /scratchbox/users/`whoami`/targets/FREMANTLE_ARMEL/usr/bin/autoconf
Not sure what else it needs, maybe all these:
Code:

/usr/bin/autoscan
/usr/bin/autoheader
/usr/bin/autoreconf
/usr/bin/ifnames
/usr/bin/autom4te
/usr/bin/autoupdate
/usr/bin/autoconf

Some of them are also in different path, so you must delete them, or overwrite old symlinks. e.g
Code:

sudo cp /usr/bin/autom4te /scratchbox/devkits/autotools-legacy/bin/autom4te

marmistrz 2012-06-27 15:17

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by AapoRantalainen (Post 1227847)
Yes, I have tried and messed with these without deep understanding. I confess these are packages by me. I can't find my sources for them, but I think they have something wrong.

I think you can install automake from extras-devel and it contains /usr/bin/automake-1.10 (1.10.1).

I have used/I'm using autoconf-2.68 copied from my Ubuntu.

Ugly (but working?):
Code:

sudo cp /usr/bin/autoconf /scratchbox/users/`whoami`/targets/FREMANTLE_ARMEL/usr/bin/autoconf
Not sure what else it needs, maybe all these:
Code:

/usr/bin/autoscan
/usr/bin/autoheader
/usr/bin/autoreconf
/usr/bin/ifnames
/usr/bin/autom4te
/usr/bin/autoupdate
/usr/bin/autoconf

Some of them are also in different path, so you must delete them, or overwrite old symlinks. e.g
Code:

sudo cp /usr/bin/autom4te /scratchbox/devkits/autotools-legacy/bin/autom4te

Could you please package the newer autotools (autoconf >= 2.64 but overriding the scrathcbox autoconf, automake >= 1.10 but overriding the scratchbox automake)? You must be good at it as you made a lot of ports ;)



Thanks

AapoRantalainen 2012-06-30 18:48

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by marmistrz (Post 1228234)
Could you please package the newer autotools...

I have tried that and there were some problems, can't remember what, maybe they all related to the autobuilder. But maybe it is possible to do package locally and share it outside of extras. I can't do that until end part of of July.

marmistrz 2012-07-01 09:58

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by AapoRantalainen (Post 1229523)
I have tried that and there were some problems, can't remember what, maybe they all related to the autobuilder. But maybe it is possible to do package locally and share it outside of extras. I can't do that until end part of of July.

OK. Do you still have the sources adapted for Maemo? I may try to compile them locally.

AapoRantalainen 2012-07-01 11:21

Re: gcc-4.6 and Fremantle, WIP
 
Quote:

Originally Posted by marmistrz (Post 1229702)
OK. Do you still have the sources adapted for Maemo? I may try to compile them locally.

Seems I have lost my trials. Of course 'apt-get source' will give what is pushed to the extras-devel, but they might be totally useless.

Best bet is: http://packages.debian.org/wheezy/autoconf
m4 is slightly too low ( 1.4.13 > 1.4.8-2)

And for automake: http://packages.debian.org/wheezy/automake
Where dpkg is too low (1.15.4 > 1.14.25maemo3+0m5)

I can't say would it be better to use old m4 and dpkg or pack them also. (I guess using older versions is better, because new autoconf/automake can be *used* with current m4/dpkg).

marmistrz 2012-07-07 11:46

Re: gcc-4.6 and Fremantle, WIP
 
I'm still trying to port applauncher for normal usage, not only for meecolay as this could diminish the problem of too low amount of RAM in N900 (with applauncher the libraries are shared). Could you take a look at this: http://talk.maemo.org/showpost.php?p...7&postcount=40

marmistrz 2012-07-15 11:40

Re: gcc-4.6 and Fremantle, WIP
 
I've compiled newer sqlite3, could you please test it on-device?
If it's ok, I'll push it to the repos.
I renamed debian/*.symbols as it caused problems.

http://marmistrz.net63.net/meecolay/sqlite3/

marmistrz 2012-07-22 20:19

Re: gcc-4.6 and Fremantle, WIP
 
Has anyone tried porting newer libtool ( >= 2.2)?
I tried building the one from Harmattan but I've got very strange problems (as disappearing Makefile.in)

AapoRantalainen 2012-09-24 20:17

Re: gcc-4.6 and Fremantle, WIP
 
Back to Topic.
I'm not sure is there any package on extras-devel using gcc-4.6 or g++4.6.

But here comes instructions how to use g++-4.6 with autobuilder.
1) debian/control
-Architecture: any
+Architecture: armel
(because compiler on builder is only arm-to-arm)

2) debian/control
+Build-Depends: g++-4.6, binutils2.22
(because g-4.6 needs binutils2.22)

3) debian/control
+Depends: libstdc++6 (>4.6.1)
(I hope this will not break existing applications. I have tested only with one device and didn't seen any failures)

4) Makefile (or configure, configure.ac ...)
-CXX = g++
+CXX = g++-4.6
+LDFLAGS += -B /usr/binutils2.22/bin
(This works better than tuning PATH during debian/rules with PATH=/usr/binutils2.22/bin:$PATH)

----
And I'm slipping topic again, but seems same approach could work even builder has gcc-4.7 (maybe even +thumb).

marmistrz 2013-02-07 19:19

Re: gcc-4.6 and Fremantle, WIP
 
I rebuilt libc6. Still causes the same problems (broken locales and Calendar crashing) but now with source. And less changed than the previous. (only hard changed to softfp)

http://marmistrz.net63.net/public/libc-new/


All times are GMT. The time now is 19:06.

vBulletin® Version 3.8.8