multiarch / crossbuild

:earth_africa: multiarch cross compiling environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

bsavelev opened this issue · 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

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

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.

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.

I have the same issue