Building KiCad on Windows 10

Hi,
I am building KiCad on Win10, using “kicad-win-builder”. I following the Readme, and got stuck with error:

“…/common/libcommon.a(libcontext.cpp.obj):libcontext.cpp:(.text+0x19e): relocation truncated to fit: R_X86_64_PC32 against `ABS
collect2.exe: error: ld returned 1 exit status
make[2]: *** [pagelayout_editor/CMakeFiles/pl_editor_kiface.dir/build.make:537: pagelayout_editor/_pl_editor.kiface] Error 1
make[2]: Leaving directory ‘/home/user/MINGW-packages/mingw-w64-kicad-git/src/build-x86_64-w64-mingw32’
make[1]: *** [CMakeFiles/Makefile2:3586: pagelayout_editor/CMakeFiles/pl_editor_kiface.dir/all] Error 2”

I searched and tried to fix but still this error.
Can anyone help me, please? And, are you facing this error when build from source?

Thanks,
Tuong

Current binutils (mingw-w64-x86_64-binutils-2.35.1-2) seems to fix it, as well as downgrading to 2.35-8 or 2.35-1.

1 Like

I tried, but no luck. I will rebuild on other computer to check. Thanks

Maybe it is easier to build using these instructions

Thanks, It’s worked.