This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: unable to build gcc 4.9.0 for i686-elf target with posix threads
- From: Andrew Haley <aph at redhat dot com>
- To: Ragnar Rüütel <ragnar dot ruutel at gmail dot com>, Jonathan Wakely <jwakely dot gcc at gmail dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 02 Jul 2014 14:42:11 +0100
- Subject: Re: unable to build gcc 4.9.0 for i686-elf target with posix threads
- Authentication-results: sourceware.org; auth=none
- References: <CAPY8rQUY-kc+VC-kaTCBzAERxUCDB2tAp_v4nT_nw6zbAcsstw at mail dot gmail dot com> <CAH6eHdTsazK8crz+HU4QXwUXqUc=PEc7ykO2MgSF5NR30afDmQ at mail dot gmail dot com> <CAPY8rQXp=+h-0UPEGDMfVmWR9UV-+WSuGDKmr5ukE3nm0JFuEQ at mail dot gmail dot com>
On 07/02/2014 02:36 PM, Ragnar Rüütel wrote:
>
> Thanks for the reply and I apologize for my ignorance.
>
> On Wed, Jul 2, 2014 at 4:00 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>> What do you mean by "generic linux binaries"?
>> With no dependency on a C library?
>> Why do you need "i686-elf" rather than e.g. i686-unknown-linux-gnu ?
>> What are you actually trying to do in the end?
>
> I need to create linux binaries of my tools that will run on any x86
> linux distribution. So I can compile them once and copy to other linux
> machines. As I understood i686-elf target should be best choice for
> this.
This is wrong. If you want your binaries to run on linux you must
specify a linux target when you configure gcc.
>> Why did you do this? The instructions you said you're following don't do this.
>> I no longer help people who install gmp, mpfr and mpc manually and ask for help.
>
> I wasn't aware that having gmp, mpfr and mpc inside gcc source
> directory doesn't have the same effect as using --with-gmp,
> --with-mpfr and -with-mpc. But that's a good point, I'll try it.
It's just harder, and you run the risk of version mismatches.
Andrew.