Issue 1:
System information (version)

OpenCV => ❔ 4.0.0

Operating System / Platform => ❔ Fedora 27

Compiler => ❔ gcc 7.3

Detailed description

There was a change less than a week ago where the C interface for some modules were removed. This has caused some build errors that you should be aware. There are many errors of this sort and the build fails.

/usr/local/include/opencv2/imgcodecs/imgcodecs_c.h:96:28: error: redeclaration of ‘CV_IMWRITE_PXM_BINARY’

CV_IMWRITE_PXM_BINARY =32,

^~

Steps to reproduce

Build from developer sources.

Issue 2:
System information (version)

OpenCV => 3.4/master + IE 2018R5

Operating System / Platform => Ubuntu 16.04

Compiler => gcc

Detailed description

Must be the problem of tests termination at buildbot

Steps to reproduce

Add memory usage check:

static void printMem()
{
std::ifstream status("/proc/self/status");
std::string line, title;
size_t val;
while (std::getline(status, line))
{
std::istringstream iss(line);
iss >> title;
if (title == "VmHWM:")
{
iss >> val;
std::cout << "peak: " << val << std::endl;
}
else if (title == "VmRSS:")
{
iss >> val;
std::cout << "rss: " << val << std::endl;
}
}
std::cout << std::endl;
}

