Debug build of engine breaks in /libjpeg-turbo/

A clean debug build of engine breaks in /libjpeg-turbo/ .

VS is 18.11.4

autogen.input is
–host=x86_64-pc-cygwin
–disable-ccache
–with-visual-studio=2026
–enable-python=fully-internal
–without-lxml
–with-external-tar=c:/colwsl8/external
–with-strawberry-perl-portable=c:/bloadds/spp
–with-ant-home=c:/bloadds/apache-ant-1.10.15
–with-junit=c:/bloadds/junit-4.10.jar
–with-jdk-home=c:/bloadds/jdk
–enable-dbgutil
–enable-werror
–disable-cve-tests
–without-fonts
PKG_CONFIG=/mnt/c/bloadds/pkg/pkgconf-2.4.3.exe

Any idea?

Hi Regina,

CI uses these flags, with cygwin:

./autogen.sh \
  --host=x86_64-pc-cygwin \
  --with-distro=CODAWindows \
  --with-visual-studio=2026 \
  --with-external-tar=/cygdrive/c/lo/src \
  --enable-pch \
  --disable-symbols \
  --disable-optimized \
  --enable-ccache \
  --disable-dependency-tracking \
  --with-parallelism="$JOBS"

So that’s one thing you can try, step by step changing your config to be closer to the CI config to see where it starts working. The build guide at Build Collabora Office for Windows | Collabora Office - Community Page describes how to use msys, that also builds for me locally, perhaps you can switch to that, which eliminates both cygwin and wsl. Build Collabora Office for Windows | Collabora Office - Community Page contains the recommended engine autogen.input options, that ones I happen to have locally are:

--with-distro=CODAWindows
--host=x86_64-pc-cygwin
--with-strawberry-perl-portable=C:\path\to\co\spp
--with-external-tar=C:\path\to\co\co-externaltar
--without-lang
--disable-mergelibs
--enable-pch
--enable-dbgutil
--enable-werror

I hope that one of these helps.

No, it does not help. I still get the error

/c/colwsl9/co/engine/workdir/UnpackedTarball/libjpeg-turbo/simd/x86_64/jccolor-sse2.asm: fatal: unable to open output file `/c/colwsl9/co/engine/workdir/GenNasmObject/UnpackedTarball/libjpeg-turbo/simd/x86_64/jccolor-sse2.asm.o'
/c/colwsl9/co/engine/workdir/UnpackedTarball/libjpeg-turbo/simd/x86_64/jccolor-avx2.asm: fatal: unable to open output file `/c/colwsl9/co/engine/workdir/GenNasmObject/UnpackedTarball/libjpeg-turbo/simd/x86_64/jccolor-avx2.asm.o'
make[1]: *** [C:/colwsl9/co/engine/solenv/gbuild/LinkTarget.mk:622: C:/colwsl9/co/engine/workdir/GenNasmObject/UnpackedTarball/libjpeg-turbo/simd/x86_64/jccolor-sse2.asm.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [C:/colwsl9/co/engine/solenv/gbuild/LinkTarget.mk:622: C:/colwsl9/co/engine/workdir/GenNasmObject/UnpackedTarball/libjpeg-turbo/simd/x86_64/jccolor-avx2.asm.o] Error 1
/c/colwsl9/co/engine/workdir/UnpackedTarball/libjpeg-turbo/simd/x86_64/jdmerge-avx2.asm: fatal: unable to open output file `/c/colwsl9/co/engine/workdir/GenNasmObject/UnpackedTarball/libjpeg-turbo/simd/x86_64/jdmerge-avx2.asm.o'
make[1]: *** [C:/colwsl9/co/engine/solenv/gbuild/LinkTarget.mk:622: C:/colwsl9/co/engine/workdir/GenNasmObject/UnpackedTarball/libjpeg-turbo/simd/x86_64/jdmerge-avx2.asm.o] Error 1
make: *** [Makefile:321: build] Error 2

And indeed the files jccolor-sse2.asm.o and jccolor-avx2.asm.o and jdmerge-avx2.asm.o are missing in that folder. Other foo.asm.o files exist in that folder.

I think we miss a few details wrt. your build setup. In the output we see MSYS2 paths (/c/colwsl9/) but in the config you pass a WSL path (PKG_CONFIG=/mnt/c/...). It is unclear which nasm is used.

You can try and see the output of

make libjpeg-turbo.clean
make -j1 verbose=t libjpeg-turbo

Please also post the output of grep NASM config_host.mk and nasm -v.

I have tried to use MSYS2 as recommended on the webpage Miklos has linked, in a new folder with new clone. But it did not work.
I have a folder colwsl8 which had a working “classic” office build using WSL. But now after make clean I get no build again. I would like to get that back. The below attached files are from inside that folder.

grep NASM config_host.mk returns export NASM=wsl.exe nasm
nasm -v returns NASM version 2.16.01 compiled on May 3 2024

I have started now with wsl ./autogen.sh with the attached autogen.input (as autogen.txt to be allowed to upload it)
autogen.txt (433 Bytes)
.
The result of make -j1 verbose=t libjpeg-turbo is attached as well.
log_libjpeg_make.txt (164.7 KB)

It seems, have got some mess. How can I cleanup it?

I build engine using Cygwin, which is not the documented way any more, but still works. Here is my autogen.input:

--host=aarch64-pc-cygwin
--build=aarch64-pc-cygwin
--with-distro=CODAWindows
--enable-debug
--enable-ld=lld
--disable-sbom
--without-myspell-dicts
--disable-mergelibs
--without-parallelism

(The “aarch64” is obviously not suitable for you, but I have an ARM64 (virtual) machine.)

Additionally, in /opt/lo/bin (as a Cygwin path) I have make, nasm, and pkgconf-2.4.3.exe.

If you want to use Cygwin to build engine it is important to not confuse things by mixing in stuff from MSYS2, “Git Bash”, or WSL.

I use WSL in the top directory to run autogen.sh and the configure script. But that is not the documented way either, sorry. I really should switch to doing everything the documented way, but that will take a day at least. So I can’t help you if you want to do it the documented way.

--tml

Does a:

make -j1 verbose=t libjpeg-turbo

in engine make any difference here?