This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problems building Binutils-2.25
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "Ellis N. Thomas" <ExtraLeveLInSoftware at ntlworld dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 9 Jun 2015 23:14:56 +0100
- Subject: Re: Problems building Binutils-2.25
- Authentication-results: sourceware.org; auth=none
- References: <F9ADD299-76E7-464C-A37A-5AE592B88CAF at ntlworld dot com> <CAH6eHdS300HLjsoJ4Th+caKAwJk+vfHhR0_z12VQT59Vp20s-Q at mail dot gmail dot com> <45D7234C-1333-45C2-9CDB-C564E0585368 at ntlworld dot com> <CAH6eHdQ+ZccdKxBnNXZ9H=S_wgUNGNC+D+seRzttrYfPpJqckA at mail dot gmail dot com> <D83E6A46-21C6-405D-A7FB-161B6C299279 at ntlworld dot com> <CAH6eHdS-PMfVv_pUFhLqVUHkp0w6WtHNmmvWV8=mp35CnqfVCw at mail dot gmail dot com>
On 9 June 2015 at 23:11, Jonathan Wakely wrote:
> On 9 June 2015 at 21:23, Ellis N. Thomas wrote:
>> Since my hardware remains the same from the time when I built gcc4.7.2 (only the
>> system software has been upgraded), is it possible to build "as" by specifying a target using
>> i386-apple-darwin13.4.0?
>
> I don't think so.
>
> You could try not using your gcc 4.7.2 (since it is configured and
> built for a different OS than the one you're running, which isn't
> likely to work well) and use the toolchain that comes with xtools
> instead.
>
> But I think the problem is that binutils just doesn't support your OS.
> You might just have to use the Apple linker and assembler that come
> with xtools.
Looking back over some IRC logs from a couple of months ago I can
confirm that binutils doesn't work on darwin, you need to use Apple's
"cctools" for the assembler and linker, and you should also use
Apple's compiler (which will be clang these days even if it pretends
to be gcc) not your gcc-4.7.2:
[Tuesday 21 Apr 2015] [09:55:32] <iains> it should just build
out-of-the-tin (but you can't avoid installing xcode, since that
provides the assembler, linker and boostrap compiler).