This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: 4.7.2 install fails on Raspberry Pi
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Bela Markus <bmarkus at hasix dot org>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 6 Mar 2013 09:30:39 +0000
- Subject: Re: 4.7.2 install fails on Raspberry Pi
- References: <5136CFC5.4020404@hasix.org>
On 6 March 2013 05:10, Bela Markus wrote:
> Hi,
>
> 4.7.2 installation fails on piCore Linux running on Raspberry Pi (ARM v6).
> Compiler is GCC 4.6.3, ppl/cloog not installed. Build script, running
> outside of source tree:
>
> --------------------------------------------------------------------------------------------------------
> #!/bin/sh
>
> export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
> export CFLAGS="-Os -pipe"
> export CXXFLAGS="-Os -pipe -fno-rtti -fno-exceptions"
> export LDFLAGS=""
>
> # Configure
>
> ../gcc-4.7.2/configure \
> --prefix=/usr/local \
> --enable-languages=c,c++ \
> --with-pkgversion=piCore \
> --enable-shared \
> --disable-multilib \
> --with-march=armv6 --with-fpu=vfp --with-float=hard \
> --disable-bootstrap
>
> # Build
>
> make
> --------------------------------------------------------------------------------------------------------
>
> It install 4.6.3 fine. However 4.7.2 fails in libgcc install with
>
> --------------------------------------------------------------------------------------------------------
> configure:3602: error: in
> `/mnt/mmcblk0p4/gcc-4.7.2/Build/armv6l-unknown-linux-gnueabihf/libgcc':
> configure:3605: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
> --------------------------------------------------------------------------------------------------------
>
> config.log attached.
>
> Any idea how to fix?
Did you look in config.log?
It shows the problem is:
conftest.c:1:0: sorry, unimplemented: -mfloat-abi=hard and VFP
Have you tried without that combination?