This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unable to build gcc 4.9.0 for i686-elf target with posix threads


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]