Author Topic: 32 buit SF update  (Read 373 times)

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 97
32 buit SF update
« on: May 10, 2025, 12:45:45 pm »
Do the 32 bit build have the same issues with Clangd a the 64bit versions?

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2860
Re: 32 buit SF update
« Reply #1 on: May 10, 2025, 08:28:01 pm »
Do the 32 bit build have the same issues with Clangd a the 64bit versions?

what issues are you referring to?

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 97
Re: 32 buit SF update
« Reply #2 on: Yesterday at 12:52:09 am »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2860
Re: 32 buit SF update
« Reply #3 on: Yesterday at 02:56:03 am »
I don't have access to a 32bit version of CodeBlocks, but I know that you need to use the mingw version of clangd.exe when compiling with mingw.

But the MinGW folder of the distributed CB 2503 does not have the mingw version of clangd.exe. The version there is the clang compiler's version of clangd. So it's only usable when compiling with with clang.exe, not mingw.

I don't know where you would find a clangd.exe 32bit executable. Maybe someone using the 32bit version of CB knows.

Here' what Perpexity has to say:
Code
Using 64-bit clangd with 32-bit CodeBlocks: In most cases, you can use a 64-bit clangd.exe with a 32-bit CodeBlocks installation, provided your system is 64-bit Windows.
 The communication between CodeBlocks and clangd is via LSP (over pipes or sockets), and does not require both processes to be the same bitness, as long as the OS supports running both.

However, plugin compatibility and stability may vary, and some users have reported issues with the Clangd Client plugin in CodeBlocks, regardless of bitness.

It looks to me like your best bet is to download Msys2 and use the clangd.exe in the Mingw64\bin folder if you're OS is 64bit.

Else you could try to find a 32bit Msys2 that includes mingw with clangd.exe in the Mingw32/bin folder.

« Last Edit: Yesterday at 02:59:40 am by Pecan »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: 32 buit SF update
« Reply #4 on: Yesterday at 10:48:19 am »
Do the 32 bit build have the same issues with Clangd a the 64bit versions?
We just bundle the GCC/Clang compiler that stems from WinLibs (version 14.2.0 at the time of the release). You can find the reference in the readme a SourceForge.
If you need different executables / versions you can download the right bundle that works for you and integrate that compiler suite into C::B.

A different LLVM/Clang version can be downloaded from here, for example:
https://releases.llvm.org/download.html
...or more recent:
https://github.com/llvm/llvm-project/releases/tag/llvmorg-20.1.4
...which works for me also on 32 bit.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