Package Details: openmodelica-omc 1.19.3-1

Git Clone URL: https://aur.archlinux.org/openmodelica-omc.git (read-only, click to copy)
Package Base: openmodelica-omc
Description: The Open Source Modelica Suite - OpenModelica Compiler
Upstream URL: https://openmodelica.org
Licenses: OSMC-PL
Submitter: hobbypunk
Maintainer: xantares
Last Packager: xantares
Votes: 1
Popularity: 0.000000
First Submitted: 2017-10-02 18:02 (UTC)
Last Updated: 2022-11-02 18:48 (UTC)

Dependencies (9)

Sources (1)

Latest Comments

alhirzel commented on 2022-11-19 01:40 (UTC) (edited on 2022-11-19 01:40 (UTC) by alhirzel)

@xantares, thanks for the idea! I have both installed (pacman -Qq reports lapack and openblas). Is there a way to switch between them for the OMC build?

xantares commented on 2022-11-10 18:10 (UTC)

what lapack implementation are you using ? openblas ?

I know it succeeds with netlib's lapack

alhirzel commented on 2022-11-10 16:50 (UTC) (edited on 2022-11-10 16:53 (UTC) by alhirzel)

I am getting a linker error on a clean, multi-threaded build. Does anyone have recommendations to identify or solve this issue?

(Added whitespace to the log for readability on the aurweb.)

/usr/bin/ld: /home/alhirzel/.cache/yay/openmodelica-omc/src/OpenModelica/OMCompiler
  /build/lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so:
  undefined reference to `_gfortran_transfer_character_write'

/usr/bin/ld: /home/alhirzel/.cache/yay/openmodelica-omc/src/OpenModelica/OMCompiler
  /build/lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so:
  undefined reference to `_gfortran_st_write_done'

/usr/bin/ld: /home/alhirzel/.cache/yay/openmodelica-omc/src/OpenModelica/OMCompiler
  /Compiler/runtime/libomcruntime-boot.so:
  undefined reference to `dgeqpf_'

/usr/bin/ld: /home/alhirzel/.cache/yay/openmodelica-omc/src/OpenModelica/OMCompiler
  /build/lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so:
  undefined reference to `_gfortran_concat_string'

/usr/bin/ld: /home/alhirzel/.cache/yay/openmodelica-omc/src/OpenModelica/OMCompiler
  /build/lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so:
  undefined reference to `_gfortran_stop_string'

/usr/bin/ld: /home/alhirzel/.cache/yay/openmodelica-omc/src/OpenModelica/OMCompiler
  /Compiler/runtime/libomcruntime-boot.so:
  undefined reference to `dgegv_'

/usr/bin/ld: /home/alhirzel/.cache/yay/openmodelica-omc/src/OpenModelica/OMCompiler
  /Compiler/runtime/libomcruntime-boot.so:
  undefined reference to `dgelsx_'

/usr/bin/ld: /home/alhirzel/.cache/yay/openmodelica-omc/src/OpenModelica/OMCompiler
  /build/lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so:
  undefined reference to `_gfortran_transfer_integer_write'

/usr/bin/ld: /home/alhirzel/.cache/yay/openmodelica-omc/src/OpenModelica/OMCompiler
  /build/lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so:
  undefined reference to `_gfortran_string_len_trim'

/usr/bin/ld: /home/alhirzel/.cache/yay/openmodelica-omc/src/OpenModelica/OMCompiler
  /build/lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so:
  undefined reference to `_gfortran_st_write'

xantares commented on 2021-04-21 14:38 (UTC)

looks like an upstream issue: https://github.com/OpenModelica/OpenModelica/issues/7330

chn commented on 2021-04-21 14:33 (UTC)

@xantares I have rebuilt the package in a single thread, and this is the output that you may concern: CMake Error: Unknown argument --build

