Opened 2 weeks ago

Closed 11 days ago

#7521 closed defect (fixed)

FFmpeg failed to build tests/api/api-h264-slice-test.c with error C2065 with MSVC

Reported by: KarenHuang Owned by:
Priority: important Component: fate
Version: git-master Keywords: msvc regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
FFmpeg failed to build tests/api/api-h264-slice-test.c(183): error C2065: 'ssize_t': undeclared identifier when build with VS2017 on Windows. This issue can be reproduced from master revision fb7925b. I think 'ssize_t' type maybe undeclared, if we change 'ssize_t' to 'size_t' type and build pass. 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"
  9. .\tools\msys32\usr\bin\sh.exe --login -i -c "/D/ffmpeg/tools/test.sh"

Actual result:
tests/api/api-h264-slice-test.c(183): error C2065: 'ssize_t': undeclared identifier
tests/api/api-h264-slice-test.c(183): error C2146: syntax error: missing ';' before identifier 'ret'
tests/api/api-h264-slice-test.c(183): error C2065: 'ret': undeclared identifier
tests/api/api-h264-slice-test.c(184): error C2065: 'ret': undeclared identifier
tests/api/api-h264-slice-test.c(187): error C2065: 'ret': undeclared identifier
tests/api/api-h264-slice-test.c(190): error C2065: 'ret': undeclared identifier
tests/api/api-h264-slice-test.c(191): error C2065: 'ret': undeclared identifier
tests/api/api-h264-slice-test.c(195): error C2065: 'ret': undeclared identifier
make: * [ffbuild/common.mak:60: tests/api/api-h264-slice-test.o] Error 2
make:
* Waiting for unfinished jobs....

Attachments (1)

log_x86_test.log (5.7 KB) - added by KarenHuang 2 weeks ago.
log_x86_test

Download all attachments as: .zip

Change History (4)

Changed 2 weeks ago by KarenHuang

log_x86_test

comment:1 Changed 2 weeks ago by cehoyos

  • Component changed from build system to fate
  • Keywords regression added
  • Priority changed from normal to important

comment:2 Changed 13 days ago by KarenHuang

Hello, any updates here? This issue can still be reproduced on d98fb55 commit.Could some one help to look at this? Thanks you in advanced!

comment:3 Changed 11 days ago by jamrial

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.