- To: Roman Suvorov <4rvs19@xxxxxxxxx>
- Subject: Re: compiling gcc 2.95.3 under ubuntu 10.04.2, x86_64
- From: Jonathan Wakely <jwakely.gcc@xxxxxxxxx>
- Date: Tue, 3 Apr 2012 19:21:23 +0100
- Cc: Richard Guenther <richard.guenther@xxxxxxxxx>, gcc-help <gcc-help@xxxxxxxxxxx>
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <0DBE26B8-D374-4A03-A9D2-CFA70B62453C@gmail.com>
Please move this thread to gcc-help, thanks,
On 3 April 2012 18:54, Roman Suvorov wrote:
> Hi Richard,
> Could you please provide some more instructions on how you got your 2.95 build using GCC 3?
>
> I just tried using GCC 3.4.6 (from http://packages.ubuntu.com/hardy/amd64/gcc-3.4-base/download) and build from source using this command:
You can't just take a single file from the package and expect it to
work, you need to install the whole package or install 3.4.6 properly,
i.e. by building it from source.
> CC=../gcc-3.4/bin/gcc-3.4 CFLAGS=-D_FORTIFY_SOURCE=0 ./configure --
prefix=~/gcc-2.95.3 --enable-languages=c,c++ --enable-threads=posix
--enable-shared --host i386-pc-linux-gnu
You haven't read the installation docs.
Do not run ./configure, build in a separate directory.
You probably want to use --prefix=$HOME/gcc-2.95.3 because the shell
won't expand ~ in the middle of a word like that.
You don't need to use --enable-threads=posix or --enable-shared, those
are enabled by default on GNU/Linux.
You're missing a '=' after --host (not sure if that matters though)
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]