Skip to content

Win11 rusty build compiles hello_world sample but does not run as expected #1414

Open
@zeehans

Description

@zeehans

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions