Unable to compile opencv on Raspberry PI

Hello,
I am trying to compile OpenCV on my Raspberry Pi 3B+ but it is getting stuck here:
[ 30%] Built target example_saliency_computeSaliency
[ 30%] Built target opencv_test_saliency
[ 30%] Built target opencv_test_text
collect2: error: ld returned 1 exit status
make[2]: *** [modules/calib3d/CMakeFiles/opencv_calib3d.dir/build.make:787: lib/libopencv_calib3d.so.4.8.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:9504: modules/calib3d/CMakeFiles/opencv_calib3d.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 30%] Built target example_text_textbox_demo
[ 31%] Built target example_text_character_recognition
[ 31%] Built target example_text_text_recognition_cnn
make: *** [Makefile:182: all] Error 2

Anyone have any advice please?

this is not the real error (which must be a few lines above),
just the result of it (calib3d not built)

try again (maybe even with cmake -j1, so you get errors in proper order) and show us, please