-
Notifications
You must be signed in to change notification settings - Fork 168
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
arm64 support #6
Comments
If I do ./configure --target=aarch64-apple-darwin then it passes futher but ends up with |
Have you tried configuring it as |
Configure to arm-apple-darwin works successfully. Do you mean -m64 while On Dec 23, 2014 7:51 PM, "Cauê Waneck" notifications@github.com wrote:
|
Yes I meant adding |
Try:
Need to find a way to prevent automake from checking the |
@tpoechtrager , Thanks for hint. Did you try to do this? Why do you belive that this will get proper results? |
Meanwhile, guys, if you are here just interested whether you built something for new Apple iphone 6 processors with arm64 architecture using this toolchain? |
Yes, it works. It doesn't matter whatever you pass to I need to rename
This isn't a tool chain, this is just a cctools / ld64 port, but yes, I have successfully built |
#3 may be a useful resource for you. |
yes, you are right. sorry Do you know what is the difference between arm64 | arm64v8 | aarch64? |
ah, what I've learned here that roughly arm64 and aarch64 was different backends and now they merged to aarch64 [http://www.phoronix.com/scan.php?page=news_item&px=MTY5ODk] Then want to mention that maybe you have to update README.md that for arm64* targets LLVM 3.5 is required |
Yes, they are more or less the same. But they didn't merge them - they replaced the existing aarch64 backend with the Apple one and renamed it to aarch64. |
then better here use aarch64 in place of arm64?
At least because when I try to do on other projects
but
But on cctools |
As I know binary built for arm-apple-darwin will work on arm64 processor. Because we did some magick here to overcome autoconf restrictions is there a way to check that library built for arm64 instruction set? |
The best workaround for this is to avoid arm64 in the triplet name. Configure cctools/ld64 with i.e. (see issue 3):
Then you can use
to compile arm64 code.
Don't use |
does it really matters to put darwin version? and also want to ask why you did such conclusions about Thank you |
No, doesn't really matter, some build environments may check it though.
http://clang.llvm.org/docs/CrossCompilation.html#general-cross-compilation-options-in-clang You need to pass |
@tpoechtrager |
You don't need to add |
Use a pre-built boost package if you don't want to mess around with building: https://github.com/danoli3/ofxiOSBoost. |
Thanks. I already setup build of boost for ios. Just wanted to show that this doen't work as a common solution. Reading your wrapper now.. |
I've read wrapper.. anyway if compiler is |
Like I said, the wrapper does it for you. If |
@tpoechtrager
it will produce two temporary object files and then automatically using arm-apple-darwin-lipo will merge them into one fat test.o. Now when I try to do:
am getting following error:
Use of P.S. Maybe we should create other messaging thread? |
It works for me.
|
this issue were solved by using for CFLAGS += -target arm-apple-darwin -arch armv7
CFLAGS += -target arm-apple-darwin -arch armv7s
CFLAGS += -target arm-apple-darwin -arch arm64 tested it on all above archs |
Nice, thanks ! :) |
You could use this too. echo 'echo arm-apple-darwin' > config.sub |
I am trying to build cctools for arm64 under Fedora Linux
./configure --target=arm64-apple-darwin
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... Invalid configuration
arm64-apple-darwin': machine
arm64-apple' not recognizedconfigure: error: /bin/sh ./config.sub arm64-apple-darwin failed
Maybe you know what can cause this issue?
The text was updated successfully, but these errors were encountered: