bmarkus
Posts: 32
Joined: Sat Sep 15, 2012 10:32 am

GCC build script?

Fri Oct 05, 2012 10:18 am

Hi,

is build script of GCC shipped available? I tried to find it with no success.

Thanks... Bela

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: GCC build script?

Fri Oct 05, 2012 12:33 pm

The compilers shippped in raspbian are built from debian source packages which are available from our repository in the usual manner.

I'm not sure how the cross-compilers the foundation supply were built.

bmarkus
Posts: 32
Joined: Sat Sep 15, 2012 10:32 am

Re: GCC build script?

Fri Oct 05, 2012 12:52 pm

I'm trying to build GCC 4.6.3/4.7.2 in SCRATCHBOX and in CT-NG environment. After reading many blog posts, GCC manual, etc. and trying different settings still no success. I can build program binaries, but it fails building shared libraries, usually with this xgcc related error
conftest.c:1:0: sorry, unimplemented: -mfloat-abi=hard and VFP
Same with different toolchains and on Raspbian native itself. So I'm curious how it is built.

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: GCC build script?

Fri Oct 05, 2012 1:45 pm

IIRC hardfloat support is a very new feature and requires some patching in release gcc versions.

Unfortunately I don't know exactly what the patches are because debian already selected and applied them. I just changed the defaults to build code suitable for the Pi.

bmarkus
Posts: 32
Joined: Sat Sep 15, 2012 10:32 am

Re: GCC build script?

Sun Oct 07, 2012 6:41 pm

Building 4.6.3 native on Raspbian with hardfloat now works without any patch.

Return to “Raspberry Pi OS”