crossbuild icon indicating copy to clipboard operation
crossbuild copied to clipboard

[x86_64-apple-darwin14] x86_64-apple-darwin14-as: unknown host architecture (can't determine which assembler to run)

Open bsavelev opened this issue 8 years ago • 4 comments

Hello!

CROSS_TRIPLE=x86_64-apple-darwin14 Get error while compiling tif_stream.cxx from http://download.osgeo.org/libtiff/tiff-4.0.8.tar.gz

/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   -I/opt/openslide/include    -c -o tif_stream.lo tif_stream.cxx
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I/opt/openslide/include -c tif_stream.cxx 
fatal error: /usr/osxcross/bin/x86_64-apple-darwin14-as: unknown host architecture (can't determine which assembler to run)
Makefile:695: recipe for target 'tif_stream.lo' failed

bsavelev avatar Aug 18 '17 09:08 bsavelev

I run into the same error trying to cross compile jsonnet for that target.

cmdln avatar Nov 28 '17 22:11 cmdln

There doesn't seem to be a g++ symlink in the osx bin dir, so the wrong compiler is being used. Using the c++ symlink works.

inolen avatar Dec 10 '17 22:12 inolen

On another issue about cross compilation, I found this: https://gist.github.com/luser/a33e5070d1c55a7d2c46fe763a9d1543 Using something similar to this script, I was able to get past this error. What this script seems to do is set quite a few more env vars identifying specific tool locations for host and target.

cmdln avatar Dec 11 '17 14:12 cmdln

I have the same issue

masterneko avatar Sep 08 '20 05:09 masterneko