void testONNXModels(const String& basename, const Extension ext = npy, const double l1 = 0, const float lInf = 0)
{
printMem();
// ...

OpenCV tests only:

$ make -j4 && ./bin/opencv_test_dnn --gtest_filter=Test_ONNX_nets*/1:-Test_ONNX_nets.LResNet100E_IR*

[==========] Running 19 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 19 tests from Test_ONNX_nets
[ RUN ] Test_ONNX_nets.Alexnet/1, where GetParam() = OCV/CPU
[ OK ] Test_ONNX_nets.Alexnet/1 (490 ms)
[ RUN ] Test_ONNX_nets.Squeezenet/1, where GetParam() = OCV/CPU
peak: 820764
rss: 50532

[ OK ] Test_ONNX_nets.Squeezenet/1 (19 ms)
[ RUN ] Test_ONNX_nets.Googlenet/1, where GetParam() = OCV/CPU
[ OK ] Test_ONNX_nets.Googlenet/1 (87 ms)
[ RUN ] Test_ONNX_nets.CaffeNet/1, where GetParam() = OCV/CPU
peak: 820764
rss: 133160

[ OK ] Test_ONNX_nets.CaffeNet/1 (486 ms)
[ RUN ] Test_ONNX_nets.RCNN_ILSVRC13/1, where GetParam() = OCV/CPU
peak: 827032
rss: 41772

[ OK ] Test_ONNX_nets.RCNN_ILSVRC13/1 (456 ms)
[ RUN ] Test_ONNX_nets.VGG16/1, where GetParam() = OCV/CPU
peak: 827032
rss: 41772

[ OK ] Test_ONNX_nets.VGG16/1 (1406 ms)
[ RUN ] Test_ONNX_nets.VGG16_bn/1, where GetParam() = OCV/CPU
peak: 2415128
rss: 41772

[ OK ] Test_ONNX_nets.VGG16_bn/1 (1404 ms)
[ RUN ] Test_ONNX_nets.ZFNet/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 41772

[ OK ] Test_ONNX_nets.ZFNet/1 (670 ms)
[ RUN ] Test_ONNX_nets.ResNet18v1/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 41772

[ OK ] Test_ONNX_nets.ResNet18v1/1 (157 ms)
[ RUN ] Test_ONNX_nets.ResNet50v1/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 41772

[ OK ] Test_ONNX_nets.ResNet50v1/1 (330 ms)
[ RUN ] Test_ONNX_nets.ResNet101_DUC_HDC/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 41772

[ OK ] Test_ONNX_nets.ResNet101_DUC_HDC/1 (7726 ms)
[ RUN ] Test_ONNX_nets.TinyYolov2/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 49272

[ OK ] Test_ONNX_nets.TinyYolov2/1 (198 ms)
[ RUN ] Test_ONNX_nets.CNN_MNIST/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 47828

[ OK ] Test_ONNX_nets.CNN_MNIST/1 (1 ms)
[ RUN ] Test_ONNX_nets.MobileNet_v2/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 47828

[ OK ] Test_ONNX_nets.MobileNet_v2/1 (70 ms)
[ RUN ] Test_ONNX_nets.Emotion_ferplus/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 42092

[ OK ] Test_ONNX_nets.Emotion_ferplus/1 (84 ms)
[ RUN ] Test_ONNX_nets.Inception_v2/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 120788

[ OK ] Test_ONNX_nets.Inception_v2/1 (127 ms)
[ RUN ] Test_ONNX_nets.DenseNet121/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 138504

[ OK ] Test_ONNX_nets.DenseNet121/1 (151 ms)
[ RUN ] Test_ONNX_nets.Inception_v1/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 42156

[ OK ] Test_ONNX_nets.Inception_v1/1 (76 ms)
[ RUN ] Test_ONNX_nets.Shufflenet/1, where GetParam() = OCV/CPU
peak: 2415392
rss: 42156

[ OK ] Test_ONNX_nets.Shufflenet/1 (84 ms)
[----------] 19 tests from Test_ONNX_nets (14023 ms total)

[----------] Global test environment tear-down
[==========] 19 tests from 1 test case ran. (14023 ms total)
[ PASSED ] 19 tests.

DLIE/CPU tests:

$ make -j4 && ./bin/opencv_test_dnn --gtest_filter=Test_ONNX_nets*/0:-Test_ONNX_nets.LResNet100E_IR*

[==========] Running 19 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 19 tests from Test_ONNX_nets
[ RUN ] Test_ONNX_nets.Alexnet/0, where GetParam() = DLIE/CPU
[ OK ] Test_ONNX_nets.Alexnet/0 (1442 ms)
[ RUN ] Test_ONNX_nets.Squeezenet/0, where GetParam() = DLIE/CPU
peak: 820860
rss: 84860

[ OK ] Test_ONNX_nets.Squeezenet/0 (99 ms)
[ RUN ] Test_ONNX_nets.Googlenet/0, where GetParam() = DLIE/CPU
[ SKIP ]
[ OK ] Test_ONNX_nets.Googlenet/0 (0 ms)
[ RUN ] Test_ONNX_nets.CaffeNet/0, where GetParam() = DLIE/CPU
peak: 820860
rss: 94116

[ OK ] Test_ONNX_nets.CaffeNet/0 (1425 ms)
[ RUN ] Test_ONNX_nets.RCNN_ILSVRC13/0, where GetParam() = DLIE/CPU
peak: 864380
rss: 93272

[ OK ] Test_ONNX_nets.RCNN_ILSVRC13/0 (1339 ms)
[ RUN ] Test_ONNX_nets.VGG16/0, where GetParam() = DLIE/CPU
peak: 864380
rss: 93272

[ OK ] Test_ONNX_nets.VGG16/0 (3475 ms)
[ RUN ] Test_ONNX_nets.VGG16_bn/0, where GetParam() = DLIE/CPU
peak: 2456332
rss: 197132

[ OK ] Test_ONNX_nets.VGG16_bn/0 (3459 ms)
[ RUN ] Test_ONNX_nets.ZFNet/0, where GetParam() = DLIE/CPU
peak: 2554384
rss: 234012

[ OK ] Test_ONNX_nets.ZFNet/0 (2056 ms)
[ RUN ] Test_ONNX_nets.ResNet18v1/0, where GetParam() = DLIE/CPU
peak: 2554384
rss: 257736

[ OK ] Test_ONNX_nets.ResNet18v1/0 (334 ms)
[ RUN ] Test_ONNX_nets.ResNet50v1/0, where GetParam() = DLIE/CPU
peak: 2554384
rss: 437168

[ OK ] Test_ONNX_nets.ResNet50v1/0 (721 ms)
[ RUN ] Test_ONNX_nets.ResNet101_DUC_HDC/0, where GetParam() = DLIE/CPU
peak: 2554384
rss: 736676

[ OK ] Test_ONNX_nets.ResNet101_DUC_HDC/0 (37156 ms)
[ RUN ] Test_ONNX_nets.TinyYolov2/0, where GetParam() = DLIE/CPU
peak: 2554384
rss: 2148244

[ OK ] Test_ONNX_nets.TinyYolov2/0 (367 ms)
[ RUN ] Test_ONNX_nets.CNN_MNIST/0, where GetParam() = DLIE/CPU
peak: 2554384
rss: 2093548

[ OK ] Test_ONNX_nets.CNN_MNIST/0 (9 ms)
[ RUN ] Test_ONNX_nets.MobileNet_v2/0, where GetParam() = DLIE/CPU
peak: 2554384
rss: 2093932

[ OK ] Test_ONNX_nets.MobileNet_v2/0 (235 ms)
[ RUN ] Test_ONNX_nets.Emotion_ferplus/0, where GetParam() = DLIE/CPU
peak: 2554384
rss: 2094008

[ OK ] Test_ONNX_nets.Emotion_ferplus/0 (198 ms)
[ RUN ] Test_ONNX_nets.Inception_v2/0, where GetParam() = DLIE/CPU
[ SKIP ]
[ OK ] Test_ONNX_nets.Inception_v2/0 (0 ms)
[ RUN ] Test_ONNX_nets.DenseNet121/0, where GetParam() = DLIE/CPU
peak: 2554384
rss: 2094008

[ OK ] Test_ONNX_nets.DenseNet121/0 (704 ms)
[ RUN ] Test_ONNX_nets.Inception_v1/0, where GetParam() = DLIE/CPU
peak: 2554384
rss: 2114880

[ OK ] Test_ONNX_nets.Inception_v1/0 (297 ms)
[ RUN ] Test_ONNX_nets.Shufflenet/0, where GetParam() = DLIE/CPU
peak: 2554384
rss: 2114880

[ OK ] Test_ONNX_nets.Shufflenet/0 (367 ms)
[----------] 19 tests from Test_ONNX_nets (53684 ms total)

[----------] Global test environment tear-down
[==========] 19 tests from 1 test case ran. (53684 ms total)
[ PASSED ] 19 tests.

Note: LResNet100E_IR is excluded because they changed the model again 😕