Build error on macOS since commit 5d34bbf

Issue #427 new
Former user created an issue

Since commit 5d34bbf it is not possible anymore to build x265 on macOS.

Scanning dependencies of target encoder [ 65%] Building CXX object encoder/CMakeFiles/encoder.dir/analysis.cpp.o [ 66%] Building CXX object encoder/CMakeFiles/encoder.dir/search.cpp.o [ 67%] Building CXX object encoder/CMakeFiles/encoder.dir/bitcost.cpp.o [ 68%] Building CXX object encoder/CMakeFiles/encoder.dir/motion.cpp.o [ 69%] Building CXX object encoder/CMakeFiles/encoder.dir/slicetype.cpp.o [ 71%] Building CXX object encoder/CMakeFiles/encoder.dir/frameencoder.cpp.o [ 72%] Building CXX object encoder/CMakeFiles/encoder.dir/framefilter.cpp.o [ 73%] Building CXX object encoder/CMakeFiles/encoder.dir/level.cpp.o [ 74%] Building CXX object encoder/CMakeFiles/encoder.dir/nal.cpp.o [ 75%] Building CXX object encoder/CMakeFiles/encoder.dir/sei.cpp.o [ 77%] Building CXX object encoder/CMakeFiles/encoder.dir/sao.cpp.o [ 78%] Building CXX object encoder/CMakeFiles/encoder.dir/entropy.cpp.o [ 79%] Building CXX object encoder/CMakeFiles/encoder.dir/dpb.cpp.o [ 80%] Building CXX object encoder/CMakeFiles/encoder.dir/ratecontrol.cpp.o [ 81%] Building CXX object encoder/CMakeFiles/encoder.dir/reference.cpp.o [ 83%] Building CXX object encoder/CMakeFiles/encoder.dir/encoder.cpp.o [ 84%] Building CXX object encoder/CMakeFiles/encoder.dir/api.cpp.o /Volumes/Developer/src/source/encoder/api.cpp:450:5: error: cannot jump from this goto statement to its label CHECKED_MALLOC(intraData->chromaModes, uint8_t, analysis->numPartiti... ^ /Volumes/Developer/src/source/common/common.h:225:13: note: expanded from macro 'CHECKED_MALLOC' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:449:5: error: cannot jump from this goto statement to its label CHECKED_MALLOC(intraData->partSizes, char, analysis->numPartitions ... ^ /Volumes/Developer/src/source/common/common.h:225:13: note: expanded from macro 'CHECKED_MALLOC' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:448:5: error: cannot jump from this goto statement to its label CHECKED_MALLOC(intraData->modes, uint8_t, analysis->numPartitions * ... ^ /Volumes/Developer/src/source/common/common.h:225:13: note: expanded from macro 'CHECKED_MALLOC' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:447:5: error: cannot jump from this goto statement to its label CHECKED_MALLOC(intraData->depth, uint8_t, analysis->numPartitions * ... ^ /Volumes/Developer/src/source/common/common.h:225:13: note: expanded from macro 'CHECKED_MALLOC' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:446:5: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(intraData, x265_analysis_intra_data, 1); ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:439:9: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(analysis->wt, x265_weight_param, numPlanes ... ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:445:31: note: jump bypasses variable initialization x265_analysis_intra_data intraData = analysis->intraData; ^ /Volumes/Developer/src/source/encoder/api.cpp:434:9: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(analysis->lookahead.vbvCost, uint32_t, analy... ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:445:31: note: jump bypasses variable initialization x265_analysis_intra_data intraData = analysis->intraData; ^ /Volumes/Developer/src/source/encoder/api.cpp:433:9: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(analysis->lookahead.intraVbvCost, uint32_t, ... ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:445:31: note: jump bypasses variable initialization x265_analysis_intra_data intraData = analysis->intraData; ^ /Volumes/Developer/src/source/encoder/api.cpp:432:9: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(analysis->lookahead.satdForVbv, uint32_t, an... ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:445:31: note: jump bypasses variable initialization x265_analysis_intra_data intraData = analysis->intraData; ^ /Volumes/Developer/src/source/encoder/api.cpp:431:9: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(analysis->lookahead.intraSatdForVbv, uint32_... ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:445:31: note: jump bypasses variable initialization x265_analysis_intra_data intraData = analysis->intraData; ^ /Volumes/Developer/src/source/encoder/api.cpp:425:9: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(distortionData->threshold, double, analysis-... ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:445:31: note: jump bypasses variable initialization x265_analysis_intra_data intraData = analysis->intraData; ^ /Volumes/Developer/src/source/encoder/api.cpp:424:9: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(distortionData->offset, double, analysis->nu... ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:445:31: note: jump bypasses variable initialization x265_analysis_intra_data intraData = analysis->intraData; ^ /Volumes/Developer/src/source/encoder/api.cpp:423:9: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(distortionData->scaledDistortion, double, an... ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:445:31: note: jump bypasses variable initialization x265_analysis_intra_data intraData = analysis->intraData; ^ /Volumes/Developer/src/source/encoder/api.cpp:422:9: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(distortionData->ctuDistortion, sse_t, analys... ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:445:31: note: jump bypasses variable initialization x265_analysis_intra_data intraData = analysis->intraData; ^ /Volumes/Developer/src/source/encoder/api.cpp:419:5: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(distortionData->distortion, sse_t, analysis->num... ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:445:31: note: jump bypasses variable initialization x265_analysis_intra_data intraData = analysis->intraData; ^ /Volumes/Developer/src/source/encoder/api.cpp:418:5: error: cannot jump from this goto statement to its label CHECKED_MALLOC_ZERO(distortionData, x265_analysis_distortion_data, 1); ^ /Volumes/Developer/src/source/common/common.h:236:13: note: expanded from macro 'CHECKED_MALLOC_ZERO' goto fail; \ ^ /Volumes/Developer/src/source/encoder/api.cpp:454:31: note: jump bypasses variable initialization x265_analysis_inter_data interData = analysis->interData; ^ /Volumes/Developer/src/source/encoder/api.cpp:445:31: note: jump bypasses variable initialization x265_analysis_intra_data intraData = analysis->intraData; ^ 16 errors generated. make[2]: [encoder/CMakeFiles/encoder.dir/api.cpp.o] Error 1 make[1]: [encoder/CMakeFiles/encoder.dir/all] Error 2 make: ** [all] Error 2