Summary: | emulators/rpcs3: clang crashes during build | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Jan Beich <jbeich> | ||||||
Component: | Individual Port(s) | Assignee: | freebsd-toolchain (Nobody) <toolchain> | ||||||
Status: | Closed Overcome By Events | ||||||||
Severity: | Affects Only Me | CC: | dim, roman-cat, w.schwarzenfeld | ||||||
Priority: | --- | Keywords: | regression | ||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
URL: | http://beefy12.nyi.freebsd.org/data/head-amd64-default/p481194_s339174/logs/errors/rpcs3-0.0.5.968.log | ||||||||
See Also: | https://bugs.llvm.org/show_bug.cgi?id=39246 | ||||||||
Attachments: |
|
Description
Jan Beich
![]() ![]() Created attachment 197786 [details]
rpcs3/Emu/Cell/Modules/cellAudio.cpp (compressed, preprocessed)
Created attachment 197787 [details]
command line args (for clang 7)
Clang crashes since https://github.com/RPCS3/rpcs3/commit/1b740995a4b6 Affects at least Clang 8.0.0 (20181001), 7.0.0, 6.0.1 while GCC 8.2.0, 7.3.0 are fine. Earlier versions don't support C++17 required by RPCS3. Can you help analyze what's wrong with Clang on FreeBSD? Clang 6.0.0 on FreeBSD 11.2 is not affected, see https://ptpb.pw/wO-Z OTOH, devel/llvm60 does crash on FreeBSD 11.2. Reduced and submitted as https://bugs.llvm.org/show_bug.cgi?id=39246 Can be fixed. Utilites/typemap.h 197 // Type information for each used type template <typename T> inline const typeinfo<T> g_typeinfo{}; template <typename T, typename B> struct typepoly { uint type = 0; typepoly(); }; Change to "const typeinfo<T> g_typeinfo{};" (In reply to Roman CAT from comment #6) Thanks. It built fine on 12.0 (clang 6.0.1): https://ptpb.pw/s4K6 13.0 (clang 7.0.1): https://ptpb.pw/p5hn A commit references this bug: Author: jbeich Date: Sat Nov 10 10:27:35 UTC 2018 New revision: 484600 URL: https://svnweb.freebsd.org/changeset/ports/484600 Log: emulators/rpcs3: unbreak build with clang > 6.0.0 Assertion failed: (D->getCachedLinkage() == LV.getLinkage()), function getLVForDecl, file /usr/src/contrib/llvm/tools/clang/lib/AST/Decl.cpp, line 1394. PR: 231952 Reported by: pkg-fallout Submitted by: Roman CAT Changes: head/emulators/rpcs3/files/patch-Utilities_typemap.h A commit references this bug: Author: jbeich Date: Sat Nov 10 10:28:33 UTC 2018 New revision: 484601 URL: https://svnweb.freebsd.org/changeset/ports/484601 Log: MFH: r484600 emulators/rpcs3: unbreak build with clang > 6.0.0 Assertion failed: (D->getCachedLinkage() == LV.getLinkage()), function getLVForDecl, file /usr/src/contrib/llvm/tools/clang/lib/AST/Decl.cpp, line 1394. PR: 231952 Reported by: pkg-fallout Submitted by: Roman CAT Approved by: ports-secteam blanket Changes: _U branches/2018Q4/ branches/2018Q4/emulators/rpcs3/files/patch-Utilities_typemap.h Is this fixed with ports r508936? Obselete after upstream refactoring, so the workaround is gone after ports r509127. |