-
Notifications
You must be signed in to change notification settings - Fork 5
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
Linker issue break Lingua Franca CI #20
Comments
I see this in the log:
I don't know what
In general, this command likely needs to be split in two. First the c file is compiled to LLVM-IR using |
@schoeberl In your example, the problem is |
Do we not have a linker of the machine code object file? |
BTW, with clang, this works (as in GCC and as usual in general C compilers.) |
When using Clang and LLVM, there are 2 linkers: When using Clang for other targets (x86, ARM, RISCV), using the From what I can see, the LF command above was chosen for the old compiler, and thus produce and comsumed llvm-ir-object code. The new compiler does not do that and will therefore get it wrong with the same command. The command must be corrected to work with the new compiler. I think the solution is to just add the If some of the flags, that I don't know, do something important, we need to test if they work on the new compiler (it is not a given that they would work, so I suspect they wouldn't). |
No it is not standard clang/llvm. When I use |
The flags are not important. That comes from |
I am having troubles both ways:
The other way round also fails:
Do you have an example where compiling and linking is separate? |
I have investigated the behavior of the new compiler and how things can be done in GCC (don't have pure clang installed). |
I have update the patmos compiler to now allow compiling and linking in the same step (as you described at the top). I cannot release a new prebuilt of the compiler, as we are having unrelated issues that fail the CI. However, if the compiler is built locally, it should now be able to do what is needed for LF. Please test this on your machine and maybe the LF CI (assuming it doesn't use prebuilts). |
Lingua Franca (LF) has Patmos support and includes Patmos and the compiler in the CI. Therefore, this is an important issue.
How to reproduce:
Just with a simple "hello world"
errors into:
The text was updated successfully, but these errors were encountered: