multiarch / crossbuild

:earth_africa: multiarch cross compiling environments
MIT License
938 stars 143 forks source link

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

Open bsavelev opened 7 years ago

bsavelev commented 7 years ago

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
cmdln commented 6 years ago

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

inolen commented 6 years ago

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.

cmdln commented 6 years ago

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.

masterneko commented 4 years ago

I have the same issue