graal icon indicating copy to clipboard operation
graal copied to clipboard

[GR-34674] AWT Windows linker invocations lack /MACHINE

Open galderz opened this issue 4 years ago • 2 comments

See https://github.com/quarkusio/quarkus/issues/20681

      ># LINK : warning LNK4001: no object files specified; libraries used
      ># LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
      >#    Creating library java.lib and object java.exp
      ># code-with-quarkus-1.0.0-SNAPSHOT-runner.lib(code-with-quarkus-1.0.0-SNAPSHOT-runner.exe) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'

Unless 32 bit is supported, JNIRegistrationAWTSupport should add /MACHINE:X64 to the linker invocation.

galderz avatar Oct 19 '21 11:10 galderz

Actually, the odd thing here is that one should be able to pass in NativeLinkerOption but that's ignored in the linker (or compiler?) calls that JNIRegistrationSupport does when making shimDLLs. That's ignored because there's not really linker being invoked, but the compiler via CCompilerInvoker?

galderz avatar Oct 20 '21 09:10 galderz

@christianwimmer please advice

munishchouhan avatar Oct 22 '21 06:10 munishchouhan