Relaxed g++ version > 5.5

Signed-off-by: Alain Dargelas <alainmarcel@yahoo.com>
diff --git a/SVIncCompil/Makefile b/SVIncCompil/Makefile
index 225f2c9..66cb956 100644
--- a/SVIncCompil/Makefile
+++ b/SVIncCompil/Makefile
@@ -48,7 +48,7 @@
 MKDIR=mkdir
 CP=cp
 CCADMIN=CCadmin
-
+GPP=g++
 
 # build
 build: .build-post
diff --git a/SVIncCompil/buildall.sh b/SVIncCompil/buildall.sh
index ab6fb37..de95164 100755
--- a/SVIncCompil/buildall.sh
+++ b/SVIncCompil/buildall.sh
@@ -4,6 +4,14 @@
 
 # Complete Surelog build script (Builds all targets: debug, release...)
 
+export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/lib64/:$LD_LIBRARY_PATH
+export CXX=`which g++` ; export CC=`which gcc` 
+[ -f /usr/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` 
+[ -f /usr/local/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` 
+
+$CXX --version
+echo $?
+
 echo "Generating Antlr parser"
 cd ../G4
 ant compile_cpp
@@ -26,9 +34,9 @@
 API/embed_python_api.tcl
 
 echo "Make"
-make -j 4
-make CONF=Release -j 4;
-make CONF=ReleaseNoTcMalloc -j 4;
+make -j 4 GPP=${CXX}
+make CONF=Release -j 4 GPP=${CXX};
+make CONF=ReleaseNoTcMalloc -j 4 GPP=${CXX};
 
 echo "Run Tests"
 ./release.tcl ;
diff --git a/SVIncCompil/buildantlr.sh b/SVIncCompil/buildantlr.sh
index 08cbb0f..b74cc3f 100755
--- a/SVIncCompil/buildantlr.sh
+++ b/SVIncCompil/buildantlr.sh
@@ -8,6 +8,15 @@
 #########################################################################
 echo "Building Antlr"
 
+export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/lib64/:$LD_LIBRARY_PATH
+export CXX=`which g++` ; export CC=`which gcc`
+[ -f /usr/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7`
+[ -f /usr/local/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` 
+
+$CXX --version
+echo $?
+
+
 # From the internet
 #mkdir -p ../antlr4
 #cd ../antlr4
@@ -33,7 +42,7 @@
 cd runtime/Cpp
 rm -rf build run
 mkdir build && mkdir run && cd build
-cmake .. -DCMAKE_BUILD_TYPE=Release  -DCMAKE_CXX_FLAGS="-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free"
+cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_CXX_FLAGS="-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free"
 make -j 4
 DESTDIR=../../../runtime/Cpp/run make install
 
@@ -43,7 +52,7 @@
 cd Cpp-Debug
 rm -rf build run
 mkdir build && mkdir run && cd build
-cmake ..  -DCMAKE_BUILD_TYPE=Debug
+cmake .. -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_BUILD_TYPE=Debug
 make -j 4
 DESTDIR=../../../runtime/Cpp-Debug/run make install
 
@@ -53,7 +62,7 @@
 cd Cpp-AdvancedDebug
 rm -rf build run
 mkdir build && mkdir run && cd build
-cmake ..  -DCMAKE_BUILD_TYPE=Debug  -DCMAKE_CXX_FLAGS="-D_GLIBCXX_DEBUG=1 -fsanitize=address -fno-omit-frame-pointer"
+cmake .. -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_BUILD_TYPE=Debug  -DCMAKE_CXX_FLAGS="-D_GLIBCXX_DEBUG=1 -fsanitize=address -fno-omit-frame-pointer"
 make -j 4
 DESTDIR=../../../runtime/Cpp-AdvancedDebug/run make install
 echo "Done Building Antlr"
diff --git a/SVIncCompil/buildantlr_mini.sh b/SVIncCompil/buildantlr_mini.sh
index 1830f91..446fddd 100755
--- a/SVIncCompil/buildantlr_mini.sh
+++ b/SVIncCompil/buildantlr_mini.sh
@@ -9,7 +9,8 @@
 
 export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/lib64/:$LD_LIBRARY_PATH
 export CXX=`which g++` ; export CC=`which gcc`
-[ -f /usr/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7`
+[ -f /usr/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` 
+[ -f /usr/local/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` 
 
 $CXX --version
 echo $?
diff --git a/SVIncCompil/buildccache.sh b/SVIncCompil/buildccache.sh
index d952a11..db598c8 100755
--- a/SVIncCompil/buildccache.sh
+++ b/SVIncCompil/buildccache.sh
@@ -2,6 +2,15 @@
 # Build ccache
 #########################################################################
 
+export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/lib64/:$LD_LIBRARY_PATH
+export CXX=`which g++` ; export CC=`which gcc`
+[ -f /usr/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7`
+[ -f /usr/local/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` 
+
+$CXX --version
+echo $?
+
+
 mkdir -p ../ccache
 cd ../ccache
 wget https://github.com/ccache/ccache/releases/download/v3.7.5/ccache-3.7.5.tar.gz
diff --git a/SVIncCompil/builddebug.sh b/SVIncCompil/builddebug.sh
index 61cc9f4..196d5b5 100755
--- a/SVIncCompil/builddebug.sh
+++ b/SVIncCompil/builddebug.sh
@@ -3,6 +3,14 @@
 # Any subsequent(*) commands which fail will cause the shell script to exit immediately
 
 
+export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/lib64/:$LD_LIBRARY_PATH
+export CXX=`which g++` ; export CC=`which gcc`
+[ -f /usr/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` 
+[ -f /usr/local/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` 
+
+$CXX --version
+echo $?
+
 # Complete Surelog build script (Only debug target)
 
 echo "Generating Antlr parser"
@@ -28,7 +36,7 @@
 API/embed_python_api.tcl
 
 echo "Make"
-make -j 4;
+make -j 4 GPP=${CXX};
 
 echo "Make the release"
 ./release.tcl  "debug";
diff --git a/SVIncCompil/buildflatbuffer.sh b/SVIncCompil/buildflatbuffer.sh
index 20a616f..9249457 100755
--- a/SVIncCompil/buildflatbuffer.sh
+++ b/SVIncCompil/buildflatbuffer.sh
@@ -13,13 +13,16 @@
 export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/lib64/:$LD_LIBRARY_PATH
 export CXX=`which g++` ; export CC=`which gcc`
 [ -f /usr/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7`
+[ -f /usr/local/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` 
 
 $CXX --version
 echo $?
-
+echo "Configuring Flatbuffers"
 cmake -G "Unix Makefiles"  -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_CXX_FLAGS="-w -Wimplicit-fallthrough=0"  #&>  flatbuffers_configure.log
+echo "Making Flatbuffers"
 make -j 4 #&>  flatbuffers_compile.log
-./flattests  #&>  flatbuffers_test.log
+echo "Testing Flatbuffers"
+./flattests  &>  flatbuffers_test.log
 
 echo "Done Building Flatbuffers"
 
diff --git a/SVIncCompil/buildpp.sh b/SVIncCompil/buildpp.sh
index 4a5f96e..5b83930 100755
--- a/SVIncCompil/buildpp.sh
+++ b/SVIncCompil/buildpp.sh
@@ -3,6 +3,11 @@
 # Any subsequent(*) commands which fail will cause the shell script to exit immediately
 
 
+export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/lib64/:$LD_LIBRARY_PATH
+export CXX=`which g++` ; export CC=`which gcc` 
+[ -f /usr/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7`
+[ -f /usr/local/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7`
+
 # Complete Surelog build script
 
 echo "Generating Antlr parser"
@@ -21,9 +26,9 @@
 API/embed_python_api.tcl
 
 echo "Make"
-make -j 4
-make CONF=Release -j 4;
-make CONF=ReleaseNoTcMalloc -j 4;
+make -j 4 GPP=${CXX}
+make CONF=Release -j 4 GPP=${CXX};
+make CONF=ReleaseNoTcMalloc -j 4 GPP=${CXX};
 
 echo "Run Tests"
 ./release.tcl ;
diff --git a/SVIncCompil/buildrelease.sh b/SVIncCompil/buildrelease.sh
index 9593c2a..bedf920 100755
--- a/SVIncCompil/buildrelease.sh
+++ b/SVIncCompil/buildrelease.sh
@@ -6,9 +6,9 @@
 echo "Building Surelog"
 
 export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/lib64/:$LD_LIBRARY_PATH
-export CXX=`which g++` ; export CC=`which gcc` ; export GPP=`which g++`
-[ -f /usr/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` ; export GPP=`which g++-7`
-[ -f /usr/local/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` ; export GPP=`which g++-7`
+export CXX=`which g++` ; export CC=`which gcc` 
+[ -f /usr/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7`
+[ -f /usr/local/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7`
 
 $CXX --version
 echo $?
@@ -35,7 +35,7 @@
 API/embed_python_api.tcl
 
 echo "Make"
-make CONF=Release -j 4 CXX='${GPP} -Wall -O3 -fno-asm -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wno-attributes';
+make CONF=Release -j 4 GPP=${CXX};
 echo "Done Building Surelog"
 
 echo "Run Tests"
diff --git a/SVIncCompil/buildreleasepp.sh b/SVIncCompil/buildreleasepp.sh
index 9229aec..05854e1 100755
--- a/SVIncCompil/buildreleasepp.sh
+++ b/SVIncCompil/buildreleasepp.sh
@@ -4,6 +4,15 @@
 
 # Complete Surelog build script (Only updates PP grammar)
 
+export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/lib64/:$LD_LIBRARY_PATH
+export CXX=`which g++` ; export CC=`which gcc` 
+[ -f /usr/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` 
+[ -f /usr/local/bin/g++-7 ] && export CXX=`which g++-7` ; export CC=`which gcc-7` 
+
+$CXX --version
+echo $?
+
+
 echo "Generating Antlr parser"
 cd ../G4
 ant compile_cpp
@@ -20,7 +29,7 @@
 API/embed_python_api.tcl
 
 echo "Make"
-make CONF=Release -j 4;
+make CONF=Release -j 4 GPP=${CXX};
 
 echo "Run Tests"
 ./release.tcl  "release tcmalloc" ;
diff --git a/SVIncCompil/nbproject/Makefile-Release.mk b/SVIncCompil/nbproject/Makefile-Release.mk
index d086c14..a94f5eb 100644
--- a/SVIncCompil/nbproject/Makefile-Release.mk
+++ b/SVIncCompil/nbproject/Makefile-Release.mk
@@ -15,8 +15,8 @@
 CCADMIN=CCadmin
 RANLIB=ranlib
 CC=gcc
-CCC=${CCACHE} g++ -Wall -O3 -fno-asm -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wno-attributes
-CXX=${CCACHE} g++ -Wall -O3 -fno-asm -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wno-attributes
+CCC=${CCACHE} ${GPP} -Wall -O3 -fno-asm -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wno-attributes
+CXX=${CCACHE} ${GPP} -Wall -O3 -fno-asm -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wno-attributes
 FC=gfortran
 AS=as
 
@@ -164,7 +164,7 @@
 
 ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/surelog: ${OBJECTFILES}
 	${MKDIR} -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}
-	g++ -o ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/surelog ${OBJECTFILES} ${LDLIBSOPTIONS}
+	${GPP} -o ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/surelog ${OBJECTFILES} ${LDLIBSOPTIONS}
 
 ${OBJECTDIR}/API/PythonAPI.o: API/PythonAPI.cpp API/slapi_wrap.cxx API/slapi.h
 	${MKDIR} -p ${OBJECTDIR}/API
diff --git a/SVIncCompil/nbproject/configurations.xml b/SVIncCompil/nbproject/configurations.xml
index 9e1262d..c454c07 100644
--- a/SVIncCompil/nbproject/configurations.xml
+++ b/SVIncCompil/nbproject/configurations.xml
@@ -977,7 +977,7 @@
           <developmentMode>0</developmentMode>
           <architecture>2</architecture>
           <standard>8</standard>
-          <commandlineTool>${CCACHE} g++ -Wall -O3 -fno-asm -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wno-attributes</commandlineTool>
+          <commandlineTool>${CCACHE} ${GPP} -Wall -O3 -fno-asm -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wno-attributes</commandlineTool>
           <incDir>
             <pElem>../antlr4/antlr4-4.7.2/runtime/Cpp/runtime/src</pElem>
             <pElem>../flatbuffers/include</pElem>
@@ -996,7 +996,7 @@
           <linkerAddLib>
             <pElem>../antlr4/antlr4-4.7.2/runtime/Cpp/dist/</pElem>
           </linkerAddLib>
-          <commandlineTool>g++</commandlineTool>
+          <commandlineTool>${GPP}</commandlineTool>
           <linkerLibItems>
             <linkerLibStdlibItem>PosixThreads</linkerLibStdlibItem>
             <linkerLibFileItem>../antlr4/antlr4-4.7.2/runtime/Cpp/dist/libantlr4-runtime.a</linkerLibFileItem>
diff --git a/SVIncCompil/nbproject/private/configurations.xml b/SVIncCompil/nbproject/private/configurations.xml
index 21eb438..574420c 100644
--- a/SVIncCompil/nbproject/private/configurations.xml
+++ b/SVIncCompil/nbproject/private/configurations.xml
@@ -46,8 +46,6 @@
         <gdb_interceptlist>
           <gdbinterceptoptions gdb_all="false" gdb_unhandled="true" gdb_unexpected="true"/>
         </gdb_interceptlist>
-        <gdb_signals>
-        </gdb_signals>
         <gdb_options>
           <DebugOptions>
           </DebugOptions>