https://bugs.winehq.org/show_bug.cgi?id=51534
Bug ID: 51534 Summary: Clang Crash When Build dlls/shell32/folder.c Product: Wine Version: 6.13 Hardware: aarch64 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: shell32 Assignee: wine-bugs@winehq.org Reporter: lz2019hjh@outlook.com
Created attachment 70374 --> https://bugs.winehq.org/attachment.cgi?id=70374 clang crash
I try to build wine-6.13 on Mac m1
This is my clang version
```shell $ clang -v Apple clang version 13.0.0 (clang-1300.0.25.3) Target: arm64-apple-darwin21.0.0 Thread model: posix InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin ```
Then I do the following
```shell $ mkdir build $ cd build $ ../configure --enable-win64
...
configure: creating ./config.status config.status: creating Make.tmp config.status: creating include/config.h config.status: linking ../tools/winewrapper to wine config.status: linking ../tools/winewrapper to wine64 config.status: executing include/stamp-h commands config.status: executing tools/makedep commands config.status: executing Makefile commands
configure: QuickTime development files not found, video decoding won't be supported. configure: MinGW compiler not found, cross-compiling PE files won't be supported. configure: libv4l2 development files not found. configure: libgphoto2 development files not found, digital cameras won't be supported. configure: libgphoto2_port development files not found, digital cameras won't be auto-detected. configure: libpulse development files not found or too old, Pulse won't be supported. configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported. configure: libudev development files not found, plug and play won't be supported. configure: libFAudio development files not found, XAudio2 won't be supported. configure: libcapi20 development files not found, ISDN won't be supported. configure: libgsm development files not found, gsm 06.10 codec won't be supported.
configure: WARNING: can't build Wine preloader; many programs won't work
configure: Finished. Do 'make' to compile Wine.
$ make -j8
... clang: error: unable to execute command: Segmentation fault: 11 clang: error: clang frontend command failed due to signal (use -v to see invocation) Apple clang version 13.0.0 (clang-1300.0.25.3) Target: arm64-apple-darwin21.0.0 Thread model: posix InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin gcc -c -o dlls/shell32/shellole.o ../dlls/shell32/shellole.c -Idlls/shell32 -I../dlls/shell32 -Iinclude -I../include \ -I.. -D__WINESRC__ -D_SHELL32_ -D_REENTRANT -fPIC -fasynchronous-unwind-tables -Wall -pipe \ -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement \ -Wempty-body -Wignored-qualifiers -Winit-self -Wno-pragma-pack -Wstrict-prototypes -Wtype-limits \ -Wvla -Wwrite-strings -Wpointer-arith -gdwarf-2 -gstrict-dwarf -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 gcc -c -o dlls/shell32/shellord.o ../dlls/shell32/shellord.c -Idlls/shell32 -I../dlls/shell32 -Iinclude -I../include \ -I.. -D__WINESRC__ -D_SHELL32_ -D_REENTRANT -fPIC -fasynchronous-unwind-tables -Wall -pipe \ -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement \ -Wempty-body -Wignored-qualifiers -Winit-self -Wno-pragma-pack -Wstrict-prototypes -Wtype-limits \ -Wvla -Wwrite-strings -Wpointer-arith -gdwarf-2 -gstrict-dwarf -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 gcc -c -o dlls/shell32/shellpath.o ../dlls/shell32/shellpath.c -Idlls/shell32 -I../dlls/shell32 -Iinclude -I../include \ -I.. -D__WINESRC__ -D_SHELL32_ -D_REENTRANT -fPIC -fasynchronous-unwind-tables -Wall -pipe \ -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement \ -Wempty-body -Wignored-qualifiers -Winit-self -Wno-pragma-pack -Wstrict-prototypes -Wtype-limits \ -Wvla -Wwrite-strings -Wpointer-arith -gdwarf-2 -gstrict-dwarf -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 gcc -c -o dlls/shell32/shellreg.o ../dlls/shell32/shellreg.c -Idlls/shell32 -I../dlls/shell32 -Iinclude -I../include \ -I.. -D__WINESRC__ -D_SHELL32_ -D_REENTRANT -fPIC -fasynchronous-unwind-tables -Wall -pipe \ -fcf-protection=none -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement \ -Wempty-body -Wignored-qualifiers -Winit-self -Wno-pragma-pack -Wstrict-prototypes -Wtype-limits \ -Wvla -Wwrite-strings -Wpointer-arith -gdwarf-2 -gstrict-dwarf -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 clang: note: diagnostic msg: ********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /var/folders/6k/ccg7fjgj35n81rlv497_0d200000gn/T/folders-2895e1.c clang: note: diagnostic msg: /var/folders/6k/ccg7fjgj35n81rlv497_0d200000gn/T/folders-2895e1.sh clang: note: diagnostic msg: Crash backtrace is located in clang: note: diagnostic msg: /Users/*/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crash clang: note: diagnostic msg: (choose the .crash file that corresponds to your crash) clang: note: diagnostic msg:
******************** make: *** [Makefile:123850: dlls/shell32/folders.o] Error 254 make: *** Waiting for unfinished jobs.... ```
And the clang crash!
https://bugs.winehq.org/show_bug.cgi?id=51534
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |z.figura12@gmail.com Resolution|--- |NOTOURBUG
--- Comment #1 from Zebediah Figura z.figura12@gmail.com --- Please report the bug to clang.