This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -arch: not found
- From: Nick Leli <nicholasleli at gmail dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 6 Jan 2017 09:14:18 -0800
- Subject: Re: -arch: not found
- Authentication-results: sourceware.org; auth=none
- References: <CALn2uu3DUnbsSMRympm3M8S56SYTpiT5=7UuVngkFGE9tv5N4A@mail.gmail.com> <CAH6eHdQ96S=gs2EOK7ngXOjZyhJ3c07jL1d0-sSzsxksW2=Hug@mail.gmail.com> <CALn2uu2t1oATw+_BGtfCN5QkyKm2XW6kGGVeV98JERcd_HK70g@mail.gmail.com> <CAH6eHdTxKs_RqnUdSvigLk9_FT28FVrmmxFWGk7+eYCXt-jX0A@mail.gmail.com>
Thanks for the insight Jonathan. I saw some references eluding to
this but wasn't sure if it was correct. I'll poke around the Xcode
command line tools more.
Nick
On Fri, Jan 6, 2017 at 9:08 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 6 January 2017 at 15:31, Nick Leli <nicholasleli@gmail.com> wrote:
>> Hi Jonathan,
>>
>> I was suspecting the missing assembler too as I did not see the *-as file in
>> the $PREFIX/bin directory. To add more color to this, I have:
>>
>> 1. Run the contrib/download_prerequisites script
>> 2. Configured binutils with ../binutils-2.27/configure --target=$TARGET
>> --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror
>> 3. Run `make` and `make install` in the new `build-binutils` directory
>>
>> Is there a specific flag to create the assembler in the binutils config?
>>
>> These are the files found in my new $PREFIX/bin directory:
>> x86_64-apple-darwin15.6.0-addr2line
>> x86_64-apple-darwin15.6.0-readelf
>> x86_64-apple-darwin15.6.0-ar
>> x86_64-apple-darwin15.6.0-size
>> x86_64-apple-darwin15.6.0-c++filt
>> x86_64-apple-darwin15.6.0-strings
>> x86_64-apple-darwin15.6.0-elfedit
>> x86_64-apple-darwin15.6.0-strip
>> x86_64-apple-darwin15.6.0-nm
>> x86_64-apple-darwin15.6.0-objcopy
>> x86_64-apple-darwin15.6.0-objdump
>> x86_64-apple-darwin15.6.0-ranlib
>
> Ah, I've just remembered that binutils doesn't support Mac OS X, so
> the assembler and linker are not built. You need to use the Apple
> assembler and linker from t he Xcode command line tools.