Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

[Windows] fatal error: error in backend: invalid symbol redefinition #43056

Open Quuxplusone opened 5 years ago

Quuxplusone commented 5 years ago
Bugzilla Link PR44086
Status NEW
Importance P enhancement
Reported by Mark Ingram (me@mark-ingram.com)
Reported on 2019-11-20 08:06:03 -0800
Last modified on 2020-01-07 16:38:38 -0800
Version 9.0
Hardware PC Windows NT
CC duhowett@microsoft.com, htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
When compiling with the --debug flag the following error occurs

C:\PROGRA~1\LLVM\bin\clang.exe -DOPJ_DLL_BUILD -DOPJ_EXPORTS -DUNICODE -
DUSE_JPIP -DWIN32 -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -
D_CRT_SECURE_NO_WARNINGS -D_ITERATOR_DEBUG_LEVEL=0 -D_SCL_SECURE_NO_WARNINGS -
D_UNICODE -D_WINDOWS -O3 -DNDEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrt
-w -msse4.1 -ferror-limit=1 --debug -MD -MT
Libraries/libjpeg2k/CMakeFiles/libjpeg2k.dir/dwt.c.obj -MF
Libraries\libjpeg2k\CMakeFiles\libjpeg2k.dir\dwt.c.obj.d -o
Libraries/libjpeg2k/CMakeFiles/libjpeg2k.dir/dwt.c.obj   -c
../../Libraries/libjpeg2k/dwt.c
fatal error: error in backend: invalid symbol redefinition
Stack dump:
0.      Program arguments: C:\PROGRA~1\LLVM\bin\clang.exe -cc1 -triple x86_64-
pc-windows-msvc19.24.28218 -emit-obj -mincremental-linker-compatible -disable-
free -disable-llvm-verifier -discard-value-names -main-file-name dwt.c -
mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-
verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-
feature +sse4.1 -gcodeview -debug-info-kind=limited -momit-leaf-frame-pointer -
coverage-notes-file C:\Code\build\clang-release-
rgba8\Libraries/libjpeg2k/CMakeFiles/libjpeg2k.dir/dwt.c.gcno -resource-dir
C:\PROGRA~1\LLVM\lib\clang\9.0.0 -dependency-file
Libraries\libjpeg2k\CMakeFiles\libjpeg2k.dir\dwt.c.obj.d -sys-header-deps -MT
Libraries/libjpeg2k/CMakeFiles/libjpeg2k.dir/dwt.c.obj -D OPJ_DLL_BUILD -D
OPJ_EXPORTS -D PLATFORM_SSE3 -D PLATFORM_WIN32 -D PLATFORM_WINDOWS -D
RASTER_RGBA8_ONLY -D UNICODE -D USE_JPIP -D WIN32 -D _CRT_NONSTDC_NO_DEPRECATE -
D _CRT_SECURE_NO_DEPRECATE -D _CRT_SECURE_NO_WARNINGS -D
_ITERATOR_DEBUG_LEVEL=0 -D _SCL_SECURE_NO_WARNINGS -D _UNICODE -D _WINDOWS -I
../../Libraries -D NDEBUG -D _DLL -D _MT -internal-isystem
C:\PROGRA~1\LLVM\lib\clang\9.0.0\include -internal-isystem C:\Program Files
(x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.24.28218\include -
internal-isystem C:\Program Files (x86)\Windows
Kits\10\Include\10.0.18362.0\ucrt -internal-isystem C:\Program Files
(x86)\Windows Kits\10\include\10.0.18362.0\shared -internal-isystem C:\Program
Files (x86)\Windows Kits\10\include\10.0.18362.0\um -internal-isystem
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -O3 -w -
fdebug-compilation-dir C:\Code\build\clang-release-rgba8 -ferror-limit 1 -
fmessage-length 0 -fno-use-cxa-atexit -fms-extensions -fms-compatibility -fms-
compatibility-version=19.24.28218 -fdelayed-template-parsing -fobjc-runtime=gcc
-fdiagnostics-show-option -vectorize-loops -vectorize-slp --dependent-
lib=msvcrt -faddrsig -o Libraries/libjpeg2k/CMakeFiles/libjpeg2k.dir/dwt.c.obj -
x c ../../Libraries/libjpeg2k/dwt.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'../../Libraries/libjpeg2k/dwt.c'.
4.      Running pass 'X86 Assembly Printer' on function '@opj_dwt_encode_real'
Quuxplusone commented 4 years ago
Additional information from a TRUNK build.

Assertion failed: Val && "isa<> used on a null pointer", file
E:\src\llvm\include\llvm/Support/Casting.h, line 105

0x00007FF7C1F41FA8 (0x0000000519382838 0x000001A277CBC860 0x000001A277C59918
0xCCCCCCCCCCCCCCCC), llvm::isa<clang::ImplicitParamDecl,clang::VarDecl const
*>() + 0x28 bytes(s), E:\src\llvm\include\llvm\Support\Casting.h, line 144
0x00007FF7C2265484 (0x00000005193830D8 0x0000000519385698 0x000001A2782A24E0
0x000001A2782BE800), clang::CodeGen::CodeGenFunction::EmitCapturedLocals() +
0x4B4 bytes(s), E:\src\llvm\tools\clang\lib\CodeGen\CGException.cpp, line 1798
+ 0xD byte(s)
0x00007FF7C226464E (0x00000005193830D8 0x0000000519385698 0xCCCCCCCCCCCCCC00
0x000001A2782A24E0), clang::CodeGen::CodeGenFunction::startOutlinedSEHHelper()
+ 0x6FE bytes(s), E:\src\llvm\tools\clang\lib\CodeGen\CGException.cpp, line 1889
0x00007FF7C2100A62 (0x000001A277CBE330 0x0000000519385698 0x000001A2782A2538
0x0000000519384970), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt() + 0x562
bytes(s), E:\src\llvm\tools\clang\lib\CodeGen\CGObjCRuntime.cpp, line 203
Quuxplusone commented 4 years ago

Please disregard. I commented on the wrong bug.

Quuxplusone commented 4 years ago

This seems like a possible duplicate of bug 43695.