OpenModelica


Forgot password? | Forgot username? | Register

Building OpenModelica from source on Linux

Building OpenModelica from source on Linux

I have been using OpenModelica for quite some time now and am interested in building OpenModelica from soure on my linux machine, I need help doing so.

I followed the following steps as mentione din the README file in OpenModelica GitHub:

  • I have installed all the dependencies mentioned

  • I then follewed the steps to clone OpenModleica-minimal and update OMCompiler as mentioned

  • I then followed the steps :
    autoconf
    ./configure CC=clang CXX=clang++
    make -j8
    build/bin/omc --version


  • At this point the make command didn't return any errors but the omc wasn't created in the build/bin folder. Have I missed something?
    I also tries the stepd in the README on the OMCompiler-master but that wasn't successful either.

    Could you please point me to the steps or guide me in any way so that I can build OpenModelica on my Linux machine?

    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    Are you sure there are no error messages? As you are running make parallelized with the -j8 option, it is sometimes difficult to find the error in the output. You can try to build omc only, by running

    Code:

    > make omc

    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    I tried make omc and it failed..

    Code:



    $ ./configure CC=clang CXX=clang++

    checking for gcc... clang
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether clang accepts -g... yes
    checking for clang option to accept ISO C89... none needed
    configure: OpenModelica pre-commit hook has been installed
    ln: failed to create symbolic link '.git/hooks/pre-commit': File exists
    configure: OpenModelica commit-msg hook has been installed
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    build_short: x86_64-linux-gnu
    host_short: x86_64-linux-gnu
    checking if cppruntime is requested... no
    checking for omlibrary target... core
    checking for libraries directory... yes
    checking for CORBA... none
    configure: "Subproject OMPlot does not exist"
    configure: "Subproject OMEdit does not exist"
    configure: creating ./config.status
    config.status: creating Makefile
    === configuring in OMCompiler (/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler)
    configure: running /bin/bash ./configure --disable-option-checking '--prefix=/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build'  'CC=clang' 'CXX=clang++' '--with-ombuilddir=/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build' --cache-file=/dev/null --srcdir=.
    configure: OpenModelica pre-commit hook has been installed
    ln: failed to create symbolic link '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/.git/modules/OMC/hooks/pre-commit': File exists
    configure: OpenModelica commit-msg hook has been installed
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    build_short: x86_64-linux-gnu
    host_short: x86_64-linux-gnu
    checking for gcc... clang
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether clang accepts -g... yes
    checking for clang option to accept ISO C89... none needed
    checking whether we are using the GNU C++ compiler... yes
    checking whether clang++ accepts -g... yes
    checking how to run the C preprocessor... clang -E
    checking whether make sets $(MAKE)... yes
    checking for gfortran... gfortran
    checking whether we are using the GNU Fortran compiler... yes
    checking whether gfortran accepts -g... yes
    checking if -Werror works... ok
    checking looking for --no-undefined... yes
    checking getconf LONG_BIT = 64 CFLAGS... adding -fPIC
    checking whether clang++ supports C++11 features by default... no
    checking whether clang++ supports C++11 features with -std=c++11... yes
    checking for omc... failed (tried ). Building it through bootstrapping (you might end up unable to recompile omc if you modify source code).
    checking for library containing clock_gettime... none required
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for antlr.Tool support... ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
    yes
    checking expat.h usability... yes
    checking expat.h presence... yes
    checking for expat.h... yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking for vprintf... yes
    checking for _doprnt... no
    checking for getcwd... yes
    checking for select... yes
    checking for strdup... yes
    checking for strerror... yes
    checking for scandir... no
    checking for OpenMP... no
    checking runtime compiler... clang ok
    checking runtime compiler CFLAGS... -fPIC -O0 -march=native
    checking for library containing dlopen... -ldl
    NO_LPLIB: ''
    checking for library containing dlopen... (cached) -ldl
    checking for library containing sqrt... -lm
    checking for library containing colamd... no
    checking for library containing make_lp... no
    lpsolve linking failed using -lm -ldl
    checking lp_lib.h usability... no
    checking lp_lib.h presence... no
    checking for lp_lib.h... no
    checking lpsolve/lp_lib.h usability... no
    checking lpsolve/lp_lib.h presence... no
    checking for lpsolve/lp_lib.h... no
    failed to find lpsolve55 headers
    checking for socket... yes
    checking for gethostbyname... yes
    checking LAPACK/BLAS flags...  -llapack -lblas 
    checking idas/idas.h usability... no
    checking idas/idas.h presence... no
    checking for idas/idas.h... no
    checking for idas/idas.h... (cached) no
    checking idas/idas_dense.h usability... no
    checking idas/idas_dense.h presence... no
    checking for idas/idas_dense.h... no
    checking kinsol/kinsol.h usability... no
    checking kinsol/kinsol.h presence... no
    checking for kinsol/kinsol.h... no
    checking kinsol/kinsol_dense.h usability... no
    checking kinsol/kinsol_dense.h presence... no
    checking for kinsol/kinsol_dense.h... no
    checking nvector/nvector_serial.h usability... no
    checking nvector/nvector_serial.h presence... no
    checking for nvector/nvector_serial.h... no
    checking sundials/sundials_types.h usability... no
    checking sundials/sundials_types.h presence... no
    checking for sundials/sundials_types.h... no
    checking sundials/sundials_math.h usability... no
    checking sundials/sundials_math.h presence... no
    checking for sundials/sundials_math.h... no
    checking Sundials linking... failed to link KINInit
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking gettext linking... in C-library
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking gettext linking... in C-library
    checking hwloc.h usability... yes
    checking hwloc.h presence... yes
    checking for hwloc.h... yes
    checking for hwloc_get_nbobjs_by_depth in -lhwloc... yes
    checking uuid/uuid.h usability... no
    checking uuid/uuid.h presence... no
    checking for uuid/uuid.h... no
    checking for pthread_self in -lpthread... yes
    checking for CORBA... none
    checking for OpenCL... checking CL/cl.h usability... no
    checking CL/cl.h presence... no
    checking for CL/cl.h... no
    checking OpenCL/cl.h usability... no
    checking OpenCL/cl.h presence... no
    checking for OpenCL/cl.h... no
    checking for revision... OMCompiler v1.12.0-dev.73+ge1918e8
    checking for OpenModelica platform name... x86_64-linux
    checking for Modelica platform name... linux64
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating Compiler/Makefile
    config.status: creating Compiler/Script/Makefile
    config.status: creating Compiler/Template/Makefile
    config.status: creating Compiler/runtime/Makefile
    config.status: creating Compiler/runtime/config.unix.h
    config.status: creating Parser/Makefile
    config.status: creating SimulationRuntime/cpp/Makefile.env
    config.status: creating SimulationRuntime/c/Makefile
    config.status: creating SimulationRuntime/opc/ua/Makefile
    config.status: creating SimulationRuntime/fmi/export/buildproject/Makefile
    config.status: creating SimulationRuntime/java_interface/Makefile
    config.status: creating SimulationRuntime/ParModelica/Makefile
    config.status: creating SimulationRuntime/ParModelica/auto/Makefile
    config.status: creating SimulationRuntime/ParModelica/explicit/openclrt/Makefile
    config.status: creating Compiler/boot/Makefile
    config.status: creating Compiler/Lexers/Makefile
    config.status: executing config.unix.h.fix commands
    === configuring in SimulationRuntime/cpp (/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/SimulationRuntime/cpp)
    configure: running /bin/bash ./configure --disable-option-checking '--prefix=/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build'  'CC=clang' 'CXX=clang++' '--with-ombuilddir=/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build' --cache-file=/dev/null --srcdir=.
    checking for gcc... clang
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether clang accepts -g... yes
    checking for clang option to accept ISO C89... none needed
    checking whether we are using the GNU C++ compiler... yes
    checking whether clang++ accepts -g... yes
    checking how to run the C preprocessor... clang -E
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking if boost static linking is requested... no
    checking if boost real paths are requested... no
    checking if c++03 support is requested... no
    checking if runtime profiling is requested... no
    checking if ScoreP is requested... no
    ScoreP-home is set to
    checking if sundials for FMUs is requested... no
    checking if parallel output is requested... no
    checking if logger should be used... yes
    Build type is set to RelWithDebInfo
    configure: creating ./config.status
    config.status: creating Makefile

    Configured OpenModelica successfully using the following options:
    Simulations may use UMFPACK: No
    Simulations may use sundials suite: No
    Simulations may use UMFPACK: Yes
    ParModelica: No
    === configuring in OMPlot (/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMPlot)
    configure: WARNING: no configuration information is in OMPlot
    === configuring in OMEdit (/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMEdit)
    configure: WARNING: no configuration information is in OMEdit

    Edited by: jalpanchal - Dec-20-16 05:22:02
    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    part two:

    Code:




    $make omc


    make -C OMCompiler
    make[1]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler'
    echo Making build directories under /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build
    Making build directories under /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build
    if [ "@APP@" = ".app" ]; then mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/Applications/; fi
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/bin
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/lib/omc/emcc
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/lib/x86_64-linux-gnu/omc
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/gc/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/linearization/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/optimization/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/simulation/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/simulation/results/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/simulation/solver/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/simulation/solver/initialization/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/meta/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/meta/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/util/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/fmi1/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/fmi2/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/scripting-API
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/share/omc/java/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/share//omc/scripts/OpenTurns/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/share/doc/omc/testmodels
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/share/man//man1/
    make bootstrap-dependencies interactive sim-dependencies
    make[2]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler'
    echo Making build directories under /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build
    Making build directories under /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build
    if [ "@APP@" = ".app" ]; then mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/Applications/; fi
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/bin
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/lib/omc/emcc
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/lib/x86_64-linux-gnu/omc
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/gc/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/linearization/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/optimization/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/simulation/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/simulation/results/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/simulation/solver/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/simulation/solver/initialization/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/meta/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/meta/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/util/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/fmi1/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/c/fmi2/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc/scripting-API
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/share/omc/java/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/share//omc/scripts/OpenTurns/
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/share/doc/omc/testmodels
    mkdir -p /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/share/man//man1/
    if test -f 3rdParty/graphstream/org.omc.graphstream.jar; then cp -p 3rdParty/graphstream/org.omc.graphstream.jar /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/share/omc/java/.; fi
    if test -f 3rdParty/graphstream/Makefile; then make CC="clang" CXX="clang++" CFLAGS="-g -O2 -fno-stack-protector -fPIC -g -O2 -fno-stack-protector -fPIC  -std=c++11" -C 3rdParty/graphstream/; fi
    make[3]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/graphstream'
    make CC="clang" CXX="clang++" CFLAGS="-g -O2 -fno-stack-protector -fPIC -g -O2 -fno-stack-protector -fPIC  -std=c++11" -C gs-netstream/c++ all
    make[4]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/graphstream/gs-netstream/c++'
    mkdir -p obj
    clang++ -g -O2 -fno-stack-protector -fPIC -g -O2 -fno-stack-protector -fPIC  -std=c++11 -c src/netstream-storage.cpp -o obj/netstream-storage.o
    mkdir -p obj
    clang++ -g -O2 -fno-stack-protector -fPIC -g -O2 -fno-stack-protector -fPIC  -std=c++11 -c src/netstream-socket.cpp -o obj/netstream-socket.o
    mkdir -p obj
    clang++ -g -O2 -fno-stack-protector -fPIC -g -O2 -fno-stack-protector -fPIC  -std=c++11 -c src/netstream-sender.cpp -o obj/netstream-sender.o
    mkdir -p obj
    clang++ -g -O2 -fno-stack-protector -fPIC -g -O2 -fno-stack-protector -fPIC  -std=c++11 -c src/netstream-main.cpp -o obj/netstream-main.o
    clang++ -g -O2 -fno-stack-protector -fPIC -g -O2 -fno-stack-protector -fPIC  -std=c++11 -Iinclude obj/netstream-storage.o obj/netstream-socket.o obj/netstream-sender.o obj/netstream-main.o -o netstream-main
    ar rcs libnetstream.a  obj/netstream-storage.o obj/netstream-socket.o obj/netstream-sender.o obj/netstream-main.o
    make[4]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/graphstream/gs-netstream/c++'
    make[3]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/graphstream'
    test -d 3rdParty/FMIL
    mkdir -p 3rdParty/FMIL/build
    (cd 3rdParty/FMIL/build && test -f Makefile || CC="clang" CXX="clang++" CFLAGS="-g -O2 -fno-stack-protector -fPIC" CPPFLAGS="" CC="clang" CXX="clang++" CFLAGS="-g -O2 -fno-stack-protector -fPIC" CPPFLAGS="" LDFLAGS="" cmake  -D CMAKE_AR:String="ar"  -D FMILIB_BUILD_SHARED_LIB:Bool=ON -D FMILIB_BUILD_TESTS:Bool=OFF -D FMILIB_GENERATE_DOXYGEN_DOC:Bool=OFF -DCMAKE_COLOR_MAKEFILE:Bool=OFF -DFMILIB_INSTALL_PREFIX:String=../install .. -G "Unix Makefiles")
    -- The C compiler identification is Clang 3.8.0
    -- The CXX compiler identification is Clang 3.8.0
    -- Check for working C compiler: /usr/bin/clang
    -- Check for working C compiler: /usr/bin/clang -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/clang++
    -- Check for working CXX compiler: /usr/bin/clang++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Looking for include file stdarg.h
    -- Looking for include file stdarg.h - found
    -- Looking for include file stdlib.h
    -- Looking for include file stdlib.h - found
    -- Looking for include file stddef.h
    -- Looking for include file stddef.h - found
    -- Looking for include file stdint.h
    -- Looking for include file stdint.h - found
    -- Looking for include file inttypes.h
    -- Looking for include file inttypes.h - found
    -- Looking for include file locale.h
    -- Looking for include file locale.h - found
    -- Looking for vsnprintf
    -- Looking for vsnprintf - found
    -- Looking for snprintf
    -- Looking for snprintf - found
    -- Looking for vasprintf
    -- Looking for vasprintf - found
    -- Looking for asprintf
    -- Looking for asprintf - found
    -- Looking for localeconv
    -- Looking for localeconv - found
    -- Looking for sys/types.h
    -- Looking for sys/types.h - found
    -- Check size of long double
    -- Check size of long double - done
    -- Check size of long long int
    -- Check size of long long int - done
    -- Check size of unsigned long long int
    -- Check size of unsigned long long int - done
    -- Check size of struct lconv
    -- Check size of struct lconv - done
    -- Performing Test HAVE_LCONV_DECIMAL_POINT
    -- Performing Test HAVE_LCONV_DECIMAL_POINT - Success
    -- Performing Test HAVE_LCONV_THOUSANDS_SEP
    -- Performing Test HAVE_LCONV_THOUSANDS_SEP - Success
    -- Check size of intmax_t
    -- Check size of intmax_t - done
    -- Check size of uintmax_t
    -- Check size of uintmax_t - done
    -- Check size of uintptr_t
    -- Check size of uintptr_t - done
    -- Check size of ptrdiff_t
    -- Check size of ptrdiff_t - done
    -- Looking for va_copy
    -- Looking for va_copy - found
    -- Looking for __va_copy
    -- Looking for __va_copy - found
    -- Check size of off64_t
    -- Check size of off64_t - done
    -- Looking for fseeko
    -- Looking for fseeko - found
    -- Looking for unistd.h
    -- Looking for unistd.h - found
    CMake Warning (dev) at Config.cmake/mergestaticlibs.cmake:43 (get_target_property):
      Policy CMP0026 is not set: Disallow use of the LOCATION target property.
      Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.

      The LOCATION property should not be read from target "fmiimport".  Use the
      target name directly with add_custom_command, or use the generator
      expression $<TARGET_FILE>, as appropriate.

    Call Stack (most recent call first):
      CMakeLists.txt:276 (merge_static_libs)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    CMake Warning (dev) at Config.cmake/mergestaticlibs.cmake:43 (get_target_property):
      Policy CMP0026 is not set: Disallow use of the LOCATION target property.
      Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.

      The LOCATION property should not be read from target "jmutils".  Use the
      target name directly with add_custom_command, or use the generator
      expression $<TARGET_FILE>, as appropriate.

    Call Stack (most recent call first):
      CMakeLists.txt:276 (merge_static_libs)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    CMake Warning (dev) at Config.cmake/mergestaticlibs.cmake:43 (get_target_property):
      Policy CMP0026 is not set: Disallow use of the LOCATION target property.
      Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.

      The LOCATION property should not be read from target "fmixml".  Use the
      target name directly with add_custom_command, or use the generator
      expression $<TARGET_FILE>, as appropriate.

    Call Stack (most recent call first):
      CMakeLists.txt:276 (merge_static_libs)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    CMake Warning (dev) at Config.cmake/mergestaticlibs.cmake:43 (get_target_property):
      Policy CMP0026 is not set: Disallow use of the LOCATION target property.
      Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.

      The LOCATION property should not be read from target "fmizip".  Use the
      target name directly with add_custom_command, or use the generator
      expression $<TARGET_FILE>, as appropriate.

    Call Stack (most recent call first):
      CMakeLists.txt:276 (merge_static_libs)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    CMake Warning (dev) at Config.cmake/mergestaticlibs.cmake:43 (get_target_property):
      Policy CMP0026 is not set: Disallow use of the LOCATION target property.
      Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.

      The LOCATION property should not be read from target "fmicapi".  Use the
      target name directly with add_custom_command, or use the generator
      expression $<TARGET_FILE>, as appropriate.

    Call Stack (most recent call first):
      CMakeLists.txt:276 (merge_static_libs)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    CMake Warning (dev) at Config.cmake/mergestaticlibs.cmake:43 (get_target_property):
      Policy CMP0026 is not set: Disallow use of the LOCATION target property.
      Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.

      The LOCATION property should not be read from target "minizip".  Use the
      target name directly with add_custom_command, or use the generator
      expression $<TARGET_FILE>, as appropriate.

    Call Stack (most recent call first):
      CMakeLists.txt:276 (merge_static_libs)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    CMake Warning (dev) at Config.cmake/mergestaticlibs.cmake:43 (get_target_property):
      Policy CMP0026 is not set: Disallow use of the LOCATION target property.
      Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.

      The LOCATION property should not be read from target "zlib".  Use the
      target name directly with add_custom_command, or use the generator
      expression $<TARGET_FILE>, as appropriate.

    Call Stack (most recent call first):
      CMakeLists.txt:276 (merge_static_libs)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    CMake Warning (dev) at Config.cmake/mergestaticlibs.cmake:43 (get_target_property):
      Policy CMP0026 is not set: Disallow use of the LOCATION target property.
      Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.

      The LOCATION property should not be read from target "c99snprintf".  Use
      the target name directly with add_custom_command, or use the generator
      expression $<TARGET_FILE>, as appropriate.

    Call Stack (most recent call first):
      CMakeLists.txt:276 (merge_static_libs)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    -- will be merging /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmiimport.a;/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libjmutils.a;/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmixml.a;/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmizip.a;/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmicapi.a;/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx/./libexpat.a;/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/Config.cmake/Minizip/libminizip.a;/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/zlib/libz.a;/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ThirdParty/c99_snprintf/libc99snprintf.a
    CMake Warning (dev) at Config.cmake/mergestaticlibs.cmake:85 (get_target_property):
      Policy CMP0026 is not set: Disallow use of the LOCATION target property.
      Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.

      The LOCATION property should not be read from target "fmilib".  Use the
      target name directly with add_custom_command, or use the generator
      expression $<TARGET_FILE>, as appropriate.

    Call Stack (most recent call first):
      CMakeLists.txt:276 (merge_static_libs)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    -- outfile location is /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmilib.a
    -- Configuring done
    CMake Warning (dev) at Config.cmake/fmixml.cmake:123 (add_dependencies):
      Policy CMP0046 is not set: Error on non-existent dependency in
      add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.

      The dependency target
      "/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/CMakeLists.txt"
      of target "expatex" does not exist.
    Call Stack (most recent call first):
      CMakeLists.txt:183 (include)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    CMake Warning (dev) at Config.cmake/fmixml.cmake:123 (add_dependencies):
      Policy CMP0046 is not set: Error on non-existent dependency in
      add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.

      The dependency target
      "/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/CMakeCache.txt"
      of target "expatex" does not exist.
    Call Stack (most recent call first):
      CMakeLists.txt:183 (include)
    This warning is for project developers.  Use -Wno-dev to suppress it.

    -- Generating done
    -- Build files have been written to: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build
    test -f 3rdParty/FMIL/build/libfmilib_shared.so || CC="clang" CXX="clang++" CFLAGS="-g -O2 -fno-stack-protector -fPIC" CPPFLAGS="" make -C 3rdParty/FMIL/build
    make[3]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[4]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    Scanning dependencies of target expatex
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [  0%] Creating directories for 'expatex'
    [  1%] No download step for 'expatex'
    [  2%] No patch step for 'expatex'
    [  3%] No update step for 'expatex'
    [  3%] Performing configure step for 'expatex'
    loading initial cache file /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx/tmp/expatex-cache-Release.cmake
    -- The C compiler identification is Clang 3.8.0
    -- The CXX compiler identification is Clang 3.8.0
    -- Check for working C compiler: /usr/bin/clang
    -- Check for working C compiler: /usr/bin/clang -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/clang++
    -- Check for working CXX compiler: /usr/bin/clang++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Looking for dlfcn.h
    -- Looking for dlfcn.h - found
    -- Looking for fcntl.h
    -- Looking for fcntl.h - found
    -- Looking for inttypes.h
    -- Looking for inttypes.h - found
    -- Looking for memory.h
    -- Looking for memory.h - found
    -- Looking for stdint.h
    -- Looking for stdint.h - found
    -- Looking for stdlib.h
    -- Looking for stdlib.h - found
    -- Looking for strings.h
    -- Looking for strings.h - found
    -- Looking for string.h
    -- Looking for string.h - found
    -- Looking for sys/stat.h
    -- Looking for sys/stat.h - found
    -- Looking for sys/types.h
    -- Looking for sys/types.h - found
    -- Looking for unistd.h
    -- Looking for unistd.h - found
    -- Looking for getpagesize
    -- Looking for getpagesize - found
    -- Looking for bcopy
    -- Looking for bcopy - found
    -- Looking for memmove
    -- Looking for memmove - found
    -- Looking for mmap
    -- Looking for mmap - found
    -- Looking for 4 include files stdlib.h, ..., float.h
    -- Looking for 4 include files stdlib.h, ..., float.h - found
    -- Check if the system is big endian
    -- Searching 16 bit integer
    -- Looking for stddef.h
    -- Looking for stddef.h - found
    -- Check size of unsigned short
    -- Check size of unsigned short - done
    -- Using unsigned short
    -- Check if the system is big endian - little endian
    -- Looking for off_t
    -- Looking for off_t - not found
    -- Looking for size_t
    -- Looking for size_t - not found
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx
    [  4%] Performing dependent_reconfigure step for 'expatex'
    Running:  /usr/bin/cmake -G  Unix Makefiles  -DBUILD_tools:BOOLEAN=OFF -DBUILD_examples:BOOLEAN=OFF -DBUILD_tests:BOOLEAN=OFF -DBUILD_shared:BOOLEAN=OFF -DXML_DTD:BOOLEAN=OFF -DXML_NS:BOOLEAN=OFF -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_SYSTEM_NAME:STRING=Linux -DCMAKE_RC_COMPILER:STRING= -DCMAKE_C_FLAGS:STRING=-g -O2 -fno-stack-protector -fPIC  -fPIC -DXML_STATIC -DFMI_XML_QUERY -DCMAKE_C_FLAGS_DEBUG:STRING=-g -DCMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG -DCMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG -DCMAKE_EXE_LINKER_FLAGS:STRING= -DCMAKE_LINK_LIBRARY_FLAG:STRING=-l -DCMAKE_MODULE_LINKER_FLAGS:STRING= -DCMAKE_SHARED_LINKER_FLAGS:STRING= -DCMAKE_INSTALL_PREFIX:PATH=/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx/install /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Expat/expat-2.1.0
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx
    [  5%] Performing build step for 'expatex'
    make[6]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    make[7]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    make[8]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    Scanning dependencies of target expat
    make[8]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    make[8]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    [ 16%] Building C object CMakeFiles/expat.dir/lib/xmlparse.c.o
    [ 33%] Building C object CMakeFiles/expat.dir/lib/xmlrole.c.o
    [ 50%] Building C object CMakeFiles/expat.dir/lib/xmltok.c.o
    [ 66%] Building C object CMakeFiles/expat.dir/lib/xmltok_impl.c.o
    [ 83%] Building C object CMakeFiles/expat.dir/lib/xmltok_ns.c.o
    [100%] Linking C static library libexpat.a
    make[8]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    [100%] Built target expat
    make[7]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    make[6]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    [  6%] Performing install step for 'expatex'
    make[6]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    make[7]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    make[8]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    make[8]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    [100%] Built target expat
    make[7]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    Install the project...
    -- Install configuration: "Release"
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx/install/lib/libexpat.a
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx/install/include/expat.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx/install/include/expat_external.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx/install/lib/pkgconfig/expat.pc
    make[6]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx'
    [  7%] Completed 'expatex'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [  7%] Built target expatex
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    Scanning dependencies of target c99snprintf
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [  7%] Building C object ThirdParty/c99_snprintf/CMakeFiles/c99snprintf.dir/c99-snprintf_1.1/snprintf.c.o
    [  8%] Linking C static library libc99snprintf.a
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [  8%] Built target c99snprintf
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    Scanning dependencies of target jmutils
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [  9%] Building C object CMakeFiles/jmutils.dir/src/Util/src/JM/jm_callbacks.c.o
    [ 10%] Building C object CMakeFiles/jmutils.dir/src/Util/src/JM/jm_templates_inst.c.o
    [ 11%] Building C object CMakeFiles/jmutils.dir/src/Util/src/JM/jm_named_ptr.c.o
    [ 12%] Building C object CMakeFiles/jmutils.dir/src/Util/src/JM/jm_portability.c.o
    [ 12%] Building C object CMakeFiles/jmutils.dir/src/Util/src/FMI/fmi_version.c.o
    [ 13%] Building C object CMakeFiles/jmutils.dir/src/Util/src/FMI/fmi_util.c.o
    [ 14%] Building C object CMakeFiles/jmutils.dir/src/Util/src/FMI1/fmi1_enums.c.o
    [ 15%] Building C object CMakeFiles/jmutils.dir/src/Util/src/FMI2/fmi2_enums.c.o
    [ 15%] Linking C static library libjmutils.a
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 15%] Built target jmutils
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    Scanning dependencies of target fmixml
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 16%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI/fmi_xml_context.c.o
    [ 17%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI1/fmi1_xml_parser.c.o
    [ 17%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI1/fmi1_xml_model_description.c.o
    [ 18%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI1/fmi1_xml_type.c.o
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/src/XML/src/FMI1/fmi1_xml_type.c:31:12: warning:
          address of array 'du->displayUnit' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if(du->displayUnit) return du;
        ~~ ~~~~^~~~~~~~~~~
    1 warning generated.
    [ 19%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI1/fmi1_xml_unit.c.o
    [ 20%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI1/fmi1_xml_vendor_annotations.c.o
    [ 20%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI1/fmi1_xml_variable.c.o
    [ 21%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI1/fmi1_xml_capabilities.c.o
    [ 22%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI1/fmi1_xml_cosim.c.o
    [ 23%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI2/fmi2_xml_parser.c.o
    [ 23%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI2/fmi2_xml_model_description.c.o
    [ 24%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI2/fmi2_xml_model_structure.c.o
    [ 25%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI2/fmi2_xml_type.c.o
    [ 26%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI2/fmi2_xml_unit.c.o
    [ 27%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI2/fmi2_xml_vendor_annotations.c.o
    [ 27%] Building C object CMakeFiles/fmixml.dir/src/XML/src/FMI2/fmi2_xml_variable.c.o
    [ 28%] Linking C static library libfmixml.a
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 28%] Built target fmixml
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    Scanning dependencies of target zlib
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 29%] Building C object zlib/CMakeFiles/zlib.dir/adler32.o
    [ 30%] Building C object zlib/CMakeFiles/zlib.dir/compress.o
    [ 30%] Building C object zlib/CMakeFiles/zlib.dir/crc32.o
    [ 31%] Building C object zlib/CMakeFiles/zlib.dir/deflate.o
    [ 32%] Building C object zlib/CMakeFiles/zlib.dir/gzclose.o
    [ 33%] Building C object zlib/CMakeFiles/zlib.dir/gzlib.o
    [ 34%] Building C object zlib/CMakeFiles/zlib.dir/gzread.o
    [ 34%] Building C object zlib/CMakeFiles/zlib.dir/gzwrite.o
    [ 35%] Building C object zlib/CMakeFiles/zlib.dir/inflate.o
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Zlib/zlib-1.2.6/inflate.c:1496:61: warning:
          shifting a negative signed value is undefined [-Wshift-negative-value]
        if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
                                                            ~~~ ^
    1 warning generated.
    [ 36%] Building C object zlib/CMakeFiles/zlib.dir/infback.o
    [ 37%] Building C object zlib/CMakeFiles/zlib.dir/inftrees.o
    [ 37%] Building C object zlib/CMakeFiles/zlib.dir/inffast.o
    [ 38%] Building C object zlib/CMakeFiles/zlib.dir/trees.o
    [ 39%] Building C object zlib/CMakeFiles/zlib.dir/uncompr.o
    [ 40%] Building C object zlib/CMakeFiles/zlib.dir/zutil.o
    [ 41%] Linking C static library libz.a
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 41%] Built target zlib
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    Scanning dependencies of target minizip
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 42%] Building C object Config.cmake/Minizip/CMakeFiles/minizip.dir/__/__/ThirdParty/Minizip/minizip/ioapi.c.o
    [ 43%] Building C object Config.cmake/Minizip/CMakeFiles/minizip.dir/__/__/ThirdParty/Minizip/minizip/miniunz.c.o
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/miniunz.c:110:13: warning:
          extra tokens at end of #ifdef directive [-Wextra-tokens]
    #ifdef unix || __APPLE__
                ^
                //
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/miniunz.c:141:11: warning:
          implicit declaration of function 'mkdir' is invalid in C99 [-Wimplicit-function-declaration]
        ret = mkdir (dirname,0775);
              ^
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/miniunz.c:432:25: warning:
          passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                    makedir(write_filename);
                            ^~~~~~~~~~~~~~
    3 warnings generated.
    [ 44%] Building C object Config.cmake/Minizip/CMakeFiles/minizip.dir/__/__/ThirdParty/Minizip/minizip/minizip.c.o
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/minizip.c:104:13: warning:
          extra tokens at end of #ifdef directive [-Wextra-tokens]
    #ifdef unix || __APPLE__
                ^
                //
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/minizip.c:421:26: warning:
          passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                    filetime(filenameinzip,&zi.tmz_date,&zi.dosDate);
                             ^~~~~~~~~~~~~
    2 warnings generated.
    [ 45%] Building C object Config.cmake/Minizip/CMakeFiles/minizip.dir/__/__/ThirdParty/Minizip/minizip/unzip.c.o
    [ 45%] Building C object Config.cmake/Minizip/CMakeFiles/minizip.dir/__/__/ThirdParty/Minizip/minizip/zip.c.o
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/zip.c:1118:15: warning:
          equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((level==2))
             ~~~~~^~~
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/zip.c:1118:15: note:
          remove extraneous parentheses around the comparison to silence this warning
        if ((level==2))
            ~     ^  ~
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/zip.c:1118:15: note:
          use '=' to turn this equality comparison into an assignment
        if ((level==2))
                  ^~
                  =
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/zip.c:1120:15: warning:
          equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((level==1))
             ~~~~~^~~
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/zip.c:1120:15: note:
          remove extraneous parentheses around the comparison to silence this warning
        if ((level==1))
            ~     ^  ~
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/ThirdParty/Minizip/minizip/zip.c:1120:15: note:
          use '=' to turn this equality comparison into an assignment
        if ((level==1))
                  ^~
                  =
    2 warnings generated.
    [ 46%] Linking C static library libminizip.a
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 46%] Built target minizip
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    Scanning dependencies of target fmizip
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 47%] Building C object CMakeFiles/fmizip.dir/src/ZIP/src/fmi_zip_unzip.c.o
    [ 48%] Building C object CMakeFiles/fmizip.dir/src/ZIP/src/fmi_zip_zip.c.o
    [ 48%] Linking C static library libfmizip.a
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 48%] Built target fmizip
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    Scanning dependencies of target fmicapi
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 49%] Building C object CMakeFiles/fmicapi.dir/src/CAPI/src/FMI1/fmi1_capi_cs.c.o
    [ 50%] Building C object CMakeFiles/fmicapi.dir/src/CAPI/src/FMI1/fmi1_capi_me.c.o
    [ 50%] Building C object CMakeFiles/fmicapi.dir/src/CAPI/src/FMI1/fmi1_capi.c.o
    [ 51%] Building C object CMakeFiles/fmicapi.dir/src/CAPI/src/FMI2/fmi2_capi_cs.c.o
    [ 52%] Building C object CMakeFiles/fmicapi.dir/src/CAPI/src/FMI2/fmi2_capi_me.c.o
    [ 53%] Building C object CMakeFiles/fmicapi.dir/src/CAPI/src/FMI2/fmi2_capi.c.o
    [ 53%] Linking C static library libfmicapi.a
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 53%] Built target fmicapi
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    Scanning dependencies of target fmilib_shared
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 54%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI/fmi_import_context.c.o
    [ 55%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI/fmi_import_util.c.o
    [ 56%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI1/fmi1_import_cosim.c.o
    [ 56%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI1/fmi1_import_capi.c.o
    [ 57%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI1/fmi1_import_type.c.o
    [ 58%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI1/fmi1_import_unit.c.o
    [ 59%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI1/fmi1_import_variable.c.o
    [ 59%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI1/fmi1_import_variable_list.c.o
    [ 60%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI1/fmi1_import_vendor_annotations.c.o
    [ 61%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI1/fmi1_import.c.o
    [ 62%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI1/fmi1_import_capabilities.c.o
    [ 63%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI1/fmi1_import_convenience.c.o
    [ 63%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI2/fmi2_import_capi.c.o
    [ 64%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI2/fmi2_import_type.c.o
    [ 65%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI2/fmi2_import_unit.c.o
    [ 66%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI2/fmi2_import_variable.c.o
    [ 66%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI2/fmi2_import_variable_list.c.o
    [ 67%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI2/fmi2_import.c.o
    [ 68%] Building C object CMakeFiles/fmilib_shared.dir/src/Import/src/FMI2/fmi2_import_convenience.c.o
    [ 69%] Building C object CMakeFiles/fmilib_shared.dir/src/Util/src/JM/jm_callbacks.c.o
    [ 70%] Building C object CMakeFiles/fmilib_shared.dir/src/Util/src/JM/jm_templates_inst.c.o
    [ 70%] Building C object CMakeFiles/fmilib_shared.dir/src/Util/src/JM/jm_named_ptr.c.o
    [ 71%] Building C object CMakeFiles/fmilib_shared.dir/src/Util/src/JM/jm_portability.c.o
    [ 72%] Building C object CMakeFiles/fmilib_shared.dir/src/Util/src/FMI/fmi_version.c.o
    [ 73%] Building C object CMakeFiles/fmilib_shared.dir/src/Util/src/FMI/fmi_util.c.o
    [ 73%] Building C object CMakeFiles/fmilib_shared.dir/src/Util/src/FMI1/fmi1_enums.c.o
    [ 74%] Building C object CMakeFiles/fmilib_shared.dir/src/Util/src/FMI2/fmi2_enums.c.o
    [ 75%] Linking C shared library libfmilib_shared.so
    CMakeFiles/fmilib_shared.dir/src/Util/src/JM/jm_portability.c.o: In function `jm_mktemp':
    /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/src/Util/src/JM/jm_portability.c:143: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 75%] Built target fmilib_shared
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    Scanning dependencies of target fmiimport
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 76%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI/fmi_import_context.c.o
    [ 77%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI/fmi_import_util.c.o
    [ 78%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI1/fmi1_import_cosim.c.o
    [ 79%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI1/fmi1_import_capi.c.o
    [ 79%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI1/fmi1_import_type.c.o
    [ 80%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI1/fmi1_import_unit.c.o
    [ 81%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI1/fmi1_import_variable.c.o
    [ 82%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI1/fmi1_import_variable_list.c.o
    [ 82%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI1/fmi1_import_vendor_annotations.c.o
    [ 83%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI1/fmi1_import.c.o
    [ 84%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI1/fmi1_import_capabilities.c.o
    [ 85%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI1/fmi1_import_convenience.c.o
    [ 86%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI2/fmi2_import_capi.c.o
    [ 86%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI2/fmi2_import_type.c.o
    [ 87%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI2/fmi2_import_unit.c.o
    [ 88%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI2/fmi2_import_variable.c.o
    [ 89%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI2/fmi2_import_variable_list.c.o
    [ 89%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI2/fmi2_import.c.o
    [ 90%] Building C object CMakeFiles/fmiimport.dir/src/Import/src/FMI2/fmi2_import_convenience.c.o
    [ 91%] Linking C static library libfmiimport.a
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 91%] Built target fmiimport
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 92%] Generating ThirdParty/c99_snprintf/libc99snprintf.a.objlist
    -- Extracting object files from /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ThirdParty/c99_snprintf/libc99snprintf.a
    [ 93%] Generating libfmiimport.a.objlist
    -- Extracting object files from /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmiimport.a
    [ 93%] Generating libjmutils.a.objlist
    -- Extracting object files from /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libjmutils.a
    [ 94%] Generating libfmixml.a.objlist
    -- Extracting object files from /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmixml.a
    [ 95%] Generating libfmizip.a.objlist
    -- Extracting object files from /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmizip.a
    [ 96%] Generating libfmicapi.a.objlist
    -- Extracting object files from /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmicapi.a
    [ 96%] Generating ExpatEx/libexpat.a.objlist
    -- Extracting object files from /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/ExpatEx/./libexpat.a
    [ 97%] Generating Config.cmake/Minizip/libminizip.a.objlist
    -- Extracting object files from /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/Config.cmake/Minizip/libminizip.a
    [ 98%] Generating zlib/libz.a.objlist
    -- Extracting object files from /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/zlib/libz.a
    [ 99%] Generating fmilib_dummy.c
    Scanning dependencies of target fmilib
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 99%] Building C object CMakeFiles/fmilib.dir/fmilib_dummy.c.o
    [100%] Linking C static library libfmilib.a
    Running: ar ru /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libfmiimport.a.objlist
    ar: `u' modifier ignored since `D' is the default (see `U')
    Running: ar ru /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libjmutils.a.objlist
    ar: `u' modifier ignored since `D' is the default (see `U')
    Running: ar ru /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libfmixml.a.objlist
    ar: `u' modifier ignored since `D' is the default (see `U')
    Running: ar ru /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libfmizip.a.objlist
    ar: `u' modifier ignored since `D' is the default (see `U')
    Running: ar ru /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libfmicapi.a.objlist
    ar: `u' modifier ignored since `D' is the default (see `U')
    Running: ar ru /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libexpat.a.objlist
    ar: `u' modifier ignored since `D' is the default (see `U')
    Running: ar ru /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libminizip.a.objlist
    ar: `u' modifier ignored since `D' is the default (see `U')
    Running: ar ru /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libz.a.objlist
    ar: `u' modifier ignored since `D' is the default (see `U')
    Running: ar ru /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libc99snprintf.a.objlist
    ar: `u' modifier ignored since `D' is the default (see `U')
    Running: /usr/bin/ranlib /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/libfmilib.a
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [100%] Built target fmilib
    make[4]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[3]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    test -d 3rdParty/FMIL/install || make -C 3rdParty/FMIL/build install
    make[3]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[4]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [  7%] Built target expatex
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [  8%] Built target c99snprintf
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 15%] Built target jmutils
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 28%] Built target fmixml
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 41%] Built target zlib
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 46%] Built target minizip
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 48%] Built target fmizip
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 53%] Built target fmicapi
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 75%] Built target fmilib_shared
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [ 91%] Built target fmiimport
    make[5]: Entering directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    make[5]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    [100%] Built target fmilib
    make[4]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    Install the project...
    -- Install configuration: "Release"
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/lib/libfmilib.a
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/lib/libfmilib_shared.so
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/doc/FMILIB_Readme.txt
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/doc/FMILIB_License.txt
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/doc/FMILIB_Acknowledgements.txt
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/fmilib_config.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/fmilib.h
    -- Up-to-date: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_capabilities.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_type.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_unit.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_capi.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_convenience.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_cosim.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_variable.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_variable_list.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_vendor_annotations.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI/fmi_import_context.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI/fmi_import_util.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_convenience.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_capi.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_type.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_variable.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_unit.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_variable_list.h
    -- Up-to-date: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include
    -- Up-to-date: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_enums.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_functions.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_types.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/JM
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_named_ptr.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_portability.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_vector.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_stack.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_vector_template.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_string_set.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_callbacks.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_types.h
    -- Up-to-date: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI/fmi_util.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI/fmi_version.h
    -- Up-to-date: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_enums.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_xml_callbacks.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_functions.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_types.h
    -- Up-to-date: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI1
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI1/fmiFunctions.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI1/fmiModelTypes.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI1/fmiModelFunctions.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI1/fmiPlatformTypes.h
    -- Up-to-date: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI2
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI2/fmi2TypesPlatform.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI2/fmi2FunctionTypes.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI2/fmi2Functions.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI2/fmiFunctions.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI2/fmiFunctionTypes.h
    -- Installing: /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build/../install/include/FMI2/fmiTypesPlatform.h

    Edited by: jalpanchal - Dec-20-16 05:26:10
    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    part 3:

    Code:

    make[3]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler/3rdParty/FMIL/build'
    
    test "(" ! `uname` = Darwin ")" -o "(" ! -f 3rdParty/FMIL/build/libfmilib_shared.so ")" || install_name_tool -id @rpath/libfmilib_shared.so 3rdParty/FMIL/build/libfmilib_shared.so
    cp -pPR 3rdParty/FMIL/build/libfmilib_shared.so /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/lib/x86_64-linux-gnu/omc
    test ! -f /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/lib/x86_64-linux-gnu/omc/libfmilib_shared.so || ln -sf libfmilib_shared.so /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/lib/x86_64-linux-gnu/omc/libfmilib.so
    #TODO: Only copy required headers, add them in omc/fmi subfolder, and do not copy c/txt-files
    #cp -rp 3rdParty/FMIL/install/include/* /home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/build/include/omc
    (cd 3rdParty/gc && autoreconf -vif && automake --add-missing && ./configure "--host=x86_64-unknown-linux-gnu" --enable-threads=posix --enable-parallel-mark --disable-gcj-support --disable-java-finalization --enable-large-config CC="clang" CXX="clang++" CFLAGS="-g -O2 -fno-stack-protector -fPIC" CPPFLAGS=" -DLARGE_CONFIG -DTHREAD_LOCAL_ALLOC")
    autoreconf: Entering directory `.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal --force -I m4
    autoreconf: configure.ac: tracing
    autoreconf: configure.ac: adding subdirectory libatomic_ops to autoreconf
    autoreconf: Entering directory `libatomic_ops'
    autoreconf: running: libtoolize --copy --force
    libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
    libtoolize: copying file './ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
    libtoolize: copying file 'm4/libtool.m4'
    libtoolize: copying file 'm4/ltoptions.m4'
    libtoolize: copying file 'm4/ltsugar.m4'
    libtoolize: copying file 'm4/ltversion.m4'
    libtoolize: copying file 'm4/lt~obsolete.m4'
    autoreconf: running: /usr/local/bin/autoconf --force
    autoreconf: running: /usr/local/bin/autoheader --force
    autoreconf: running: automake --add-missing --copy --force-missing
    Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/local/bin/automake line 3936.
    configure.ac:15: installing './compile'
    configure.ac:5: installing './config.guess'
    configure.ac:5: installing './config.sub'
    configure.ac:9: installing './install-sh'
    configure.ac:9: installing './missing'
    src/Makefile.am: installing './depcomp'
    parallel-tests: installing './test-driver'
    autoreconf: Leaving directory `libatomic_ops'
    libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
    libtoolize: copying file './ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
    libtoolize: copying file 'm4/libtool.m4'
    libtoolize: copying file 'm4/ltoptions.m4'
    libtoolize: copying file 'm4/ltsugar.m4'
    libtoolize: copying file 'm4/ltversion.m4'
    libtoolize: copying file 'm4/lt~obsolete.m4'
    Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/local/bin/automake line 3936.
    configure.ac:30: installing './compile'
    configure.ac:19: installing './config.guess'
    configure.ac:19: installing './config.sub'
    configure.ac:23: installing './install-sh'
    configure.ac:23: installing './missing'
    Makefile.am: installing './depcomp'
    parallel-tests: installing './test-driver'
    autoreconf: Leaving directory `.'
    Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/local/bin/automake line 3936.
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking GC version numbers... major=7 minor=5                 micro=0
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for x86_64-unknown-linux-gnu-strip... no
    checking for strip... strip
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for style of include used by make... GNU
    checking for x86_64-unknown-linux-gnu-gcc... clang
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether clang accepts -g... yes
    checking for clang option to accept ISO C89... none needed
    checking whether clang understands -c and -o together... yes
    checking dependency style of clang... gcc3
    checking whether we are using the GNU C++ compiler... yes
    checking whether clang++ accepts -g... yes
    checking dependency style of clang++... gcc3
    checking dependency style of clang... gcc3
    checking how to print strings... printf
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for fgrep... /bin/grep -F
    checking for ld used by clang... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for x86_64-unknown-linux-gnu-objdump... no
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for x86_64-unknown-linux-gnu-dlltool... no
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for x86_64-unknown-linux-gnu-ar... no
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for x86_64-unknown-linux-gnu-strip... strip
    checking for x86_64-unknown-linux-gnu-ranlib... no
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from clang object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for x86_64-unknown-linux-gnu-mt... no
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking how to run the C preprocessor... clang -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if clang supports -fno-rtti -fno-exceptions... yes
    checking for clang option to produce PIC... -fPIC -DPIC
    checking if clang PIC flag -fPIC -DPIC works... yes
    checking if clang static flag -static works... yes
    checking if clang supports -c -o file.o... yes
    checking if clang supports -c -o file.o... (cached) yes
    checking whether the clang linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking how to run the C++ preprocessor... clang++ -E
    checking for ld used by clang++... /usr/bin/ld -m elf_x86_64
    checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
    checking whether the clang++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for clang++ option to produce PIC... -fPIC -DPIC
    checking if clang++ PIC flag -fPIC -DPIC works... yes
    checking if clang++ static flag -static works... yes
    checking if clang++ supports -c -o file.o... yes
    checking if clang++ supports -c -o file.o... (cached) yes
    checking whether the clang++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... (cached) GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking for inline... inline
    checking for pthread_self in -lpthread... yes
    configure: WARNING: "Explicit GC_INIT() calls may be required."
    checking for gcc -Wextra... yes
    checking for xlc... no
    checking whether gcc supports -fno-strict-aliasing... yes
    checking for dlopen in -ldl... yes
    checking whether to build shared libraries... yes
    checking which machine-dependent code should be used...
    checking whether Solaris gcc optimization fix is necessary... no
    checking for dladdr... yes
    checking sys/dg_sys_info.h usability... no
    checking sys/dg_sys_info.h presence... no
    checking for sys/dg_sys_info.h... no
    ./configure: line 17542: syntax error near unexpected token `ATOMIC_OPS,'
    ./configure: line 17542: `   PKG_CHECK_MODULES(ATOMIC_OPS, atomic_ops, ,'
    Makefile.common:114: recipe for target '3rdParty/gc/Makefile' failed
    make[2]: *** [3rdParty/gc/Makefile] Error 2
    make[2]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler'
    Makefile:86: recipe for target 'omc-bootstrapped' failed
    make[1]: *** [omc-bootstrapped] Error 2
    make[1]: Leaving directory '/home/jalpanchal/Documents/OpenModelicaBuild/OpenModelica-minimal/OMCompiler'
    Makefile:6: recipe for target 'omc' failed
    make: *** [omc] Error 2

    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    I guess you don't have pkg-config installed

    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    I checked pkg-config. I have version 0.29.1

    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    There may be something wrong with your installation. From your build messages it seems that the PKG_CHECK_MODULES macro cannot be found, which is defined in pkg-config's file "pkg.m4". If I uninstall pkg-config, then I will get the same error as you.

    Do you have different versions of autoconf installed? Or installed autoconf and pkg-config with different prefix? The file "pkg.m4" should be located in the directory returned by the command:

    Code:

    $ aclocal --print-ac-dir

    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    Oh. I got this in that folder.

    Code:



    jalpanchal@silence:~$ aclocal --print-ac-dir
    /usr/local/share/aclocal

    jalpanchal@silence:~$ cd /usr/local/share/aclocal

    jalpanchal@silence:/usr/local/share/aclocal$ ls
    libtool.m4  ltdl.m4         ltoptions.m4  ltversion.m4
    ltargz.m4   lt~obsolete.m4  ltsugar.m4    README

    jalpanchal@silence:/usr/local/share/aclocal$ ls -a
    .   libtool.m4  ltdl.m4         ltoptions.m4  ltversion.m4
    ..  ltargz.m4   lt~obsolete.m4  ltsugar.m4    README

    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    Also I checked autoconf. I seem to get this in the dpkg list

    Code:


    ii  autoconf       2.69-9       all          automatic configure script builde
    ii  autoconf-archi 20150925-1   all          Autoconf Macro Archive

    Edited by: jalpanchal - Dec-21-16 04:21:44
    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    I tried purging m4, autoconf, automake, libtool, pkg-config and reinstall from bash commands

    I still couldn't find pkg.m4 in the aclocal dir.

    Edited by: jalpanchal - Dec-21-16 05:32:27
    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    Alright So I found pkg.m4

    aclocal --print-ac-dir returns /usr/local/share/aclocal

    But pkg.m4 is in /usr/share/aclocal/


    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    Solved!

    So as I said the pkg.m4 wasn't in the expected location "/usr/local/share/aclocal". I reinstalled the dependencies but pkg.m4 was still going to "/usr/share/aclocal"

    I checked Automake and followed the following steps:


    • Created a dirlist file in "usr/local/share/aclocal" directory  and added a line "/usr/share/aclocal" in to it


    • typed $ aclocal -I /usr/share/aclocal/ in shell as a backup before continuing with autosonf and subsequent steps to compile omc


    Thank you @spinnau for pointing out the problem current/smile

    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    Could anyone tell me how to solve this error pls? I tried to make -j8 (on opensuse 1.32) and that is what i received. Thanks in advance

    In file included from System_omc.c:54:
    ./systemimpl.c:1796:10: error: empty filename
    #include CONFIG_LPSOLVEINC
             ^
    ./config.unix.h:32:27: note: expanded from macro 'CONFIG_LPSOLVEINC'
    #define CONFIG_LPSOLVEINC ""
                              ^
    In file included from System_omc.c:54:
    ./systemimpl.c:1802:3: error: use of undeclared identifier 'lprec'
      lprec *lp;
      ^
    ./systemimpl.c:1802:10: error: use of undeclared identifier 'lp'
      lprec *lp;
             ^
    ./systemimpl.c:1811:3: error: use of undeclared identifier 'lp'
      lp = make_lp(sz, sz);
      ^
    ./systemimpl.c:1811:8: error: implicit declaration of function 'make_lp' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      lp = make_lp(sz, sz);
           ^
    ./systemimpl.c:1812:3: error: implicit declaration of function 'set_verbose' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      set_verbose(lp, 1);
      ^
    ./systemimpl.c:1812:15: error: use of undeclared identifier 'lp'
      set_verbose(lp, 1);
                  ^
    ./systemimpl.c:1813:9: error: implicit declaration of function 'get_infinite' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      inf = get_infinite(lp);
            ^
    ./systemimpl.c:1813:22: error: use of undeclared identifier 'lp'
      inf = get_infinite(lp);
                         ^
    ./systemimpl.c:1816:5: error: implicit declaration of function 'set_lowbo' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        set_lowbo(lp, i+1, -inf);
        ^
    ./systemimpl.c:1816:15: error: use of undeclared identifier 'lp'
        set_lowbo(lp, i+1, -inf);
                  ^
    ./systemimpl.c:1817:5: error: implicit declaration of function 'set_constr_type' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        set_constr_type(lp, i+1, EQ);
        ^
    ./systemimpl.c:1817:21: error: use of undeclared identifier 'lp'
        set_constr_type(lp, i+1, EQ);
                        ^
    ./systemimpl.c:1817:30: error: use of undeclared identifier 'EQ'
        set_constr_type(lp, i+1, EQ);
                                 ^
    ./systemimpl.c:1820:7: error: implicit declaration of function 'set_mat' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
          set_mat(lp, i+1, j+1, mmc_prim_get_real(MMC_CAR(tmp)));
          ^
    ./systemimpl.c:1820:15: error: use of undeclared identifier 'lp'
          set_mat(lp, i+1, j+1, mmc_prim_get_real(MMC_CAR(tmp)));
                  ^
    ./systemimpl.c:1823:5: error: implicit declaration of function 'set_rh' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        set_rh(lp, i+1, mmc_prim_get_real(MMC_CAR(lB)));
        ^
    ./systemimpl.c:1823:12: error: use of undeclared identifier 'lp'
        set_rh(lp, i+1, mmc_prim_get_real(MMC_CAR(lB)));
               ^
    ./systemimpl.c:1828:45: error: implicit declaration of function 'set_int' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        if (MMC_UNTAGFIXNUM(MMC_CAR(ix)) != -1) set_int(lp, MMC_UNTAGFIXNUM(MMC_CAR(ix)), 1);
                                                ^
    ./systemimpl.c:1828:45: note: did you mean 'set_mat'?
    ./systemimpl.c:1820:7: note: 'set_mat' declared here
          set_mat(lp, i+1, j+1, mmc_prim_get_real(MMC_CAR(tmp)));
          ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    Makefile.common:132: recipe for target 'System_omc.o' failed
    make[4]: *** [System_omc.o] Error 1
    make[4]: *** Waiting for unfinished jobs....
    unitparser.cpp:45:10: error: empty filename
    #include CONFIG_LPSOLVEINC
             ^
    ./config.unix.h:32:27: note: expanded from macro 'CONFIG_LPSOLVEINC'
    #define CONFIG_LPSOLVEINC ""
                              ^
    unitparser.cpp:412:3: error: unknown type name 'lprec'
      lprec *lp = make_lp(0, 2 * NU);
      ^
    unitparser.cpp:412:15: error: use of undeclared identifier 'make_lp'
      lprec *lp = make_lp(0, 2 * NU);
                  ^
    unitparser.cpp:447:23: error: use of undeclared identifier 'TRUE'
      set_add_rowmode(lp, TRUE);
                          ^
    unitparser.cpp:483:46: error: use of undeclared identifier 'EQ'
        if (!add_constraintex(lp, j, row, colno, EQ, b)) {
                                                 ^
    unitparser.cpp:490:23: error: use of undeclared identifier 'FALSE'
      set_add_rowmode(lp, FALSE);
                          ^
    unitparser.cpp:569:24: error: use of undeclared identifier 'FALSE'
        set_int(lp, v + 1, FALSE);
                           ^
    unitparser.cpp:571:24: error: use of undeclared identifier 'TRUE'
        set_int(lp, v + 1, TRUE);
                           ^
    unitparser.cpp:573:24: error: use of undeclared identifier 'FALSE'
        set_int(lp, v + 1, FALSE);
                           ^
    unitparser.cpp:575:24: error: use of undeclared identifier 'TRUE'
        set_int(lp, v + 1, TRUE);
                           ^
    10 errors generated.
    Makefile.common:134: recipe for target 'unitparser.o' failed
    make[4]: *** [unitparser.o] Error 1
    make[4]: Leaving directory '/home/vlle/Programs/OpenModelica/OMCompiler/Compiler/runtime'
    Makefile.common:95: recipe for target 'compilerruntime' failed
    make[3]: *** [compilerruntime] Error 2
    make[3]: Leaving directory '/home/vlle/Programs/OpenModelica/OMCompiler/Compiler/boot'
    Makefile.common:89: recipe for target 'runtime-depends' failed
    make[2]: *** [runtime-depends] Error 2
    make[2]: Leaving directory '/home/vlle/Programs/OpenModelica/OMCompiler/Compiler/boot'
    Makefile:88: recipe for target 'omc-bootstrapped' failed
    make[1]: *** [omc-bootstrapped] Error 2
    make[1]: Leaving directory '/home/vlle/Programs/OpenModelica/OMCompiler'
    Makefile:6: recipe for target 'omc' failed
    make: *** [omc] Error 2

    Edited by: vlle - Feb-07-18 11:05:21
    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    Hello vlle,

    it looks like you missed to install "lpsolve55" package as a dependency. You will find a list with the needed dependencies at https://github.com/OpenModelica/OpenModelica 


    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    Hello spinnau,

    Thank you very much for your quick reply. I also thought that I missed lpsolve55.

    Indeed, I tried to download lpsolve55 from http://sourceforge.net/projects/lpsolve/. Then I unzipped this tar.gz file and set LD_LIBRARY_PATH to the directory of lpsolve in .bashrc. However, it didn't work. So I don't know if I didn't install correctly lpsove. Do you have any idea on this?

    The folder lpsolve contains the following files:

    liblpsolve55.a  liblpsolve55.so  lp_Hash.h  lp_lib.h  lp_matrix.h  lp_mipbb.h  lp_SOS.h  lp_types.h  lp_utils.h

    Thanks.

    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    The best thing is to use the package manager of your linux distribution to install the dependency packages. On openSUSE the needed packages might be lpsolve and/or liblpsolve55-0 and can be installed e.g. from the terminal with zypper

    Code:

    $ zypper install lpsolve

    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    spinnau wrote:


    The best thing is to use the package manager of your linux distribution to install the dependency packages. On openSUSE the needed packages might be lpsolve and/or liblpsolve55-0 and can be installed e.g. from the terminal with zypper

    Code:

    $ zypper install lpsolve

    Thanks,

    Indeed, I don't have root privileges on my machine. So I cannot use zypper for installing packages. That is why i tried to install all Dependencies on the local directories and then set PATH environment in .bashrc.

    Administrator has disabled public posting. Please login or register in order to proceed.

    Re: Building OpenModelica from source on Linux

    In principle your downloaded version of lpsolve should also work if the binary is compatible to your systems libraries. But you have to add the include and linker paths to CFLAGS/CPPFLAGS and LDFLAGS so that the header files and the shared library will be found:

    Code:


    $ export CPPFLAGS="$CPPFLAGS -I/home/lib/lpsolve"
    $ export LDFLAGS="$LDFLAGS -L/home/lib/lpsolve"
    $ make

    Edited by: spinnau - Feb-07-18 15:33:28
    Administrator has disabled public posting. Please login or register in order to proceed.
    There are 0 guests and 0 other users also viewing this topic
    You are here: