mstorsjo / llvm-mingw

An LLVM/Clang/LLD based mingw-w64 toolchain
Other
1.75k stars 176 forks source link

[20240130 with LLVM 18.1.0 RC 1] Unable to link #400

Closed mcagabe19 closed 5 months ago

mcagabe19 commented 5 months ago

I don't know (both POSIX and normal doing)

Screenshot_20240203_223313_Termux

Biswa96 commented 5 months ago

Are you trying to compile any MSVC speicific projects? Those libraries are present in msvc directory C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC

mcagabe19 commented 5 months ago

no it's a MinGW specific project (as hxcpp has mingw-toolchain.xml) but I have UCRT ubuntu 20.04 aarch64 clang mingw and I don't have pc... so I don't really know if .lib and .a is same

Biswa96 commented 5 months ago

Could you provide any procedure to reproduce the issue?

mstorsjo commented 5 months ago

libcmt and oldnames in this form, is a sign that you're trying to link object files or static libraries that were built with MSVC (or clang with an MSVC environment). Mingw environments don't support linking MSVC object files or static libraries. If this has happened to work before, it has only been by accident - this is not a supported usecase.

mcagabe19 commented 5 months ago

no I'm first time compiling this I may needed check linker flags that I'll do later (I'm a busy girl at school)

longnguyen2004 commented 5 months ago

Can you give us a reproduction? Basically what you have done up to this point

mcagabe19 commented 5 months ago

I downloaded llvm-mingw and used MINGW_ROOT=(llvm-mingw root) lime build windows -64 normally gcc mingw (debian mingw-w64) works fine but llvm-mingw keeps giving that

mcagabe19 commented 5 months ago

as I said I needed check linker flags

mcagabe19 commented 5 months ago

yeah it was due linker flags sorry for wasting you all's time...