-
Notifications
You must be signed in to change notification settings - Fork 56
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
Win11 rusty build compiles hello_world sample but does not run as expected #1414
Comments
Hello @zeehans There are 2 things I notice:
This will force clang to use the lld-link linker to link the executable. |
Right how silly of me re the
and get the error message:
That is the same error message that I am receiving when building via plc config, eg
Using your second suggestion,
I get more useful error output suggesting the following libs need to be linked as well:
|
could it be that oldnames was removed for win11? |
@ghaith just tried your suggestions with
|
Not sure if this is indeed a bug or just something got mixed up with my setup:
I just pulled the latest master commit and rebuilt rusty on a Win11 machine. I build the hello_world example from the docs using
plc -c main.st -o main.exe --linker=clang
and it completes without an error. When I try to run it from powershell I get:
Program 'main.exe' failed to run: The specified executable is not a valid application for this OS platform.At line:1
I havent been using rusty in a while and used to use a build from an older master commit - probably almost two years old - and was able to compile and run far more complicated code.
Due to a Siemens AX trial installation I know that there was another clang toolchain installed on my system but that one is not on the path and pretty sure I am using the custom LLVM 14.0.6 toolchain.
Any ideas what could be causing this?
The text was updated successfully, but these errors were encountered: