Compiling Wine with Clang with PDBs

Questions about Wine on Linux
Locked
ethanhowell
Newbie
Newbie
Posts: 1
Joined: Tue Jul 23, 2024 4:34 pm

Compiling Wine with Clang with PDBs

Post by ethanhowell »

Hello! I've been trying to do this for a while, but it hasn't been working. I've tried the steps I found at https://gist.github.com/CodingKoopa/26b ... 0933e706fe, specifically:

1.

Code: Select all

git clone --depth 1 https://gitlab.winehq.org/wine/wine.git --branch wine-8.0 wine-source
2.

Code: Select all

mkdir wine-build && cd wine-build/
3.

Code: Select all

x86_64_CC="clang" CROSSCFLAGS="-O2 -g -gcodeview" CROSSLDFLAGS="-Wl,--pdb=" ../wine-source/configure --enable-win64 --with-x --with-gstreamer
4.

Code: Select all

make -j$(nproc)
Unfortunately when I try to find pdbs, they aren't there. My make command has quite a few warnings, which I think could be related to it:

Code: Select all

tools/winegcc/winegcc -o dlls/setupapi/tests/x86_64-windows/setupapi_test.exe --wine-objdir . -b x86_64-windows \
  dlls/setupapi/tests/x86_64-windows/devinst.o dlls/setupapi/tests/x86_64-windows/dialog.o \
  dlls/setupapi/tests/x86_64-windows/diskspace.o dlls/setupapi/tests/x86_64-windows/install.o \
  dlls/setupapi/tests/x86_64-windows/misc.o dlls/setupapi/tests/x86_64-windows/parser.o \
  dlls/setupapi/tests/x86_64-windows/query.o dlls/setupapi/tests/x86_64-windows/setupcab.o \
  dlls/setupapi/tests/x86_64-windows/stringtable.o dlls/setupapi/tests/x86_64-windows/testlist.o \
  dlls/setupapi/tests/x86_64-windows/coinst.res dlls/setupapi/tests/x86_64-windows/selfreg.res \
  dlls/setupapi/tests/setupapi.res dlls/advapi32/x86_64-windows/libadvapi32.a \
  dlls/cabinet/x86_64-windows/libcabinet.a dlls/ole32/x86_64-windows/libole32.a \
  dlls/setupapi/x86_64-windows/libsetupapi.a dlls/shell32/x86_64-windows/libshell32.a \
  libs/uuid/x86_64-windows/libuuid.a dlls/user32/x86_64-windows/libuser32.a \
  dlls/winecrt0/x86_64-windows/libwinecrt0.a dlls/msvcrt/x86_64-windows/libmsvcrt.a \
  dlls/kernel32/x86_64-windows/libkernel32.a dlls/ntdll/x86_64-windows/libntdll.a -Wl,--pdb=
lld-link: warning: ignoring unknown argument '--pdb='
(and lots of other similar-looking ones)

Are there any other flags or something I'm missing? I'm happy provide more info if necessary!

Debug info:

Code: Select all

$ clang --version
clang version 17.0.6 (CentOS 17.0.6-5.el9)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Locked