diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper
index ef0c52af789cfed0080e9d3a4884266da7058858..7806ee999b77d6e7d1f7363748e268f4a87c998d 100755
--- a/cmake_targets/tools/build_helper
+++ b/cmake_targets/tools/build_helper
@@ -674,6 +674,7 @@ check_install_oai_software() {
 }
 
 install_asn1c_from_source(){
+    mkdir -p $OPENAIR_DIR/cmake_targets/log
     asn1_install_log=$OPENAIR_DIR/cmake_targets/log/asn1c_install_log.txt
     echo_info "\nInstalling ASN1. The log file for ASN1 installation is here: $asn1_install_log "
     (