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

Compile on Mac M1 #36

Open
schoeberl opened this issue Mar 2, 2023 · 1 comment
Open

Compile on Mac M1 #36

schoeberl opened this issue Mar 2, 2023 · 1 comment

Comments

@schoeberl
Copy link
Member

Is there something related to x86 hardcoded?

      llvm::SPScope::SPScope(llvm::SPScope*, llvm::MachineLoop&, llvm::MachineFunction&, llvm::MachineLoopInfo&) in SPScope.cpp.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libLLVMPatmosSinglePath.dylib] Error 1
make[1]: *** [lib/Target/Patmos/SinglePath/CMakeFiles/LLVMPatmosSinglePath.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 45%] Built target LLVMPatmosDesc
make: *** [all] Error 2
@Emoun
Copy link
Member

Emoun commented Mar 4, 2023

I looked at the code and as I expected there is no target dependent code I can find.
Maybe the problem is with the fact that this LLVM is from 2012 or so, so probably before there was any hint of mac on arm.
I'm noticing its saying "architecture arm64" and not mentioning OS, so maybe its assuming its unix?

Try to build the new compiler just to see if we get more useful errors?

PS. I don't think this is a problem with the Single-path code. I think it just happens to be the first submodule to be compiled.

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

2 participants