Opened 5 years ago
Closed 5 years ago
#7874 closed defect (fixed)
FFmpeg failed to build due to af_astats.c: Assertion failed: Nerrors with VS2017 on windows
Reported by: | KarenHuang | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
FFmpeg failed to build due to af_astats.c: Assertion failed: Nerrors with VS2017 on Windows. This issue can be first reproduced from master revision 1e01f66. Could you please help take a look at this? Thank you!
Steps to reproduce:
1.git clone https://github.com/FFmpeg/FFmpeg.git D:\FFmpeg\src
2.Open a VS 2017 x86 prompt and browse to D:\FFmpeg
3.set FFMPEG_TARGET=i386
4.set FFMPEG_SRC_PATH=D:\FFmpeg/src
5.set FFMPEG_FATE_PATH=../fate-suite/
6.set PATH=D:\FFmpeg\tools;%PATH%
7.set MSYS2_PATH_TYPE=inherit
8..\tools\msys32\usr\bin\sh.exe --login -i -c "/D/ffmpeg/tools/build.sh"
Actual result:
D:\FFmpeg\src\libavfilter\af_astats.c(522): Assertion failed: Nerrors > 0, file d:\agent\_work\4\s\src\vctools\Compiler\CxxFE\sl\p1\c\trees.c, line 10891 [when compiling libavfilter/af_astats.c]
c1!assertfe()+0x106
d:\agent\_work\4\s\src\vctools\Compiler\CxxFE\sl\p1\c\debug.c Line 308
c1!tyty_type()+0xa0a
d:\agent\_work\4\s\src\vctools\Compiler\CxxFE\sl\p1\c\trees.c Line 10891
c1!tytr_type()+0x9b
d:\agent\_work\4\s\src\vctools\Compiler\CxxFE\sl\p1\c\trees.c Line 10325
c1InternalBinaryTree()+0x6d1
d:\agent\_work\4\s\src\vctools\Compiler\CxxFE\sl\p1\c\trees.c Line 6577
c1!PrimaryParser::Parse()+0x3375
d:\agent\_work\4\s\src\vctools\Compiler\CxxFE\sl\p1\cansi\grammar.y Line 2547
c1!main_compile()+0x89b
d:\agent\_work\4\s\src\vctools\Compiler\CxxFE\sl\p1\c\main.c Line 3635
make: * [ffbuild/common.mak:60: libavfilter/af_astats.o] Error 2
make: * Waiting for unfinished jobs....
Attachments (1)
Change History (3)
by , 5 years ago
Attachment: | log_x86_build.log added |
---|
comment:1 by , 5 years ago
I'm getting a different error in astats with MSVC 2017:
src/libavfilter/af_astats.c(522): error C2440: ':': cannot convert from 'void *' to 'void' src/libavfilter/af_astats.c(525): error C2440: ':': cannot convert from 'void *' to 'void' src/libavfilter/af_astats.c(528): error C2440: ':': cannot convert from 'void *' to 'void' src/libavfilter/af_astats.c(531): error C2440: ':': cannot convert from 'void *' to 'void' src/libavfilter/af_astats.c(534): error C2440: ':': cannot convert from 'void *' to 'void' src/libavfilter/af_astats.c(537): error C2440: ':': cannot convert from 'void *' to 'void' src/libavfilter/af_astats.c(540): error C2440: ':': cannot convert from 'void *' to 'void' src/libavfilter/af_astats.c(543): error C2440: ':': cannot convert from 'void *' to 'void' src/libavfilter/af_astats.c(546): error C2440: ':': cannot convert from 'void *' to 'void' src/libavfilter/af_astats.c(549): error C2440: ':': cannot convert from 'void *' to 'void'
Looks like something in the patch was faulty.
comment:2 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Should be fixed in 90b21ae5b5f8858e5af92c3e096af7ec56f17c6e
log_x86_build