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: -arch: not found


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.


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