make[2]: Leaving directory '/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
test "(" ! `uname` = Darwin ")" -o "(" ! -f 3rdParty/FMIL/install/lib/x86_64-linux-gnu/omc/libfmilib_shared.so ")" || install_name_tool -id @rpath/libfmilib_shared.so 3rdParty/FMIL/install/lib/x86_64-linux-gnu/omc/libfmilib_shared.so
cp -pPR 3rdParty/FMIL/install/lib/x86_64-linux-gnu/omc/libfmilib_shared.so /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc
'3rdParty/FMIL/install/lib/x86_64-linux-gnu/omc/libfmilib_shared.so' -> '/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libfmilib_shared.so'
test ! -f /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libfmilib_shared.so || ln -sf libfmilib_shared.so /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/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
mkdir -p /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/include/omc/fmil/
cp -pPR 3rdParty/FMIL/install/include/* /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/include/omc/fmil/
cd SimulationRuntime/OMSI; \
 mkdir -p Build_static; (cd ./Build_static; echo "change to Build_static"; cmake -G "Unix Makefiles" --build . -DPLATFORM=static -DCMAKE_BUILD_TYPE=   -DCMAKE_INSTALL_PREFIX:PATH="/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build" -DLIB_OMC=lib/x86_64-linux-gnu/omc ..; make install);  mkdir -p Build_dynamic; (cd ./Build_dynamic; echo "change to Build_dynamic"; cmake -G "Unix Makefiles" --build . -DPLATFORM=dynamic -DCMAKE_BUILD_TYPE=   -DCMAKE_INSTALL_PREFIX:PATH="/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build" -DLIB_OMC=lib/x86_64-linux-gnu/omc ..; make install);
change to Build_static
CMake Error: Unknown argument --build
CMake Error: Run 'cmake --help' for all supported options.
make[2]: *** No rule to make target 'install'.  Stop.
make[2]: Entering directory '/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/SimulationRuntime/OMSI/Build_static'
make[2]: Leaving directory '/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/SimulationRuntime/OMSI/Build_static'
change to Build_dynamic
CMake Error: Unknown argument --build
CMake Error: Run 'cmake --help' for all supported options.
make[2]: *** No rule to make target 'install'.  Stop.
make[2]: Entering directory '/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/SimulationRuntime/OMSI/Build_dynamic'
make[2]: Leaving directory '/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/SimulationRuntime/OMSI/Build_dynamic'
make[1]: *** [Makefile.omsi.common:31: OMSIBaseInstall] Error 2
make[1]: Leaving directory '/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler'
make: *** [Makefile:101: omc-bootstrapped] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

xantares commented on 2021-04-21 13:43 (UTC)

you log doesnt show any error, please pinpoint the exact error or show full makepkg logs

Andrea993 commented on 2021-04-20 18:57 (UTC)

Same as chn

chn commented on 2021-04-12 15:08 (UTC)

Build failed.

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_kinsol.so.5 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_idas.so.4 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_ida.so.5 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_cvodes.so.5 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_cvode.so.5 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_arkode.so.4 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunnonlinsolfixedpoint.so.2 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunnonlinsolnewton.so.2 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunlinsollapackdense.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunlinsollapackband.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunlinsolklu.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunlinsolsptfqmr.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunlinsolspgmr.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunlinsolspfgmr.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunlinsolspbcgs.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunlinsolpcg.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunlinsoldense.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunlinsolband.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunmatrixsparse.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunmatrixdense.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_sunmatrixband.so.3 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_nvecmanyvector.so.5 is not a symbolic link

ldconfig: /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libsundials_nvecserial.so.5 is not a symbolic link

----------------------------------------------------------------------
Libraries have been installed in:
   /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[3]: Leaving directory '/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/BuildProjects/autotools'
make[2]: Leaving directory '/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/BuildProjects/autotools'
rm -f /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libzlib.la /home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelica*.la
# test ! `uname` = Darwin || install_name_tool -id @rpath/libModelicaExternalC.0.dylib "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaExternalC.a"
# test ! `uname` = Darwin || (install_name_tool -id @rpath/libModelicaStandardTables.0.dylib "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaStandardTables.a" && install_name_tool -change "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaMatIO.a" @rpath/libModelicaMatIO.0.dylib "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaStandardTables.a" && install_name_tool -change "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libzlib.a" @rpath/libzlib.0.dylib "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaStandardTables.a")
# test ! `uname` = Darwin || (install_name_tool -id @rpath/libzlib.0.dylib "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libzlib.a" && install_name_tool -change "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libzlib.a" @rpath/libzlib.0.dylib "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libzlib.a")
# test ! `uname` = Darwin || (install_name_tool -id @rpath/libModelicaIO.0.dylib "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaIO.a" && install_name_tool -change "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaMatIO.a" @rpath/libModelicaMatIO.0.dylib "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaIO.a" && install_name_tool -change "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libzlib.a" @rpath/libzlib.0.dylib "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaIO.a")
# test ! `uname` = Darwin || (install_name_tool -id @rpath/libModelicaMatIO.0.dylib "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaMatIO.a" && install_name_tool -change "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libzlib.a" @rpath/libzlib.0.dylib "/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libModelicaMatIO.a")
make[1]: Leaving directory '/home/chn/Desktop/openmodelica-omc/src/OpenModelica/OMCompiler'
make: *** [Makefile:101: omc-bootstrapped] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

BTW, it may be better to add patch and git submodules in source array.

https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git_submodules