maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Upgrading gcc in scratchbox (https://talk.maemo.org/showthread.php?t=43944)

nowave7 2010-02-09 22:39

Upgrading gcc in scratchbox
 
Is there a way to upgrade the current gcc version, which is 4.2.1 at the moment, to say at least 4.3 in scratchbox?

nowave7 2010-02-10 10:40

Re: Upgrading gcc in scratchbox
 
Maybe I haven't been clear enough. I'm trying to build qemu-0.12.2 under scratchbox for target FREMANTLE_ARMEL, but it keeps failing to link because of the undefined reference to __builtin___clear_cache. This function is available in gcc starting from version 4.3.3.

danielwilms 2010-02-10 14:53

Re: Upgrading gcc in scratchbox
 
Hi,

Quote:

Originally Posted by nowave7 (Post 518489)
Is there a way to upgrade the current gcc version, which is 4.2.1 at the moment, to say at least 4.3 in scratchbox?

Sorry, but there is no official support for an upgraded or other compiler for the Fremantle SDK.

Cheers Daniel

DaveR53 2010-02-10 15:16

Re: Upgrading gcc in scratchbox
 
Is there anything special about the GCC in the SDK? could you not just install the Debian ARM GCC and use that?

Edit: Hmm, just apt-get installed gcc-4.3 in my scratchbox session, it seemed to install ok (after adding some updated libc stuff) but it fails to run:

Code:

sbox-arm-none-linux-gnueabi-gcc-4.3: No such file or directory
I'm guessing that when scratchbox calls gcc it runs it through a wrapper script or something.

nowave7 2010-02-11 10:19

Re: Upgrading gcc in scratchbox
 
Quote:

Originally Posted by DaveR53 (Post 519546)
Is there anything special about the GCC in the SDK? could you not just install the Debian ARM GCC and use that?

Edit: Hmm, just apt-get installed gcc-4.3 in my scratchbox session, it seemed to install ok (after adding some updated libc stuff) but it fails to run:

Code:

sbox-arm-none-linux-gnueabi-gcc-4.3: No such file or directory
I'm guessing that when scratchbox calls gcc it runs it through a wrapper script or something.

Exactly. It uses some sort of wrapper to call the gcc.
http://www.scratchbox.org/documentat...ain.html#AEN59
But, it also states that a user should be able to use a foreign toolchain, as stated here:
http://www.scratchbox.org/wiki/ForeignToolchains
I shall try this as soon as I get back home.


All times are GMT. The time now is 02:35.

vBulletin® Version 3.8.8