Package Details: openmodelica 1.24.0-4

Git Clone URL: https://aur.archlinux.org/openmodelica.git (read-only, click to copy)
Package Base: openmodelica
Description: Open-source Modelica-based modeling and simulation environment
Upstream URL: https://www.openmodelica.org
Licenses: OSMC-PL
Submitter: hobbypunk
Maintainer: kyak (xantares)
Last Packager: xantares
Votes: 9
Popularity: 0.68
First Submitted: 2017-10-02 19:23 (UTC)
Last Updated: 2024-11-09 15:34 (UTC)

Dependencies (12)

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

SpieringsAE commented on 2024-11-09 14:15 (UTC)

there seems to be a missing dependency on qt6-5compat after install it manually it made it past configure

SpieringsAE commented on 2024-11-03 11:35 (UTC)

1.24.0 seems to have removed the dependency on qt5, but the OMSens_Qt module still depends on Qt5. This is causing a build issue for me. After installing the old qt5 dependencies it builds fine.

lucas.mior commented on 2024-10-22 16:57 (UTC)

This build is causing a bug with the MODELICAPATH, as described here: https://github.com/OpenModelica/OpenModelica/issues/13045

The same bug does not happen when compiling directly from the openmodelica repo.

xantares commented on 2024-08-28 14:04 (UTC)

no need to change it globally in makepkg.conf, lets patch the PKGBUILD

julico commented on 2024-08-28 09:01 (UTC) (edited on 2024-08-28 09:01 (UTC) by julico)

It did indeed work after changing in my makepkg.conf the line:

OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)

to

OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto)

Thank you !

Is there a way to fix this in the PKGBUILD or should it be fixed elsewhere (makefile on the openmodelica repository for example) ?

xantares commented on 2024-08-26 19:54 (UTC) (edited on 2024-08-26 19:58 (UTC) by xantares)

weird; I do have that symbol:

$ nm /usr/lib/omc/libModelicaStandardTables.a|grep ModelicaStandardTables_CombiTimeTable_init2

0000000000005650 T ModelicaStandardTables_CombiTimeTable_init2

the difference here is the flags automatically passed by makepkg, and yes it does involve lto by default, can you see if rebuilding the package with:

options=(!lto)

makes your use-case succeed ?

julico commented on 2024-08-26 15:17 (UTC) (edited on 2024-08-26 15:18 (UTC) by julico)

I had errors using the Buildings library with OMEdit installed through the AUR.

For example Boiler.Systems1 in the tutorial examples from Buildings gave an undefined reference error on simulation because it needed the ModelicaStandardTables_CombiTimeTable_init2 function from the /usr/lib/omc/libModelicaStandardTables.a library.

When running nm libModelicaStandardTables.a I got the following output:

> nm libModelicaStandardTables.a

ModelicaStandardTables.c.o:
nm: ModelicaStandardTables.c.o: plugin needed to handle lto object
0000000000000001 C __gnu_lto_slim

ModelicaStandardTablesUsertab.c.o:
0000000000000001 C __gnu_lto_slim

I fixed the issue by using the OpenModelica cmake instructions instead of the ones in this AUR:

https://github.com/OpenModelica/OpenModelica/blob/master/README.cmake.md#1-quick-start

Here's also a link to the full discussion with the maintainers:

https://github.com/OpenModelica/OpenModelica/discussions/12813

beralt commented on 2024-05-21 14:58 (UTC)

It doesn't build anymore. Seems like the problem is with xerces/RangeToken.cpp:

[ 23%] Building CXX object OMSimulator/3rdParty/xerces/src/CMakeFiles/xerces-c.dir/xercesc/util/regx/RangeToken.cpp.o
[ 23%] Built target omsensplugin_autogen_timestamp_deps
In file included from /usr/include/unicode/uset.h:36,
                 from /home/beralt/.cache/yay/openmodelica/src/openmodelica/OMSimulator/3rdParty/xerces/src/xercesc/util/regx/RangeToken.cpp:40:
/usr/include/unicode/localpointer.h:561:26: error: ‘auto’ parameter not permitted in this context
  561 | template <typename Type, auto closeFunction>
      |                          ^~~~
/usr/include/unicode/localpointer.h:573:76: error: template argument 2 is invalid
  573 |     explicit LocalOpenPointer(std::unique_ptr<Type, decltype(closeFunction)> &&p)
      |                                                                            ^
/usr/include/unicode/localpointer.h:583:78: error: template argument 2 is invalid
  583 |     LocalOpenPointer &operator=(std::unique_ptr<Type, decltype(closeFunction)> &&p) {
      |                                                                              ^
/usr/include/unicode/localpointer.h:599:59: error: template argument 2 is invalid
  599 |     operator std::unique_ptr<Type, decltype(closeFunction)> () && {
      |                                                           ^
/usr/include/unicode/uset.h:358:1: note: invalid template non-type parameter
  358 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUSetPointer, USet, uset_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 23%] Building C object OMSimulator/3rdParty/Lua/lua-5.4.6/CMakeFiles/lua_static.dir/src/ldo.c.o
/home/beralt/.cache/yay/openmodelica/src/openmodelica/OMSimulator/3rdParty/xerces/src/xercesc/util/regx/RangeToken.cpp: In member function ‘virtual void xercesc_3_2::RangeToken::mergeRanges(const xercesc_3_2::Token*)’:
/home/beralt/.cache/yay/openmodelica/src/openmodelica/OMSimulator/3rdParty/xerces/src/xercesc/util/regx/RangeToken.cpp:494:28: warning: cast from type ‘const xercesc_3_2::Token* const’ to type ‘xercesc_3_2::RangeToken*’ casts away qualifiers [-Wcast-qual]
  494 |     RangeToken* rangeTok = (RangeToken *) tok;
      |                            ^~~~~~~~~~~~~~~~~~
make[2]: *** [OMSimulator/3rdParty/xerces/src/CMakeFiles/xerces-c.dir/build.make:468: OMSimulator/3rdParty/xerces/src/CMakeFiles/xerces-c.dir/xercesc/util/regx/RangeToken.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:7943: OMSimulator/3rdParty/xerces/src/CMakeFiles/xerces-c.dir/all] Error 2