Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bsavelev opened this issue Aug 18, 2017 · 4 comments

Comments

@bsavelev
Copy link

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
Copy link

cmdln commented Nov 28, 2017

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

@inolen
Copy link

inolen commented Dec 10, 2017

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
Copy link

cmdln commented Dec 11, 2017

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
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants